Skip to content

Commit

Permalink
Merge pull request #98 from eine/fix-email
Browse files Browse the repository at this point in the history
hide email button if the field is unset in the config
  • Loading branch information
orf authored Aug 21, 2020
2 parents 09c431e + 2406146 commit d524b08
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,13 @@
</span>
</a>
{{ end }}
<a class="navbar-item" href="mailto:{{ .Site.Params.email }}" target="_blank">
{{ with $.Site.Params.email }}
<a class="navbar-item" href="mailto:{{ . }}" 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">
Expand Down

0 comments on commit d524b08

Please sign in to comment.