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

github.com/orf/bare-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreine <eine@users.noreply.github.com>2020-08-17 15:07:01 +0300
committereine <eine@users.noreply.github.com>2020-08-17 15:07:10 +0300
commit6e441855398b0577681ca525400241d220d0ea23 (patch)
tree90f991d24e5c0621941a90f615a83303cbd82bc1
parentb306616ab140a3d37c08f9e90cb0d597bfb7ffb2 (diff)
hide email button if the field is unset in the config
-rw-r--r--layouts/partials/header.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 77353c2..c0ec319 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -35,11 +35,13 @@
</span>
</a>
{{ end }}
+ {{ with $.Site.Params.email }}
<a class="navbar-item" href="mailto:{{ .Site.Params.email }}" target="_blank">
<span class="icon">
<img alt="email" src='{{ (resources.Get "icons/svg/email.svg").Permalink }}'>
</span>
</a>
+ {{ end }}
{{ with $.Site.Home.OutputFormats.Get "rss" -}}
<a class="navbar-item" href="{{ .Permalink }}" target="_blank">
<span class="icon">