From 2acd964d45ceaa10b21ecb19d4020351c4e1f103 Mon Sep 17 00:00:00 2001 From: Agung Pratama Date: Sat, 16 Mar 2019 23:35:06 +0700 Subject: [PATCH 1/3] Add head/footer custom --- layouts/partials/footer.html | 1 + layouts/partials/footer_custom.html | 4 ++++ layouts/partials/head.html | 3 +++ layouts/partials/head_custom.html | 4 ++++ 4 files changed, 12 insertions(+) create mode 100644 layouts/partials/footer_custom.html create mode 100644 layouts/partials/head_custom.html diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 1b7656c..022681a 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -14,3 +14,4 @@ +{{- partial "footer_custom.html" . }} diff --git a/layouts/partials/footer_custom.html b/layouts/partials/footer_custom.html new file mode 100644 index 0000000..e123130 --- /dev/null +++ b/layouts/partials/footer_custom.html @@ -0,0 +1,4 @@ + diff --git a/layouts/partials/head.html b/layouts/partials/head.html index b016406..f6e7652 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -45,3 +45,6 @@ {{ if .OutputFormats.Get "json" }} {{ end }} + + +{{- partial "head_custom.html" . }} \ No newline at end of file diff --git a/layouts/partials/head_custom.html b/layouts/partials/head_custom.html new file mode 100644 index 0000000..554494a --- /dev/null +++ b/layouts/partials/head_custom.html @@ -0,0 +1,4 @@ + From c8c495d003f237c6dbe2c59b1f3bb2c95c82eb2f Mon Sep 17 00:00:00 2001 From: Agung Pratama Date: Mon, 25 Mar 2019 09:36:56 +0700 Subject: [PATCH 2/3] Rename it to extended_(head|footer).html --- layouts/partials/{footer_custom.html => extended_footer.html} | 0 layouts/partials/{head_custom.html => extended_head.html} | 0 layouts/partials/footer.html | 2 +- layouts/partials/head.html | 2 +- 4 files changed, 2 insertions(+), 2 deletions(-) rename layouts/partials/{footer_custom.html => extended_footer.html} (100%) rename layouts/partials/{head_custom.html => extended_head.html} (100%) diff --git a/layouts/partials/footer_custom.html b/layouts/partials/extended_footer.html similarity index 100% rename from layouts/partials/footer_custom.html rename to layouts/partials/extended_footer.html diff --git a/layouts/partials/head_custom.html b/layouts/partials/extended_head.html similarity index 100% rename from layouts/partials/head_custom.html rename to layouts/partials/extended_head.html diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 022681a..5889c25 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -14,4 +14,4 @@ -{{- partial "footer_custom.html" . }} +{{- partial "extended_footer.html" . }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index f6e7652..673564d 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -47,4 +47,4 @@ {{ end }} -{{- partial "head_custom.html" . }} \ No newline at end of file +{{- partial "extended_head.html" . }} \ No newline at end of file From d38b1d9e97f9347868b3be96b021e78614531528 Mon Sep 17 00:00:00 2001 From: Agung Pratama Date: Mon, 25 Mar 2019 09:40:29 +0700 Subject: [PATCH 3/3] Change the comment to reflect the correct file name Signed-off-by: Agung Pratama --- layouts/partials/extended_footer.html | 4 ++-- layouts/partials/extended_head.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/layouts/partials/extended_footer.html b/layouts/partials/extended_footer.html index e123130..f2374c7 100644 --- a/layouts/partials/extended_footer.html +++ b/layouts/partials/extended_footer.html @@ -1,4 +1,4 @@ diff --git a/layouts/partials/extended_head.html b/layouts/partials/extended_head.html index 554494a..c422b63 100644 --- a/layouts/partials/extended_head.html +++ b/layouts/partials/extended_head.html @@ -1,4 +1,4 @@