Separate post-footer for better customization
Leaves less room for git conflicts and unnecessary overwrites
This commit is contained in:
parent
55b2eb48ff
commit
e01d93f613
@ -42,20 +42,9 @@
|
|||||||
</div>
|
</div>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
<footer class="post-footer">
|
<div class="post-footer">
|
||||||
{{- $tags := .Language.Params.Taxonomies.tag | default "tags" }}
|
{{- partial "post_footer.html" . -}}
|
||||||
<ul class="post-tags">
|
</div>
|
||||||
{{- range ($.GetTerms $tags) }}
|
|
||||||
<li><a href="{{ .Permalink }}">{{ .LinkTitle }}</a></li>
|
|
||||||
{{- end }}
|
|
||||||
</ul>
|
|
||||||
{{- if (.Param "ShowPostNavLinks") }}
|
|
||||||
{{- partial "post_nav_links.html" . }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if (and site.Params.ShowShareButtons (ne .Params.disableShare true)) }}
|
|
||||||
{{- partial "share_icons.html" . -}}
|
|
||||||
{{- end }}
|
|
||||||
</footer>
|
|
||||||
|
|
||||||
{{- if (.Param "comments") }}
|
{{- if (.Param "comments") }}
|
||||||
{{- partial "comments.html" . }}
|
{{- partial "comments.html" . }}
|
||||||
|
14
layouts/partials/post_footer.html
Normal file
14
layouts/partials/post_footer.html
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<footer class="post-footer">
|
||||||
|
{{- $tags := .Language.Params.Taxonomies.tag | default "tags" }}
|
||||||
|
<ul class="post-tags">
|
||||||
|
{{- range ($.GetTerms $tags) }}
|
||||||
|
<li><a href="{{ .Permalink }}">{{ .LinkTitle }}</a></li>
|
||||||
|
{{- end }}
|
||||||
|
</ul>
|
||||||
|
{{- if (.Param "ShowPostNavLinks") }}
|
||||||
|
{{- partial "post_nav_links.html" . }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if (and site.Params.ShowShareButtons (ne .Params.disableShare true)) }}
|
||||||
|
{{- partial "share_icons.html" . -}}
|
||||||
|
{{- end }}
|
||||||
|
</footer>
|
Loading…
x
Reference in New Issue
Block a user