diff --git a/archetypes/default.md b/archetypes/default.md index 3b89e88..5e7f28c 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -7,7 +7,7 @@ draft: true tags: [] categories: [] -listthumbnail: "./recipie-folder-name/thumbnail.png" +listthumbnail: "./{{ title }}/thumbnail.png" thumbnail: "./thumbnail.png" parenturl: "https://site.com" diff --git a/archetypes/recipie/index.md b/archetypes/recipie/index.md new file mode 100644 index 0000000..5e7f28c --- /dev/null +++ b/archetypes/recipie/index.md @@ -0,0 +1,20 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +subtitle: Any Subtext you might want to append +date: {{ .Date }} +draft: true + +tags: [] +categories: [] + +listthumbnail: "./{{ title }}/thumbnail.png" +thumbnail: "./thumbnail.png" + +parenturl: "https://site.com" +--- + +## Ingredients + +## Instructions + +## Notes diff --git a/config.yaml b/config.yaml index 501ca4d..d951b24 100644 --- a/config.yaml +++ b/config.yaml @@ -1,4 +1,4 @@ -baseURL: 'https://jtom38.github.io/cookbook/' +baseURL: 'https://jtom38.github.io/cookbook' languageCode: 'en-us' title: 'Cookbook' theme: "hugo-bulma-cookbook" @@ -6,7 +6,6 @@ theme: "hugo-bulma-cookbook" taxonomies: category: 'categories' tag: 'tags' - #season: 'seasons' # Used to bring the /tags/ forward preserveTaxonomyNames: true @@ -14,4 +13,11 @@ preserveTaxonomyNames: true sitemap: changefreq: monthly filename: sitemap.xml - priority: 0.5 \ No newline at end of file + priority: 0.5 + +params: + # This tells hugp-bulma-cookbook theme to use the list display view + UseListRows: true + + # Enable this line to use the card view + #UseCardView: true \ No newline at end of file diff --git a/content/recipies/chicken-tikka-masala/index.md b/content/recipies/chicken-tikka-masala/index.md index 467a216..c61635d 100644 --- a/content/recipies/chicken-tikka-masala/index.md +++ b/content/recipies/chicken-tikka-masala/index.md @@ -7,9 +7,6 @@ draft: false tags: [Dinner, Bon Apptite Recipie, Indian] categories: ["Main Dish"] -listthumbnail: https://assets.bonappetit.com/photos/5b69f163d3d14670539a2174/1:1/w_2240,c_limit/ba-tikka-masala-2.jpg -thumbnail: https://assets.bonappetit.com/photos/5b69f163d3d14670539a2174/1:1/w_2240,c_limit/ba-tikka-masala-2.jpg - parenturl: https://www.bonappetit.com/recipe/chicken-tikka-masala --- diff --git a/content/recipies/chicken-tikka-masala/thumbnail.png b/content/recipies/chicken-tikka-masala/thumbnail.png new file mode 100644 index 0000000..279d216 Binary files /dev/null and b/content/recipies/chicken-tikka-masala/thumbnail.png differ diff --git a/content/recipies/drop-biscuits.md b/content/recipies/drop-biscuits/index.md similarity index 99% rename from content/recipies/drop-biscuits.md rename to content/recipies/drop-biscuits/index.md index 6da9901..39c263b 100644 --- a/content/recipies/drop-biscuits.md +++ b/content/recipies/drop-biscuits/index.md @@ -6,7 +6,6 @@ draft: false tags: ["Breakfast", "Sides"] categories: ["Sides"] -thumbnail: parenturl: https://www.seriouseats.com/recipes/2014/06/quick-easy-drop-biscuits-recipe.html --- diff --git a/content/recipies/drop-biscuits/thumbnail.png b/content/recipies/drop-biscuits/thumbnail.png new file mode 100644 index 0000000..bda4cd0 Binary files /dev/null and b/content/recipies/drop-biscuits/thumbnail.png differ diff --git a/content/recipies/instant-pot-pinto-beans/thumbnail.png b/content/recipies/instant-pot-pinto-beans/thumbnail.png new file mode 100644 index 0000000..313499f Binary files /dev/null and b/content/recipies/instant-pot-pinto-beans/thumbnail.png differ diff --git a/content/recipies/test-test/index.md b/content/recipies/test-test/index.md deleted file mode 100644 index e69de29..0000000 diff --git a/themes/hugo-bulma-cookbook/layouts/_default/list.html b/themes/hugo-bulma-cookbook/layouts/_default/list.html index e40a75f..d9563d0 100644 --- a/themes/hugo-bulma-cookbook/layouts/_default/list.html +++ b/themes/hugo-bulma-cookbook/layouts/_default/list.html @@ -1,59 +1,12 @@ {{ partial "header.html" . }} {{ partial "hero.html" . }} -
-
- - {{ range .RegularPages }} +{{ if $.Site.Params.UseListRows }} +{{ partial "list.rows.html" . }} +{{ end }} -
-
-
- - - - - -
-

- {{ .Title }} -

-

{{ .Params.subtitle }}

- - {{ with .Params.tags }} -
- {{ range . }} - - {{ end }} -
- {{ end }} - - - {{ with .Params.categories }} -
- {{ range . }} - - {{ end }} -
- {{ end }} -
-
-
-
- {{ 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 fa77727..779e07f 100644 --- a/themes/hugo-bulma-cookbook/layouts/_default/single.html +++ b/themes/hugo-bulma-cookbook/layouts/_default/single.html @@ -6,11 +6,9 @@
- {{ if .Params.thumbnail }}
- + Missing thumbnail :(
- {{ end }}
diff --git a/themes/hugo-bulma-cookbook/layouts/partials/header.html b/themes/hugo-bulma-cookbook/layouts/partials/header.html index 605a2a3..c98d51f 100644 --- a/themes/hugo-bulma-cookbook/layouts/partials/header.html +++ b/themes/hugo-bulma-cookbook/layouts/partials/header.html @@ -6,9 +6,9 @@ - - - + + +