introduce options for category, tag and archives links on menu

main
lynix 2015-04-10 21:21:20 +02:00
parent bd337dffaa
commit 8e1e53af31
2 changed files with 15 additions and 0 deletions

View File

@ -30,6 +30,9 @@ Pelican [documentation](http://docs.getpelican.com/en/latest/)
| MENU_ITEMS | DICT | Menu items |
| META_DESCRIPTION | TEXT | Meta description |
| PAGES_ON_MENU | BOOL | Pages on the menu |
| CATEGORIES_ON_MENU | BOOL | Category link in menu |
| TAGS_ON_MENU | BOOL | Tag link in menu |
| ARCHIVES_ON_MENU | BOOL | Archives link in menu |
| PROFILE_IMAGE | URL | Profile image |
| SHOW_ARTICLE_AUTHOR | BOOL | Show/hide author |
| SITE_SUBTEXT | TEXT | Header subtitle |

View File

@ -25,6 +25,18 @@
{% endif %}
{% endfor %}
{% endif %}
{% if CATEGORIES_ON_MENU %}
<li><a class="nodec" href="{{ SITEURL }}/categories.html">Categories</a></li>
<li class="muted">|</li>
{% endif %}
{% if TAGS_ON_MENU %}
<li><a class="nodec" href="{{ SITEURL }}/tags.html">Tags</a></li>
<li class="muted">|</li>
{% endif %}
{% if ARCHIVES_ON_MENU %}
<li><a class="nodec" href="{{ SITEURL }}/archives.html">Archives</a></li>
<li class="muted">|</li>
{% endif %}
{% if EMAIL_ADDRESS %}
<li><a class="nodec icon-mail-alt" href="mailto:{{ EMAIL_ADDRESS }}"></a></li>
{% endif %}