diff options
author | Pavel Grunt <pgrunt@redhat.com> | 2015-10-15 16:55:58 +0200 |
---|---|---|
committer | Pavel Grunt <pgrunt@redhat.com> | 2015-10-15 16:56:37 +0200 |
commit | df76737b6f19226302eef87c02ebb2cf45e1d747 (patch) | |
tree | 989bb65fc12944f2da87ff95eb02680bce873cd1 | |
parent | a179c855e8a3ab73c1f96268f2e8cafecca7918a (diff) |
template: Reorder links of menu bar
-rw-r--r-- | pelicanconf.py | 9 | ||||
-rw-r--r-- | spice-space/templates/base.html | 12 |
2 files changed, 10 insertions, 11 deletions
diff --git a/pelicanconf.py b/pelicanconf.py index 5903144..5b579d4 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -38,3 +38,12 @@ DEFAULT_PAGINATION = False # Uncomment following line if you want document-relative URLs when developing #RELATIVE_URLS = True + +MENUITEMS = [ + ("HOME", "pages/home.html"), + ("FAQ", "pages/faq.html"), + ("Documentation", "pages/documentation.html"), + ("Developers", "pages/developers.html"), + ("Introduction", "pages/introduction.html"), + ("Contact", "pages/contact.html"), +] diff --git a/spice-space/templates/base.html b/spice-space/templates/base.html index c8e6eda..c3d4834 100644 --- a/spice-space/templates/base.html +++ b/spice-space/templates/base.html @@ -27,18 +27,8 @@ </div> <nav><ul> {% for title, link in MENUITEMS %} - <li><a href="{{ link }}">{{ title }}</a></li> + <li><a href="{{ SITEURL }}/{{ link }}">{{ title }}</a></li> {% endfor %} - {% if DISPLAY_PAGES_ON_MENU -%} - {% for pg in PAGES %} - <li{% if pg == page %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ pg.url }}">{{ pg.title }}</a></li> - {% endfor %} - {% endif %} - {% if DISPLAY_CATEGORIES_ON_MENU -%} - {% for cat, null in categories %} - <li{% if cat == category %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li> - {% endfor %} - {% endif %} </ul></nav> <div class="gradient"/> </header><!-- /#banner --> |