Files
pelican-themes/lightweight/templates/menu.html
Miguel Ventura d4c5432d30 Page objects for PAGES already contain the proper url attribute.
Having the templates with /pages/ causes the generated links to be
wrong.
2012-09-03 00:39:05 +01:00

14 lines
459 B
HTML

<nav id="menu">
<a href="{{ SITEURL }}/index.html">Accueil</a>
{% if DISPLAY_PAGES_ON_MENU != False%}
{% for p in PAGES %}
<a {% if p == page %}class="active" {% endif %}href="{{ SITEURL }}{{ p.url }}">{{ p.title }}</a>
{% endfor %}
{% else %}
<a href="{{ SITEURL }}/categories.html">Catégories</a>
<a href="{{ SITEURL }}/tags.html">Mots-clés</a>
{% endif %}
<a href="{{ SITEURL }}/archives.html">Archives</a>
</nav> <!-- /#nav -->