Welcome to mirror list, hosted at ThFree Co, Russian Federation.

header.html « partials « layouts - github.com/negrel/hugo-theme-pico.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9de24993d60abc15dd7962e17b767235a5b08f1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{{ $page := . }}

<header class="w-full flex items-center justify-between px-5 mx-auto md:mt-8 md:max-w-5xl pt-2 md:pt-0">
	{{/* Pico responsive icon (square and text) */}}
	<div class="flex items-center">
		<a href="{{ .Site.Home.Permalink }}" class="inline-block font-bold no-underline select-none">
			<h1 class="hidden md:block font-charter tracking-normal m-0">
				{{ .Site.Title }}
			</h1>

			<div class="md:hidden">
				{{ partial "icon" . }}
			</div>
		</a>
		{{ if .IsTranslated }}
		<div class="inline-block pl-2 ml-2 border-l border-gray-600">
			{{ range .Translations }}
			<a href="{{ .Permalink }}" class="no-underline inline-block px-1">
				<span class="font-bold">
					{{ .Language | upper }}
				</span>
			</a>
			{{ end }}
		</div>
		{{ end }}
	</div>

	<nav class="">
		{{ range .Site.Menus.main }}
		<a href="{{ .URL | relLangURL}}" class='mx-1 md:mx-2 hover:text-black no-underline'>
			{{ .Pre }} {{ i18n .Identifier }}
		</a>
		{{ end }}
	</nav>
</header>