mirror of
https://github.com/nairobilug/pelican-alchemy.git
synced 2024-12-30 12:15:06 +01:00
Merge branch 'raymondwanyoike-pages-on-menu'
* raymondwanyoike-pages-on-menu: Add PAGES_ON_MENU option
This commit is contained in:
commit
b15643df26
2 changed files with 12 additions and 0 deletions
|
|
@ -28,6 +28,7 @@ Pelican [documentation](http://docs.getpelican.com/en/latest/)
|
||||||
| LICENSE_URL | URL | - |
|
| LICENSE_URL | URL | - |
|
||||||
| 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 |
|
||||||
| 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 |
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,17 @@
|
||||||
{% for title, link in MENU_ITEMS %}
|
{% for title, link in MENU_ITEMS %}
|
||||||
<li><a class="nodec" href="{{ link }}" target="_blank">{{ title }}</a></li>
|
<li><a class="nodec" href="{{ link }}" target="_blank">{{ title }}</a></li>
|
||||||
{% endfor %}
|
{% 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 %}
|
{% 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…
Add table
Add a link
Reference in a new issue