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:
Miguel Ventura
2012-09-03 00:39:05 +01:00
parent 01a8792a51
commit d4c5432d30
15 changed files with 16 additions and 16 deletions

View File

@@ -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>

View File

@@ -1,7 +1,7 @@
{% extends "base.html" %}
{% block title %}{{ page.title }}{% endblock %}
{% block content %}
<h2 class="page_title"><a href="{{ SITEURL }}/pages/{{ page.url }}">{{ page.title }}</a></h1>
<h2 class="page_title"><a href="{{ SITEURL }}{{ page.url }}">{{ page.title }}</a></h1>
{% if PDF_PROCESSOR %}<a href="{{ SITEURL }}/pdf/{{ page.slug }}.pdf">get
the pdf</a>{% endif %}
<div style="clear: both;">&nbsp;</div>