From e01d93f6139cec4af79aa985baaa357d9755415e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Berk=20Elyesa=20Y=C4=B1ld=C4=B1r=C4=B1m?= Date: Tue, 27 Feb 2024 13:48:44 +0300 Subject: [PATCH] Separate post-footer for better customization Leaves less room for git conflicts and unnecessary overwrites --- layouts/_default/single.html | 17 +++-------------- layouts/partials/post_footer.html | 14 ++++++++++++++ 2 files changed, 17 insertions(+), 14 deletions(-) create mode 100644 layouts/partials/post_footer.html diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 19a624f..aafce07 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -42,20 +42,9 @@ {{- end }} - +
+ {{- partial "post_footer.html" . -}} +
{{- if (.Param "comments") }} {{- partial "comments.html" . }} diff --git a/layouts/partials/post_footer.html b/layouts/partials/post_footer.html new file mode 100644 index 0000000..8b0a0a5 --- /dev/null +++ b/layouts/partials/post_footer.html @@ -0,0 +1,14 @@ +