From 2cb78ff5854e2f8d4cbb767fddfbdca2df4aa035 Mon Sep 17 00:00:00 2001 From: KemoNine Date: Sat, 3 Dec 2022 16:27:54 -0500 Subject: [PATCH] cleanup site layout, merge notes and recipes into main list/homepage --- config.toml | 115 +++++++++--------- themes/gochowdown/layouts/notes/single.html | 83 +++++++------ themes/gochowdown/layouts/partials/home.html | 2 +- themes/gochowdown/layouts/recipes/single.html | 65 +++++----- 4 files changed, 138 insertions(+), 127 deletions(-) diff --git a/config.toml b/config.toml index 4c512d9..8aa2586 100644 --- a/config.toml +++ b/config.toml @@ -1,60 +1,57 @@ -baseURL = "https://culinary.kemonine.info" -disablePathToLower = false -languageCode = "en-us" -title = "KemoNine's Culinary Notebook" -theme = "gochowdown" -defaultcontentlanguage = "en" -paginate = 20 -canonifyurls = true -pygmentsstyle = "monokai" -pygmentscodefences = true -pygmentscodefencesguesssyntax = true -pygmentsOptions = "linenos=table" - -[permalinks] -posts = "/posts/:year/:month/:title" - -[outputs] - home = ["HTML", "RSS", "JSON"] - -[params] -author = "KemoNine" -description = "a confused culinary notebook" -keywords = "recipes" -favicon_32 = "/images/favicon-32x32.png" -favicon_16 = "/images/favicon-16x16.png" -hidecredits = false -hidecopyright = false -showNavTitle = true -custom_css = [ "style.css" ] - -#[[menu.main]] -#name = "Home" -#weight = 1 -#url = "/" - -[[menu.main]] -name = "By Category" -weight = 20 -url = "/category/" - -[[menu.main]] -name = "By Cuisine" -weight = 30 -url = "/cuisine/" - -[[menu.main]] -name = "By Tag" -weight = 40 -url = "/tags/" - -[[menu.main]] -name = "Notes" -weight = 99 -url = "/notes/" - -[taxonomies] -category = "category" -cuisine = "cuisine" -tag = "tags" +baseURL = "https://culinary.kemonine.info" +disablePathToLower = false +languageCode = "en-us" +title = "KemoNine's Culinary Notebook" +theme = "gochowdown" +defaultcontentlanguage = "en" +paginate = 20 +canonifyurls = true +pygmentsstyle = "monokai" +pygmentscodefences = true +pygmentscodefencesguesssyntax = true +pygmentsOptions = "linenos=table" + +[permalinks] +recipes = "/recipes/:title" +notes = "/notes/:title" + +[outputs] + home = ["HTML", "RSS", "JSON"] + +[params] +author = "KemoNine" +description = "a confused culinary notebook" +keywords = "recipes" +favicon_32 = "/images/favicon-32x32.png" +favicon_16 = "/images/favicon-16x16.png" +hidecredits = false +hidecopyright = false +showNavTitle = true +custom_css = [ "style.css" ] +mainSections = ["recipe", "recipes", "note", "notes"] + +[[menu.main]] +name = "By Category" +weight = 20 +url = "/category/" + +[[menu.main]] +name = "By Cuisine" +weight = 30 +url = "/cuisine/" + +[[menu.main]] +name = "By Tag" +weight = 40 +url = "/tags/" + +[[menu.main]] +name = "Notes" +weight = 99 +url = "/notes/" + +[taxonomies] +category = "category" +cuisine = "cuisine" +tag = "tags" note = "notes" \ No newline at end of file diff --git a/themes/gochowdown/layouts/notes/single.html b/themes/gochowdown/layouts/notes/single.html index 89f4c5a..7b094d2 100644 --- a/themes/gochowdown/layouts/notes/single.html +++ b/themes/gochowdown/layouts/notes/single.html @@ -4,6 +4,51 @@ {{ define "content" }}
+ +
+ +
+

{{ .Title }}

+
+ +
+
+ Chef: + {{if .Params.authorurl }} + {{.Params.AuthorName}} + {{else}} + {{.Params.AuthorName}} + {{end}} +
+
+ + {{ with .Params.Category }}{{ partial "taxonomy/notes" . }}{{ end }} + {{ with .Params.Tags }}{{ partial "taxonomy/tags" . }}{{ end }} +
+ +
+
{{.Content}}
+
+ +
+ + {{ if .Params.inspiration }} +
+

Inspiration & Resources

+ {{ range .Params.inspiration }} +
    + {{ if .url }} +
  • {{ .title }}
  • + {{ else }} +
  • {{ .title }}
  • + {{ end }} +
+ {{ end }} + {{ end }} +
+ + + {{ if .Params.image }}
@@ -15,44 +60,6 @@
{{ end }} - -
- -
-

{{ .Title }}

-
- -
-
{{.Content}}
-
- -
- -
-

Chef: - {{if .Params.authorurl }} - {{.Params.AuthorName}} - {{else}} - {{.Params.AuthorName}} - {{end}} - {{ if .Params.inspiration }} -

Inspiration & Resources

- {{ range .Params.inspiration }} -
    - {{ if .url }} -
  • {{ .title }}
  • - {{ else }} -
  • {{ .title }}
  • - {{ end }} -
- {{ end }} - {{ end }} - - {{ with .Params.Category }}{{ partial "taxonomy/notes" . }}{{ end }} - {{ with .Params.Tags }}{{ partial "taxonomy/tags" . }}{{ end }} - -
-
{{ end }} diff --git a/themes/gochowdown/layouts/partials/home.html b/themes/gochowdown/layouts/partials/home.html index b4fbed4..6d7bd8c 100644 --- a/themes/gochowdown/layouts/partials/home.html +++ b/themes/gochowdown/layouts/partials/home.html @@ -1,7 +1,7 @@
- {{ range sort (where .Site.RegularPages "Section" "recipes") "Title" }} + {{ range sort (where site.RegularPages "Type" "in" site.Params.mainSections) "Title" }}
{{ if .Params.Image }} diff --git a/themes/gochowdown/layouts/recipes/single.html b/themes/gochowdown/layouts/recipes/single.html index ec9e2a9..183ab18 100644 --- a/themes/gochowdown/layouts/recipes/single.html +++ b/themes/gochowdown/layouts/recipes/single.html @@ -4,26 +4,31 @@ {{ define "content" }}
- - {{ if .Params.image }} -
-
- - {{ if .Params.imagecaption }} -

Pictured: {{ .Params.imagecaption }}

- {{ end }} -
-
- {{ end }} -

{{ .Title }}

-
-
{{.Content}}
+
+
+
+ Chef: + {{if .Params.authorurl }} + {{.Params.AuthorName}} + {{else}} + {{.Params.AuthorName}} + {{end}} +
+
+ {{ with .Params.Category }}{{ partial "taxonomy/category" . }}{{ end }} +
+
+ {{ with .Params.Cuisine }}{{ partial "taxonomy/cuisine" . }}{{ end }} +
+
+ + {{ with .Params.Tags }}{{ partial "taxonomy/tags" . }}{{ end }}
@@ -85,6 +90,10 @@
+
+
{{.Content}}
+
+ {{ with .Params.Components }}
@@ -138,17 +147,10 @@
-
-

Chef: - {{if .Params.authorurl }} - {{.Params.AuthorName}} - {{else}} - {{.Params.AuthorName}} - {{end}} - {{ if .Params.inspiration }} -

Inspiration & Resources

+ {{ if .Params.inspiration }} +

Inspiration & Resources

{{ range .Params.inspiration }} -
    +
      {{ if .url }}
    • {{ .title }}
    • {{ else }} @@ -158,12 +160,17 @@ {{ end }} {{ end }} - {{ with .Params.Category }}{{ partial "taxonomy/category" . }}{{ end }} - {{ with .Params.Cuisine }}{{ partial "taxonomy/cuisine" . }}{{ end }} - {{ with .Params.Tags }}{{ partial "taxonomy/tags" . }}{{ end }} - + + {{ if .Params.image }} +
      +
      + + {{ if .Params.imagecaption }} +

      Pictured: {{ .Params.imagecaption }}

      + {{ end }} +
      - + {{ end }}
{{ end }}