aboutsummaryrefslogtreecommitdiffstats
path: root/lightweight/templates/menu.html
diff options
context:
space:
mode:
authorMiguel Ventura <miguel.ventura@gmail.com>2012-09-03 00:39:05 +0100
committerMiguel Ventura <miguel.ventura@gmail.com>2012-09-03 00:39:05 +0100
commitd4c5432d304a4a6cf1739337466929f4e553f7a9 (patch)
tree258c8f7383e1959a2973b0adefff2b9286fa6d48 /lightweight/templates/menu.html
parent01a8792a5116a305368d9d98fa366923086e0633 (diff)
downloadpelican-themes-d4c5432d304a4a6cf1739337466929f4e553f7a9.tar.gz
Page objects for PAGES already contain the proper `url` attribute.
Having the templates with /pages/ causes the generated links to be wrong.
Diffstat (limited to 'lightweight/templates/menu.html')
-rw-r--r--lightweight/templates/menu.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/lightweight/templates/menu.html b/lightweight/templates/menu.html
index 9a9d011..5a6a52d 100644
--- a/lightweight/templates/menu.html
+++ b/lightweight/templates/menu.html
@@ -2,7 +2,7 @@
<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 }}/pages/{{ p.url }}">{{ p.title }}</a>
+ <a {% if p == page %}class="active" {% endif %}href="{{ SITEURL }}{{ p.url }}">{{ p.title }}</a>
{% endfor %}
{% else %}
<a href="{{ SITEURL }}/categories.html">Catégories</a>