cyberfreedom/layouts/partials/header.html
2024-01-20 23:38:55 -05:00

19 lines
No EOL
604 B
HTML

<header>
<a href='{{if eq "fr" .Language.Lang }}/{{.Language.Lang}}{{end}}/'><img src="/logo.webp" style="max-height:5rem;"></a>
<h1>{{.Site.Title}}</h1>
<nav>
<a href='{{if eq "fr" .Language.Lang }}/{{.Language.Lang}}{{end}}/'>
{{if eq "fr" .Language.Lang}}
<h2>Acceuil</h2>
{{else}}
<h2>Home</h2>
{{end}}
</a> {{ range .Site.Sections.ByWeight}}
<a href="{{.Permalink}}">
<h2>{{.Title}}</h2>
</a> {{end}}
</nav>
<nav>
{{ partial "language-picker" .}}
</nav>
</header>