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

github.com/antonpolishko/hugo-stellar-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWinXp <tony84727@gmail.com>2018-06-17 05:44:13 +0300
committerWinXp <tony84727@gmail.com>2018-06-17 07:31:48 +0300
commitf57d67792dd46c76c63614bb43be430e347820ad (patch)
tree0832717288c15a7d149d6496f2d2e42a3fc35ad4
parentaa6912296d17fa2a4823066ba5f43000963f1aca (diff)
footer: made contact info (phone/address) optional.
-rw-r--r--layouts/partials/footer.html12
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>