Separate post-footer for better customization

Leaves less room for git conflicts and unnecessary overwrites
This commit is contained in:
Berk Elyesa Yıldırım 2024-02-27 13:48:44 +03:00
parent 55b2eb48ff
commit e01d93f613
2 changed files with 17 additions and 14 deletions

View File

@ -42,20 +42,9 @@
</div>
{{- end }}
<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>
<div class="post-footer">
{{- partial "post_footer.html" . -}}
</div>
{{- if (.Param "comments") }}
{{- partial "comments.html" . }}

View 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>