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

@@ -33,7 +33,7 @@
{% if DISPLAY_PAGES_ON_MENU %}
{% for current_page in PAGES %}
<li {% if page %}{% if page == current_page%}class="active"{% endif %}{% endif %}>
<a href="{{ SITEURL }}/pages/{{ current_page.url }}">{{ current_page.title }}</a>
<a href="{{ SITEURL }}{{ current_page.url }}">{{ current_page.title }}</a>
</li>
{% endfor %}
{% endif %}

View File

@@ -39,7 +39,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 %}