portfoligor/layouts/partials/header.html

36 lines
1.2 KiB
HTML
Raw Normal View History

<header class="main-header">
2021-10-29 22:34:24 +02:00
<a href="{{ .Site.BaseURL }}" class="title">
<img class="avatar" src="{{ .Site.BaseURL }}images/avatar.png">
2021-10-29 22:34:24 +02:00
<h1>{{ .Site.Title }}</h1>
</a>
<nav role="navigation" aria-label="Primary">
<ul>
{{ $currentPage := . -}}
{{ range sort .Site.Menus.main -}}
<li class="nav-item">
<a class="nav-item-link{{if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }} active{{end}}"
href="{{ .URL }}" title="{{ .Title }}">{{ .Name }}</a>
</li>
{{ end -}}
<li class="nav-item">
{{ if .IsPage -}}
2021-10-29 22:34:24 +02:00
<a class="nav-item-link"
href="{{ .Site.BaseURL }}index.xml"
title="S'abonner aux publications du site">S'abonner
</a>
{{ else if .IsHome -}}
2021-10-29 22:34:24 +02:00
<a class="nav-item-link"
href="{{ .Site.BaseURL }}index.xml"
title="S'abonner aux publications du site">S'abonner
</a>
{{ else if .IsNode -}}
2021-10-29 22:34:24 +02:00
<a class="nav-item-link"
href="{{ .Permalink }}index.xml"
title="S'abonner aux publications de cette section">S'abonner
</a>
{{ end -}}
2021-10-29 22:34:24 +02:00
</li>
</ul>
</nav>
</header>