Commit 18185d7b authored by svilayphiou's avatar svilayphiou

ordre des menus géré dans publishconf.py

parent 62aa21c2
......@@ -152,3 +152,4 @@ IGNORE_FILES = ["*.swo", "*.swp"]
# Requires patched version of Pelican (see requirements.txt), at
# <https://github.com/aleray/pelican>
STATIC_CHECK_IF_MODIFIED = True
......@@ -23,3 +23,11 @@ DELETE_OUTPUT_DIRECTORY = True
#DISQUS_SITENAME = ""
#GOOGLE_ANALYTICS = ""
MENU_ITEMS = (
('La Balsamine', 'la-balsamine.html'),
('Pratique', 'pratique.html'),
('Billeterie', 'billeterie.html'),
('Location', 'louer.html'),
)
......@@ -23,21 +23,21 @@
<nav class="main-nav">
<ul class="main-menu">
{% for title, link in MENUITEMS %}
{% for title, link in MENU_ITEMS %}
<li><a href="{{ link }}">{{ title }}</a></li>
{% endfor %}
{% if DISPLAY_PAGES_ON_MENU %}
{% for p in pages %}
<li{% if p == page %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a></li>
{% endfor %}
{% endif %}
{% if DISPLAY_CATEGORIES_ON_MENU %}
{% for cat, null in categories %}
<li{% if cat == category %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li>
{% endfor %}
{% endif %}
<!--{% if DISPLAY_PAGES_ON_MENU %}-->
<!--{% for p in pages %}-->
<!--<li{% if p == page %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a></li>-->
<!--{% endfor %}-->
<!--{% endif %}-->
<!--{% if DISPLAY_CATEGORIES_ON_MENU %}-->
<!--{% for cat, null in categories %}-->
<!--<li{% if cat == category %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li>-->
<!--{% endfor %}-->
<!--{% endif %}-->
</ul>
</nav>
</header>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment