Jekyll - Errors with paths

0

I'm developing a blog on Jekyll and are giving some errors with URL's .

When I use {{ site.url }} and do not put the slash after this variable, the paths are as follows: localhost: 4000assets, but when compiling the production version, the paths are right:

Examples of how I used the variables:

{% for post in paginator.posts  %}
  <h2>
    <a href="{{site.url}}{{ post.url |  slugify}}">{{ post.title }}</a>
  </h2>
{% endfor %}

Example of how it looks :

Another question related to this is that I downloaded a plugin that generates sitemap.xml and robots.txt and uses site.url to create them. However, the paths are coming out in the format: http://www.brunofolle.com.br//contato

Robots.txt link and sitemap.xml:

This is the URL settings in _config.yml :

url: "http://www.brunofolle.com.br/"
baseurl: "/" 
permalink: /:title/

I've tried to get the URL and the permalink start bar but it did not work.

Does anyone have any ideas?

    
asked by anonymous 03.12.2017 / 02:25

1 answer

0

I will answer my question because I have managed to solve it ... If other people have the same problem, maybe this answer will help them.

Well, in% with% I removed slugify, leaving it like this: {{ post.url | slugify}} .

And _config.yml looks like this:

url: "https://brunofolle.com.br"
baseurl: "/" 
permalink: /:title/
    
04.12.2017 / 15:19