pyro/templates/banner.html
Freyja Wildes 099db8053d [style][templates] Change header tag for semantic
Remove <h1> and <h2> from the banner. Article list uses <h2>. Author
should make sure not title appear in the summary of an article, by
providing one or writing a short intro so no article section title
appear. Modify CSS accordingly.
2025-07-11 05:06:48 +02:00

50 lines
1.9 KiB
HTML

<header class="site-header">
<div class="banner">
<div class="logo-block">
{% if SITEAVATAR %}
<img class="logo" src="{{ SITEURL }}/{{ SITEAVATAR }}" alt="{{ SITEAVATAR_ALT }}">
{% endif %}
</div>
<div class="title-block">
<a href="{{ SITEURL }}/">
<div class="title">{{ SITENAME }}</div>
</a>
<div class="subtitle">{{ SITESUBTITLE }}</div>
</div>
<div class="social">
{% for social in SOCIAL %}
<a href="{{ social[1] }}" rel="me" title="{{ social[0] }}">
<img class="icon" src="/theme/icons/{{ social[0] }}.svg" alt="logo {{ social[0] }}">
</a>
{% endfor %}
</div>
</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>