mirror of
https://github.com/nairobilug/pelican-alchemy.git
synced 2024-12-30 12:15:06 +01:00
Move header, footer, xml_feeds to include; reason base.html
This commit is contained in:
parent
1c944d0f3d
commit
4aee394acb
4 changed files with 81 additions and 76 deletions
36
alchemy/templates/include/header.html
Normal file
36
alchemy/templates/include/header.html
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
<div class="row">
|
||||
{% if SITEIMAGE %}
|
||||
<div class="col-sm-4">
|
||||
<a href="{{ SITEURL }}/">
|
||||
<img class="img-fluid" src={{ SITEURL }}{{ SITEIMAGE }} alt="{{ SITENAME }}">
|
||||
</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="col-sm-{% if SITEIMAGE %}8{% else %}12{% endif %}">
|
||||
<h1 class="title"><a href="{{ SITEURL }}/">{{ SITENAME }}</a></h1>
|
||||
{% if SITESUBTITLE %}
|
||||
<p class="text-muted">{{ SITESUBTITLE }}</p>
|
||||
{% endif %}
|
||||
{% if LINKS or (DISPLAY_PAGES_ON_MENU and pages) or ICONS %}
|
||||
<ul class="list-inline">
|
||||
{% for title, link in LINKS %}
|
||||
<li class="list-inline-item"><a href="{{ link }}" target="_blank">{{ title }}</a></li>
|
||||
{% endfor %}
|
||||
{% if DISPLAY_PAGES_ON_MENU %}
|
||||
{% for page in pages %}
|
||||
{% if LINKS and loop.first %}
|
||||
<li class="list-inline-item text-muted">|</li>
|
||||
{% endif %}
|
||||
<li class="list-inline-item"><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></li>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% for icon, link in ICONS %}
|
||||
{% if (LINKS or (DISPLAY_PAGES_ON_MENU and pages)) and loop.first %}
|
||||
<li class=" list-inline-item text-muted">|</li>
|
||||
{% endif %}
|
||||
<li class="list-inline-item"><a class="fa fa-{{ icon }}" href="{{ link }}" target="_blank"></a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue