Merge branch 'pages-on-menu' of github.com:raymondwanyoike/pelican-alchemy into raymondwanyoike-pages-on-menu

* 'pages-on-menu' of github.com:raymondwanyoike/pelican-alchemy:
  Add PAGES_ON_MENU option

Conflicts:
	README.md
This commit is contained in:
Raymond Wanyoike 2014-08-08 20:08:01 +03:00
commit 771aaf9478
2 changed files with 12 additions and 0 deletions

View file

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