mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2023-12-21 10:22:58 +01:00
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
Block a user