From 3fc155c7ba13f17066d4aee376daa7e2a14c7127 Mon Sep 17 00:00:00 2001 From: James Tombleson Date: Tue, 18 Oct 2022 21:56:21 -0700 Subject: [PATCH 1/3] Updated the layout to load meta tags for when a link is shared with someone --- config.yaml | 5 +- .../layouts/_default/index.html | 28 +++++--- .../layouts/_default/list.html | 33 ++++++--- .../layouts/_default/single.html | 72 ++++++++++--------- .../layouts/partials/footer.html | 3 - .../layouts/partials/header.html | 45 ++---------- .../layouts/partials/header.meta.html | 7 ++ .../layouts/partials/header.meta.single.html | 9 +++ .../layouts/partials/script.menu.html | 22 ++++++ 9 files changed, 126 insertions(+), 98 deletions(-) delete mode 100644 themes/hugo-bulma-cookbook/layouts/partials/footer.html create mode 100644 themes/hugo-bulma-cookbook/layouts/partials/header.meta.html create mode 100644 themes/hugo-bulma-cookbook/layouts/partials/header.meta.single.html create mode 100644 themes/hugo-bulma-cookbook/layouts/partials/script.menu.html diff --git a/config.yaml b/config.yaml index 8131eb8..20062dd 100644 --- a/config.yaml +++ b/config.yaml @@ -1,6 +1,7 @@ -baseURL: 'https://jtom38.github.io/cookbook/' +#baseURL: 'https://jtom38.github.io/cookbook/' +baseURL: 'https://cookbook.jamestombleson.com/' languageCode: 'en-us' -title: 'Cookbook' +title: 'Tombleson Family Cookbook' theme: "hugo-bulma-cookbook" taxonomies: diff --git a/themes/hugo-bulma-cookbook/layouts/_default/index.html b/themes/hugo-bulma-cookbook/layouts/_default/index.html index 09d8aa9..d9d8aba 100644 --- a/themes/hugo-bulma-cookbook/layouts/_default/index.html +++ b/themes/hugo-bulma-cookbook/layouts/_default/index.html @@ -1,12 +1,18 @@ -{{ partial "header.html" . }} -{{ partial "hero.html" . }} - -
-
- -
- {{ .Content }} + + + + {{ partial "header.html"}} + {{ partial "header.meta.html" .}} + {{ partial "script.menu.html"}} + {{ .Title }} + + + {{ partial "navbar" . }} + {{ partial "hero.html" . }} +
+
+
+ {{ .Content }} +
-
- - + diff --git a/themes/hugo-bulma-cookbook/layouts/_default/list.html b/themes/hugo-bulma-cookbook/layouts/_default/list.html index d9563d0..0d7377e 100644 --- a/themes/hugo-bulma-cookbook/layouts/_default/list.html +++ b/themes/hugo-bulma-cookbook/layouts/_default/list.html @@ -1,12 +1,23 @@ -{{ partial "header.html" . }} -{{ partial "hero.html" . }} + + + + {{ partial "header.html"}} + {{ partial "header.meta.html" .}} + {{ partial "script.menu.html"}} + {{ .Title }} + + + {{ partial "navbar" . }} + {{ partial "hero.html" . }} +
+
+ {{ if $.Site.Params.UseListRows }} + {{ partial "list.rows.html" . }} + {{ end }} + + {{ if $.Site.Params.UseCardView }} + {{ partial "list.cards.html" . }} + {{ end }} +
+ -{{ if $.Site.Params.UseListRows }} -{{ partial "list.rows.html" . }} -{{ end }} - -{{ if $.Site.Params.UseCardView }} -{{ partial "list.cards.html" . }} -{{ end }} - -{{ partial "footer.html" . }} \ No newline at end of file diff --git a/themes/hugo-bulma-cookbook/layouts/_default/single.html b/themes/hugo-bulma-cookbook/layouts/_default/single.html index 779e07f..bdfe5c9 100644 --- a/themes/hugo-bulma-cookbook/layouts/_default/single.html +++ b/themes/hugo-bulma-cookbook/layouts/_default/single.html @@ -1,40 +1,46 @@ -{{ partial "header.html" . }} -{{ partial "hero.html" . }} + + + + {{ partial "header.html"}} + {{ partial "header.meta.single.html" .}} + {{ partial "script.menu.html"}} + {{ .Title }} + + + {{ partial "navbar" . }} + {{ partial "hero.html" . }} +
+
-
-
- -
+
-
- Missing thumbnail :( -
- -
-
- {{ .Content }} +
+ Missing thumbnail :(
- -

Posted: {{ .Date.Format "Mon Jan 2, 2006" }}

-
Word Count: {{ .WordCount }} Words
- -
-

Tags

-
- {{ with .Params.tags }} - - {{ range . }} - - {{ end }} - - {{ end }} +
+
+ {{ .Content }} +
+ +

Posted: {{ .Date.Format "Mon Jan 2, 2006" }}

+
Word Count: {{ .WordCount }} Words
+ +
+

Tags

+ +
+ {{ with .Params.tags }} + + {{ range . }} + + {{ end }} + + {{ end }} +
-
- - -{{ partial "footer.html" . }} \ No newline at end of file + \ No newline at end of file diff --git a/themes/hugo-bulma-cookbook/layouts/partials/footer.html b/themes/hugo-bulma-cookbook/layouts/partials/footer.html deleted file mode 100644 index 90e5d1b..0000000 --- a/themes/hugo-bulma-cookbook/layouts/partials/footer.html +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/themes/hugo-bulma-cookbook/layouts/partials/header.html b/themes/hugo-bulma-cookbook/layouts/partials/header.html index c98d51f..efbe8fc 100644 --- a/themes/hugo-bulma-cookbook/layouts/partials/header.html +++ b/themes/hugo-bulma-cookbook/layouts/partials/header.html @@ -1,39 +1,8 @@ - - - - - - - + + + + - - - - - - - {{ .Title }} - - - - {{ partial "navbar" . }} \ No newline at end of file + + + diff --git a/themes/hugo-bulma-cookbook/layouts/partials/header.meta.html b/themes/hugo-bulma-cookbook/layouts/partials/header.meta.html new file mode 100644 index 0000000..7f018d4 --- /dev/null +++ b/themes/hugo-bulma-cookbook/layouts/partials/header.meta.html @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/themes/hugo-bulma-cookbook/layouts/partials/header.meta.single.html b/themes/hugo-bulma-cookbook/layouts/partials/header.meta.single.html new file mode 100644 index 0000000..d9bcd74 --- /dev/null +++ b/themes/hugo-bulma-cookbook/layouts/partials/header.meta.single.html @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/themes/hugo-bulma-cookbook/layouts/partials/script.menu.html b/themes/hugo-bulma-cookbook/layouts/partials/script.menu.html new file mode 100644 index 0000000..36c610e --- /dev/null +++ b/themes/hugo-bulma-cookbook/layouts/partials/script.menu.html @@ -0,0 +1,22 @@ + + From 28e16b399063b3fe98c80e543c324cda79d69afb Mon Sep 17 00:00:00 2001 From: James Tombleson Date: Tue, 18 Oct 2022 22:09:16 -0700 Subject: [PATCH 2/3] moved back to the github.io uri given the dns is being a pain --- config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.yaml b/config.yaml index 20062dd..7676f40 100644 --- a/config.yaml +++ b/config.yaml @@ -1,5 +1,5 @@ -#baseURL: 'https://jtom38.github.io/cookbook/' -baseURL: 'https://cookbook.jamestombleson.com/' +baseURL: 'https://jtom38.github.io/cookbook/' +#baseURL: 'https://cookbook.jamestombleson.com/' languageCode: 'en-us' title: 'Tombleson Family Cookbook' theme: "hugo-bulma-cookbook" From a14b6f0a18f8c956f37aa839883cedf5caced0d1 Mon Sep 17 00:00:00 2001 From: James Tombleson Date: Tue, 18 Oct 2022 22:11:53 -0700 Subject: [PATCH 3/3] fixed taxonomy layout --- .../layouts/taxonomy/terms.html | 35 ++++++++++++------- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/themes/hugo-bulma-cookbook/layouts/taxonomy/terms.html b/themes/hugo-bulma-cookbook/layouts/taxonomy/terms.html index a7a16bf..333e5f3 100644 --- a/themes/hugo-bulma-cookbook/layouts/taxonomy/terms.html +++ b/themes/hugo-bulma-cookbook/layouts/taxonomy/terms.html @@ -1,16 +1,25 @@ -{{ partial "header.html" . }} -{{ partial "hero.html" . }} + + -
-
+ + {{ partial "header.html"}} + {{ partial "header.meta.html" .}} + {{ partial "script.menu.html"}} + {{ .Title }} + -
- {{ range .Data.Pages }} - - {{ end }} + + {{ partial "navbar" . }} + {{ partial "hero.html" . }} +
+
+ +
+ {{ range .Data.Pages }} + + {{ end }} +
-
- -{{ partial "footer.html" . }} \ No newline at end of file + \ No newline at end of file