Merge pull request #28 from lynix/master
introduce options for category, tag and archives links on menumain
commit
f341cc549d
|
@ -30,6 +30,9 @@ Pelican [documentation](http://docs.getpelican.com/en/latest/)
|
||||||
| MENU_ITEMS | DICT | Menu items |
|
| MENU_ITEMS | DICT | Menu items |
|
||||||
| META_DESCRIPTION | TEXT | Meta description |
|
| META_DESCRIPTION | TEXT | Meta description |
|
||||||
| PAGES_ON_MENU | BOOL | Pages on the menu |
|
| 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 |
|
| PROFILE_IMAGE | URL | Profile image |
|
||||||
| SHOW_ARTICLE_AUTHOR | BOOL | Show/hide author |
|
| SHOW_ARTICLE_AUTHOR | BOOL | Show/hide author |
|
||||||
| SITE_SUBTEXT | TEXT | Header subtitle |
|
| SITE_SUBTEXT | TEXT | Header subtitle |
|
||||||
|
|
|
@ -28,6 +28,14 @@
|
||||||
<li class="post-category">
|
<li class="post-category">
|
||||||
<a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
|
<a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
|
||||||
</li>
|
</li>
|
||||||
|
{% if article.tags %}
|
||||||
|
<li class="muted">·</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 %}
|
{% if article.author and SHOW_ARTICLE_AUTHOR %}
|
||||||
<li class="muted">·</li>
|
<li class="muted">·</li>
|
||||||
<li>
|
<li>
|
||||||
|
|
|
@ -25,6 +25,18 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% 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 %}
|
{% if EMAIL_ADDRESS %}
|
||||||
<li><a class="nodec icon-mail-alt" href="mailto:{{ EMAIL_ADDRESS }}"></a></li>
|
<li><a class="nodec icon-mail-alt" href="mailto:{{ EMAIL_ADDRESS }}"></a></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in New Issue