Merge pull request #28 from lynix/master

introduce options for category, tag and archives links on menu
main
Alan Orth 2015-04-20 18:43:46 +03:00
commit f341cc549d
3 changed files with 23 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

@ -28,6 +28,14 @@
<li class="post-category">
<a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
</li>
{% if article.tags %}
<li class="muted">&middot;</li>
<li>
{% for tag in article.tags %}
<a href="{{ SITEUrL }}/tag/{{ tag }}.html">{{ tag }}</a>{% if not loop.last %}, {% endif %}
{% endfor %}
</li>
{% endif %}
{% if article.author and SHOW_ARTICLE_AUTHOR %}
<li class="muted">&middot;</li>
<li>

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 %}