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:
@@ -34,7 +34,7 @@
|
||||
<li><a href="{{ SITEURL }}/index.html">Accueil</a></li>
|
||||
<li><a href="{{ SITEURL }}/archives.html">Archives</a></li>
|
||||
{% for p in PAGES %}
|
||||
<li {% if p == page %}class="active"{% endif %}><a href="{{ SITEURL }}/pages/{{ p.url }}">{{ p.title }}</a></li>
|
||||
<li {% if p == page %}class="active"{% endif %}><a href="{{ SITEURL }}{{ p.url }}">{{ p.title }}</a></li>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{#{% for cat, null in categories %}
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
<section id="content" class="body">
|
||||
<h2>Pages</h2>
|
||||
{% for page in PAGES %}
|
||||
<li><a href="{{ SITEURL }}/pages/{{ page.url }}">{{ page.title }}</a></li>
|
||||
<li><a href="{{ SITEURL }}{{ page.url }}">{{ page.title }}</a></li>
|
||||
{% endfor %}
|
||||
</section>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user