
- Add a trailing slash at the end of the banner URL as to be sure to send to the home page when using relative URLs
39 lines
1.5 KiB
HTML
39 lines
1.5 KiB
HTML
<header class="site-header">
|
|
<div class="banner">
|
|
<a href="{{ SITEURL }}/">
|
|
{% if SITEAVATAR %}
|
|
<img class="logo" src="{{ SITEURL }}/{{ SITEAVATAR }}" alt="{{ SITEAVATAR_ALT }}">
|
|
{% endif %}
|
|
<h1 class="title">{{ SITENAME }}</h1>
|
|
<h2 class="subtitle">{{ SITESUBTITLE }}</h2>
|
|
</a>
|
|
</div>
|
|
<div>
|
|
<menu>
|
|
<li class="menu-item"{% if page_name=='index' %} aria-current="page" {% endif %}>
|
|
<a href="{{ SITEURL }}/">
|
|
Accueil
|
|
</a>
|
|
</li>
|
|
{% if DISPLAY_PAGES_ON_MENU %}
|
|
{% for p in pages %}
|
|
<li class="menu-item"{% if p==page %} aria-current="page" {% endif %}>
|
|
<a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a>
|
|
</li>
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% if DISPLAY_CATEGORIES_ON_MENU %}
|
|
{% for cat, null in categories %}
|
|
<li class="menu-item"{% if cat==category %} aria-current="page" {% endif %}>
|
|
<a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a>
|
|
</li>
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% if DISPLAY_TAGS_ON_MENU %}
|
|
<li class="menu-item"{% if page_name=='tags' %} aria-current="page" {% endif %}>
|
|
<a href="{{ SITEURL }}/tags.html">Tags</a>
|
|
</li>
|
|
{% endif %}
|
|
</menu>
|
|
</div>
|
|
</header>
|