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

@@ -3,7 +3,7 @@
<a class="navigation-title" href="{{ "/" | absURL }}">
{{ .Site.Title }}
</a>
{{with .Site.Menus.main}}
{{ with .Site.Menus.main }}
<ul class="navigation-list float-right">
{{ range sort . }}
<li class="navigation-item">
@@ -11,6 +11,6 @@
</li>
{{ end }}
</ul>
{{end}}
{{ end }}
</section>
</nav>