aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/partials/home.html
diff options
context:
space:
mode:
authorLuiz de Prá <luiz.pra@olist.com>2018-03-23 14:28:38 -0300
committerLuiz de Prá <luiz.pra@olist.com>2018-03-23 14:28:38 -0300
commit853492596dd78dedb755e66db8d79d01e13c66b2 (patch)
treecc195c17a5d5bc6cb28e2c741fb99b8c56975d9c /layouts/partials/home.html
parent941c9a741fe7ebe82aacdea5ec3b3a2298aede2f (diff)
downloadhugo-coder-853492596dd78dedb755e66db8d79d01e13c66b2.tar.gz
hugo-coder-853492596dd78dedb755e66db8d79d01e13c66b2.tar.bz2
hugo-coder-853492596dd78dedb755e66db8d79d01e13c66b2.zip
Fix template to suport empty social parameter
Diffstat (limited to 'layouts/partials/home.html')
-rw-r--r--layouts/partials/home.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/partials/home.html b/layouts/partials/home.html
index 6c44ae0..e497537 100644
--- a/layouts/partials/home.html
+++ b/layouts/partials/home.html
@@ -2,10 +2,12 @@
<div class="about">
<h1>{{ .Site.Params.author }}</h1>
<h2>{{ .Site.Params.info }}</h2>
+ {{ with .Site.Params.social }}
<ul>
- {{ range sort .Site.Params.social }}
+ {{ range sort .}}
<li><a href="{{ .url }}">{{ .name }}</a></li>
{{ end }}
</ul>
+ {{ end }}
</div>
</section>