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

github.com/pfadfinder-konstanz/hugo-dpsg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/logo.html')
-rw-r--r--layouts/partials/logo.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/partials/logo.html b/layouts/partials/logo.html
index b7566c2..cb98942 100644
--- a/layouts/partials/logo.html
+++ b/layouts/partials/logo.html
@@ -1,6 +1,7 @@
{{- $logoTitle := .Site.Params.logo.title | default .Site.Title -}}
{{- $logoSubtitle := .Site.Params.logo.subtitle | default .Site.Params.subtitle -}}
{{- $logoImage := .Site.Params.logo.image -}}
+{{- $logoAlt := .Site.Params.logo.image_alt -}}
{{- if or $logoTitle $logoImage }}
{{/* Defined when logo is mixed (image + text) */}}
@@ -11,7 +12,7 @@
<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 }}">
+ <img class="logo__img" src="{{ . | relURL }}"{{ with $logoAlt }} alt="{{ . }}"{{ end }}>
</div>
{{- end -}}
{{ with $logoTitle -}}