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?