mirror of
https://github.com/nairobilug/pelican-alchemy.git
synced 2024-12-30 12:15:06 +01:00
Add pages on the menu option
This commit is contained in:
parent
e9c06d6e7b
commit
0a32174303
2 changed files with 12 additions and 0 deletions
|
|
@ -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 |
|
||||
|
|
|
|||
|
|
@ -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">·</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 %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue