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> </div>
{{ end }} {{ end }}
<div class="post-content">{{ .Content }}</div> <div class="post-content">{{ .Content }}</div>
{{- if .Params.tags }}
<footer class="post-footer"> <footer class="post-footer">
{{- if .Params.tags }}
<ul class="post-tags"> <ul class="post-tags">
{{- range .Params.tags }} {{- range .Params.tags }}
{{- $href := print (absURL "tags/") (urlize .) }} {{- $href := print (absURL "tags/") (urlize .) }}
<li><a href="{{ $href }}">{{ . }}</a></li> <li><a href="{{ $href }}">{{ . }}</a></li>
{{- end }} {{- end }}
</ul> </ul>
{{- end }}
{{ if .Site.Params.ShowShareButtons }} {{ if .Site.Params.ShowShareButtons }}
{{ partial "share-icons.html" . }} {{ partial "share-icons.html" . }}
{{ end }} {{ end }}
</footer> </footer>
{{- end }}
{{- if $.Site.Params.comments }} {{- if $.Site.Params.comments }}
{{- partial "comments.html" . }} {{- partial "comments.html" . }}