pyro/templates/banner.html
Freyja Wildes b4b8eb71e2 [style] Improve pagination and current page links style
- Pagination is now a list of button with a maxium of 5 pages and "begin" and "end" buttons
- Current page is now signaled with a different background. Applied to links in the banner and page link of the pagination
2025-03-07 01:39:10 +01:00

39 lines
1.4 KiB
HTML

<header class="site-header">
<div class="banner">
<a href="{{ SITEURL }}">
{% if SITEAVATAR %}
<img class="logo" src="{{ SITEURL }}/{{ SITEAVATAR }}"></img>
{% 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>