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

@@ -46,7 +46,7 @@
<h3>Pages</h3>
<ul>
{% 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 %}
</ul>
{% endif %}

View File

@@ -3,7 +3,7 @@
{% block content %}
<div class="blogItem">
<h2><a href="{{ SITEURL }}/pages/{{ page.url }}">{{ page.title }}</a></h3>
<h2><a href="{{ SITEURL }}{{ page.url }}">{{ page.title }}</a></h3>
{{ page.content }}
{% include 'twitter.html' %}