Fix template to suport empty social parameter

This commit is contained in:
Luiz de Prá
2018-03-23 14:28:38 -03:00
parent 941c9a741f
commit 853492596d
4 changed files with 7 additions and 12 deletions

View File

@@ -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>