share-buttons: fix icons not shown

when no tags were present
This commit is contained in:
Aditya Telange 2020-08-23 16:35:53 +05:30
parent 741fc9d220
commit 8af56e302d
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77

View File

@ -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" . }}