aboutsummaryrefslogtreecommitdiffstats
path: root/notmyidea-cms
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 /notmyidea-cms
parent01a8792a5116a305368d9d98fa366923086e0633 (diff)
downloadpelican-themes-d4c5432d304a4a6cf1739337466929f4e553f7a9.zip
pelican-themes-d4c5432d304a4a6cf1739337466929f4e553f7a9.tar.gz
pelican-themes-d4c5432d304a4a6cf1739337466929f4e553f7a9.tar.bz2
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 'notmyidea-cms')
-rw-r--r--notmyidea-cms/templates/base.html2
-rw-r--r--notmyidea-cms/templates/index.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/notmyidea-cms/templates/base.html b/notmyidea-cms/templates/base.html
index 02833f6..d8f826e 100644
--- a/notmyidea-cms/templates/base.html
+++ b/notmyidea-cms/templates/base.html
@@ -33,7 +33,7 @@
{% if DISPLAY_PAGES_ON_MENU != False %}
<li><a href="{{ SITEURL }}/index.html">Home</a></li>
{% for p in PAGES %}
- <li {% if p == page %}class="active"{% endif %}><a href="{{ SITEURL }}/pages/{{ p.url }}">{{ p.title }}</a></li>
+ <li {% if p == page %}class="active"{% endif %}><a href="{{ SITEURL }}{{ p.url }}">{{ p.title }}</a></li>
{% endfor %}
{% endif %}
{#{% for cat, null in categories %}
diff --git a/notmyidea-cms/templates/index.html b/notmyidea-cms/templates/index.html
index f8e2b2a..3bb5697 100644
--- a/notmyidea-cms/templates/index.html
+++ b/notmyidea-cms/templates/index.html
@@ -36,7 +36,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 %}