mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-11-22 10:31:39 +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>
|
</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" . }}
|
||||||
|
Loading…
Reference in New Issue
Block a user