aboutsummaryrefslogtreecommitdiffstats
path: root/brownstone/templates
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 /brownstone/templates
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 'brownstone/templates')
-rw-r--r--brownstone/templates/base.html2
-rw-r--r--brownstone/templates/page.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/brownstone/templates/base.html b/brownstone/templates/base.html
index 1da0c60..7ac50ca 100644
--- a/brownstone/templates/base.html
+++ b/brownstone/templates/base.html
@@ -40,7 +40,7 @@ Released : 20100928
<li><a href="{{ SITEURL }}/archives.html">Archives</a></li>
{% if DISPLAY_PAGES_ON_MENU %}
{% 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 %}
{% endif %}
</ul>
diff --git a/brownstone/templates/page.html b/brownstone/templates/page.html
index 6181ea9..0c29eeb 100644
--- a/brownstone/templates/page.html
+++ b/brownstone/templates/page.html
@@ -3,7 +3,7 @@
{% block content %}
<div id="content">
<div class="post">
- <h2 class="title"><a href="{{ SITEURL }}/pages/{{ page.url }}">{{ page.title }}</a></h1>
+ <h2 class="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>