Skip to content

Commit

Permalink
Hide "Email me" link if no email address provided
Browse files Browse the repository at this point in the history
  • Loading branch information
fkohrt authored Jan 4, 2021
1 parent ed455eb commit 134c009
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<h2 class="card-name"><a class="p-name u-url" href="{{ .Site.BaseURL }}" rel="me">{{ .Site.Params.Author }}</a></h2>
<p class="card-subhead">
<span class="p-locality">{{ .Site.Params.IndieWeb.City }}</span>,
<span class="p-country-name">{{ .Site.Params.IndieWeb.Country }}</span><br />
<a class="u-email" href="mailto:{{ .Site.Params.IndieWeb.EmailAddress }}">Email me</a>
<span class="p-country-name">{{ .Site.Params.IndieWeb.Country }}</span>
{{ with .Site.Params.IndieWeb.EmailAddress }}<br /><a class="u-email" href="mailto:{{.}}">Email me</a>{{end}}
</p>
</div>
<p class="p-note">{{ .Site.Params.Biography }}</p>
Expand Down Expand Up @@ -45,4 +45,4 @@ <h2 class="card-name"><a class="p-name u-url" href="{{ .Site.BaseURL }}" rel="me

<!-- Close the body/html document -->
</body>
</html>
</html>

0 comments on commit 134c009

Please sign in to comment.