0
I’m developing a blog in Jekyll and is making some mistakes with the URL’s.
When I use {{ site.url }}
and I don’t put the bar after this variable, the paths are as follows: localhost:4000assets, only when I compile the production version, the paths are right:
Examples of how I used variables:
{% for post in paginator.posts %}
<h2>
<a href="{{site.url}}{{ post.url | slugify}}">{{ post.title }}</a>
</h2>
{% endfor %}
Example of how it looks:
- Production version: http://www.brunofolle.com.br/assets/images/default.png
- Localhost version : http://localhost:4000/Assets/images/default.png
Another question related to that, is that I downloaded a plugin that generates the sitemap.xml
and robots.txt
and uses the site.url
for their creation. However, the paths are coming out in the format: http://www.brunofolle.com.br//contato
Robots.txt and sitemap.xml link:
This is the settings of URL in the _config.yml
:
url: "http://www.brunofolle.com.br/"
baseurl: "/"
permalink: /:title/
I tried to take the bar off the base URL, and the start bar of permalink but did not resolve.
Does anyone have any idea?