Add pages on the menu option

This commit is contained in:
Raymond Wanyoike 2014-06-17 21:22:03 +03:00
commit 0a32174303
2 changed files with 12 additions and 0 deletions

View file

@ -23,6 +23,7 @@ Pelican [documentation](http://docs.getpelican.com/en/latest/)
| PROFILE_IMAGE | URL | Profile image |
| SITE_SUBTEXT | TEXT | Header subtitle |
| MENU_ITEMS | DICT | Menu items |
| PAGES_ON_MENU | BOOL | Pages on the menu |
| SHOW_ARTICLE_AUTHOR | BOOL | Show/hide author |
| LICENSE_URL | URL | Footer action |
| LICENSE_NAME | TEXT | Hot footer action |

View file

@ -14,6 +14,17 @@
{% for title, link in MENU_ITEMS %}
<li><a class="nodec" href="{{ link }}">{{ title }}</a></li>
{% endfor %}
{% if PAGES_ON_MENU %}
{% for p in PAGES %}
{% if loop.first %}
<li class="muted">&middot;</li>
{% endif %}
<li><a class="nodec" href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a></li>
{% if loop.last %}
<li class="muted">&middot;</li>
{% endif %}
{% endfor %}
{% endif %}
{% if EMAIL_ADDRESS %}
<li><a class="nodec icon-mail-alt" href="mailto:{{ EMAIL_ADDRESS }}"></a></li>
{% endif %}