diff options
author | antonpolishko <anton.polishko@gmail.com> | 2018-06-19 10:01:37 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-19 10:01:37 +0300 |
commit | ac20424b5a1c57539eb80f1464ea295c261a7f08 (patch) | |
tree | 0832717288c15a7d149d6496f2d2e42a3fc35ad4 | |
parent | aa6912296d17fa2a4823066ba5f43000963f1aca (diff) | |
parent | f57d67792dd46c76c63614bb43be430e347820ad (diff) |
Merge pull request #1 from MinecraftXwinP/master
footer: made contact info (phone/address) optional.
-rw-r--r-- | layouts/partials/footer.html | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 462fe05..793fb2c 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -14,10 +14,14 @@ <section> <h2>{{ .Site.Params.footer.second_title }}</h2> <dl class="alt"> - <dt>Address</dt> - <dd>{{.Site.Params.footer.address | markdownify }}</dd> - <dt>Phone</dt> - <dd>{{.Site.Params.footer.phone | markdownify }}</dd> + {{ with .Site.Params.footer.address }} + <dt>Address</dt> + <dd>{{ . | markdownify }}</dd> + {{ end }} + {{ with .Site.Params.footer.phone }} + <dt>Phone</dt> + <dd>{{ . | markdownify }}</dd> + {{ end }} <dt>Email</dt> <dd><a href="mailto:{{.Site.Params.footer.email}}">{{.Site.Params.footer.email | markdownify }}</a></dd> </dl> |