mirror of
https://github.com/13hannes11/hugo-coder-timeline.git
synced 2024-09-04 00:50:58 +02:00
Fix template to suport empty social parameter
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user