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

logo.html « partials « layouts - github.com/pfadfinder-konstanz/hugo-dpsg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b7566c20aac8bc01cc61cdc73df0e48d39b4e103 (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
{{- $logoTitle := .Site.Params.logo.title | default .Site.Title -}}
{{- $logoSubtitle := .Site.Params.logo.subtitle | default .Site.Params.subtitle -}}
{{- $logoImage := .Site.Params.logo.image -}}

{{- if or $logoTitle $logoImage }}
	{{/* Defined when logo is mixed (image + text) */}}
	{{- $logoMix := and $logoImage $logoTitle -}}

	<div class="logo{{ with $logoMix }} logo--mixed{{ end }}">
		<div class="container">
			<a class="logo__link" href="{{ "" | relLangURL }}"{{ with $logoTitle }} title="{{ . }}"{{ end }} rel="home">
				{{ with $logoImage -}}
					<div class="logo__item logo__imagebox">
						<img class="logo__img" src="{{ . | relURL }}">
					</div>
				{{- end -}}
				{{ with $logoTitle -}}
					<div class="logo__item logo__text">
						<div class="logo__title">{{ . }}</div>
						{{ with $logoSubtitle }}<div class="logo__tagline">{{ . }}</div>{{ end }}
					</div>
				{{- end }}
			</a>
		</div>
	</div>
{{- end }}