Page objects for PAGES already contain the proper url attribute.
Having the templates with /pages/ causes the generated links to be wrong.
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
<nav>
|
||||
<ul>
|
||||
{% for page in PAGES %}
|
||||
<li><a href="{{ SITEURL }}/pages/{{ page.url }}">{{ page.title }}</a>{% if not loop.last %} ::{% endif %}</li>
|
||||
<li><a href="{{ SITEURL }}{{ page.url }}">{{ page.title }}</a>{% if not loop.last %} ::{% endif %}</li>
|
||||
{% endfor %}
|
||||
{% if categories|length > 1 %}
|
||||
<li>:: <a href="{{ SITEURL }}/categories.html">Catégories</a></li>
|
||||
|
||||
Reference in New Issue
Block a user