cyberfreedom/layouts/partials/header.html

19 lines
631 B
HTML
Raw Normal View History

2023-12-28 00:01:05 -05:00
<header>
<a href='{{if eq "fr" .Language.Lang }}/{{.Language.Lang}}{{end}}/'><img src="/logo.webp" style="max-height:5rem;"></a>
2024-01-21 00:02:03 -05:00
<h1 style="text-align:center;">{{.Site.Title}}</h1>
2023-12-28 00:01:05 -05:00
<nav>
2024-01-20 23:38:55 -05:00
<a href='{{if eq "fr" .Language.Lang }}/{{.Language.Lang}}{{end}}/'>
{{if eq "fr" .Language.Lang}}
2024-01-21 00:02:03 -05:00
<h3>Acceuil</h3>
2024-01-20 23:38:55 -05:00
{{else}}
2024-01-21 00:02:03 -05:00
<h3>Home</h3>
2024-01-20 23:38:55 -05:00
{{end}}
</a> {{ range .Site.Sections.ByWeight}}
2023-12-28 00:01:05 -05:00
<a href="{{.Permalink}}">
2024-01-21 00:02:03 -05:00
<h3>{{.Title}}</h3>
2023-12-28 00:01:05 -05:00
</a> {{end}}
</nav>
2024-01-20 23:38:55 -05:00
<nav>
{{ partial "language-picker" .}}
</nav>
2023-12-28 00:01:05 -05:00
</header>