Skip to content

Commit

Permalink
use semantic html in header
Browse files Browse the repository at this point in the history
  • Loading branch information
semanticdata committed Oct 16, 2024
1 parent 948105c commit a3ba4ad
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions templates/partials/header.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{# {% include "partials/darkmode.html" %} #}

<nav class="nav">
<header>
<section class="nav-container">
<a href="{{ config.base_url | safe }}">
<h2 class="nav-title">{{ config.title | default(value="Mabuya")}}</h2>
<a class="nav-title" href="{{ config.base_url | safe }}">
<h2>{{ config.title | default(value="Mabuya")}}</h2>
</a>
<ul>
{% if config.extra.menu %} {% for menu in config.extra.menu %}
<li><a href="{{ get_url(path=menu.url) | safe }}">{{ menu.name }}</a></li>
{% endfor %} {% else %}
<li><a href="{{ config.base_url | safe }}">Posts</a></li>
<li><a href="{{ get_url(path='tags') | safe }}">Tags</a></li>
<li><a href="{{ get_url(path='about') | safe }}">About</a></li>
{% endif %}
</ul>
<nav>
<ul>
{% if config.extra.menu %}
{% for menu in config.extra.menu %}
<li><a href="{{ get_url(path=menu.url) | safe }}">{{ menu.name }}</a></li>
{% endfor %} {% else %}
<li><a href="{{ config.base_url | safe }}">Archive</a></li>
<li><a href="{{ get_url(path='tags') | safe }}">Tags</a></li>
{% endif %}
</ul>
</nav>
</section>

{# {% include "partials/darkmode.html" %} #}
</nav>
</header>

0 comments on commit a3ba4ad

Please sign in to comment.