share-buttons: fix icons not shown
when no tags were present
This commit is contained in:
parent
741fc9d220
commit
8af56e302d
|
@ -27,19 +27,19 @@
|
|||
</div>
|
||||
{{ end }}
|
||||
<div class="post-content">{{ .Content }}</div>
|
||||
{{- if .Params.tags }}
|
||||
<footer class="post-footer">
|
||||
{{- if .Params.tags }}
|
||||
<ul class="post-tags">
|
||||
{{- range .Params.tags }}
|
||||
{{- $href := print (absURL "tags/") (urlize .) }}
|
||||
<li><a href="{{ $href }}">{{ . }}</a></li>
|
||||
{{- end }}
|
||||
</ul>
|
||||
{{- end }}
|
||||
{{ if .Site.Params.ShowShareButtons }}
|
||||
{{ partial "share-icons.html" . }}
|
||||
{{ end }}
|
||||
</footer>
|
||||
{{- end }}
|
||||
|
||||
{{- if $.Site.Params.comments }}
|
||||
{{- partial "comments.html" . }}
|
||||
|
|
Loading…
Reference in New Issue