diff options
author | eine <eine@users.noreply.github.com> | 2020-08-17 15:07:01 +0300 |
---|---|---|
committer | eine <eine@users.noreply.github.com> | 2020-08-17 15:07:10 +0300 |
commit | 6e441855398b0577681ca525400241d220d0ea23 (patch) | |
tree | 90f991d24e5c0621941a90f615a83303cbd82bc1 | |
parent | b306616ab140a3d37c08f9e90cb0d597bfb7ffb2 (diff) |
hide email button if the field is unset in the config
-rw-r--r-- | layouts/partials/header.html | 2 |
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"> |