Links
In Markdown
and HTML
pages declare the links as follow:
- for internal links in variables use
relative_url
filter like"{{ post.url | relative_url }}"
; - for internal explicit links use
site.baseurl
tag like"{{ site.baseurl }}{% link _docs/quick-start.md %}"
; - use external links without modifications.
Markdown example:
[Settings]({{ site.baseurl }}{% link _docs/settings.md %})
HTML example:
<a href="{{ page.url | relative_url }}">A page</a>
<img src="{{ site.logo | relative_url }}">