From 1cf2b933a3b50336004d26bc8ccbcedd1de178f7 Mon Sep 17 00:00:00 2001 From: "Wael M. Nasreddine" Date: Tue, 26 Feb 2019 00:35:20 -0800 Subject: [PATCH 1/4] partials/head: render a placeholder custom_head.html --- exampleSite/layouts/partials/custom_head.html | 3 +++ layouts/partials/custom_head.html | 4 ++++ layouts/partials/head.html | 3 +++ 3 files changed, 10 insertions(+) create mode 100644 exampleSite/layouts/partials/custom_head.html create mode 100644 layouts/partials/custom_head.html diff --git a/exampleSite/layouts/partials/custom_head.html b/exampleSite/layouts/partials/custom_head.html new file mode 100644 index 0000000..8270a73 --- /dev/null +++ b/exampleSite/layouts/partials/custom_head.html @@ -0,0 +1,3 @@ + diff --git a/layouts/partials/custom_head.html b/layouts/partials/custom_head.html new file mode 100644 index 0000000..fd7359a --- /dev/null +++ b/layouts/partials/custom_head.html @@ -0,0 +1,4 @@ + diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 4f8ce9f..f5afecb 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -50,3 +50,6 @@ {{ if .OutputFormats.Get "json" }} {{ end }} + + +{{ partial "custom_head.html" . }} From 4b959d0aa680ad12ef4989c1645db34c3cbb324f Mon Sep 17 00:00:00 2001 From: "Wael M. Nasreddine" Date: Tue, 26 Feb 2019 00:37:56 -0800 Subject: [PATCH 2/4] partials/footer: render a placeholder custom_footer.html --- exampleSite/layouts/partials/custom_footer.html | 3 +++ layouts/partials/custom_footer.html | 4 ++++ layouts/partials/footer.html | 3 +++ 3 files changed, 10 insertions(+) create mode 100644 exampleSite/layouts/partials/custom_footer.html create mode 100644 layouts/partials/custom_footer.html diff --git a/exampleSite/layouts/partials/custom_footer.html b/exampleSite/layouts/partials/custom_footer.html new file mode 100644 index 0000000..4933c9c --- /dev/null +++ b/exampleSite/layouts/partials/custom_footer.html @@ -0,0 +1,3 @@ + diff --git a/layouts/partials/custom_footer.html b/layouts/partials/custom_footer.html new file mode 100644 index 0000000..1d1abe3 --- /dev/null +++ b/layouts/partials/custom_footer.html @@ -0,0 +1,4 @@ + diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 9efe999..6a49495 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -13,3 +13,6 @@ + + +{{ partial "custom_footer.html" . }} From c375d4ce5d9fc2d77210197b0de59c05c4eab7b4 Mon Sep 17 00:00:00 2001 From: "Wael M. Nasreddine" Date: Mon, 4 Mar 2019 14:18:30 -0800 Subject: [PATCH 3/4] remove the example header and footer --- exampleSite/layouts/partials/custom_footer.html | 3 --- exampleSite/layouts/partials/custom_head.html | 3 --- 2 files changed, 6 deletions(-) delete mode 100644 exampleSite/layouts/partials/custom_footer.html delete mode 100644 exampleSite/layouts/partials/custom_head.html diff --git a/exampleSite/layouts/partials/custom_footer.html b/exampleSite/layouts/partials/custom_footer.html deleted file mode 100644 index 4933c9c..0000000 --- a/exampleSite/layouts/partials/custom_footer.html +++ /dev/null @@ -1,3 +0,0 @@ - diff --git a/exampleSite/layouts/partials/custom_head.html b/exampleSite/layouts/partials/custom_head.html deleted file mode 100644 index 8270a73..0000000 --- a/exampleSite/layouts/partials/custom_head.html +++ /dev/null @@ -1,3 +0,0 @@ - From 00296f07b449509218b728c6e95dcbf714e408ab Mon Sep 17 00:00:00 2001 From: "Wael M. Nasreddine" Date: Mon, 4 Mar 2019 14:20:48 -0800 Subject: [PATCH 4/4] rename the partials to extended_head and extended_footer --- layouts/partials/custom_footer.html | 4 ---- layouts/partials/custom_head.html | 4 ---- layouts/partials/extended_footer.html | 4 ++++ layouts/partials/extended_head.html | 4 ++++ layouts/partials/footer.html | 4 ++-- layouts/partials/head.html | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) delete mode 100644 layouts/partials/custom_footer.html delete mode 100644 layouts/partials/custom_head.html create mode 100644 layouts/partials/extended_footer.html create mode 100644 layouts/partials/extended_head.html diff --git a/layouts/partials/custom_footer.html b/layouts/partials/custom_footer.html deleted file mode 100644 index 1d1abe3..0000000 --- a/layouts/partials/custom_footer.html +++ /dev/null @@ -1,4 +0,0 @@ - diff --git a/layouts/partials/custom_head.html b/layouts/partials/custom_head.html deleted file mode 100644 index fd7359a..0000000 --- a/layouts/partials/custom_head.html +++ /dev/null @@ -1,4 +0,0 @@ - diff --git a/layouts/partials/extended_footer.html b/layouts/partials/extended_footer.html new file mode 100644 index 0000000..1ef9361 --- /dev/null +++ b/layouts/partials/extended_footer.html @@ -0,0 +1,4 @@ + diff --git a/layouts/partials/extended_head.html b/layouts/partials/extended_head.html new file mode 100644 index 0000000..69baf1f --- /dev/null +++ b/layouts/partials/extended_head.html @@ -0,0 +1,4 @@ + diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 6a49495..2a04dbf 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -14,5 +14,5 @@ - -{{ partial "custom_footer.html" . }} + +{{ partial "extended_footer.html" . }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index f5afecb..bb44924 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -51,5 +51,5 @@ {{ end }} - -{{ partial "custom_head.html" . }} + +{{ partial "extended_head.html" . }}