blog.minskio.co.uk

Content and theme behind minskio.co.uk
Log | Files | Refs

commit b16808e10675d9f73dd3d2cdc6000f3b60800f89
parent e6a46071eb35595aadd4d6a0f5f0c33fa23fc5fa
Author: breadcat <peter@minskio.co.uk>
Date:   Sat, 27 Jun 2020 23:59:41 +0100

Add recipes

Big thanks to https://github.com/damien1 for his help here

Diffstat:
Mconfig.toml | 6++++++
Mcontent/recipes/_index.md | 49++-----------------------------------------------
Mcontent/recipes/cheese-crisps.md | 2+-
Mcontent/recipes/cheesy-mushroom-soup.md | 2+-
Mcontent/recipes/chocolate-chip-cookies.md | 2+-
Mcontent/recipes/chocolate-fudge-brownies.md | 2+-
Mcontent/recipes/chocolate-mousse.md | 2+-
Mcontent/recipes/coconut-flour-breadcakes.md | 2+-
Mcontent/recipes/coconut-flour-roti.md | 2+-
Mcontent/recipes/dauphinoise-courgette.md | 2+-
Mcontent/recipes/doner-kebab.md | 2+-
Mcontent/recipes/fathead-dough.md | 2+-
Mcontent/recipes/linseed-crisps.md | 2+-
Mcontent/recipes/mug-bread.md | 2+-
Mcontent/recipes/nuts-and-chocolate-fat-bombs.md | 2+-
Mcontent/recipes/spaghetti-carbonara.md | 2+-
Athemes/Brine/layouts/_default/recipes.html | 22++++++++++++++++++++++
17 files changed, 44 insertions(+), 61 deletions(-)

diff --git a/config.toml b/config.toml @@ -12,3 +12,9 @@ theme = "Brine" [params] author = "Peter" description = "The 'No-Pictures' Blog" + +[taxonomies] + tag = "tags" + category = "categories" + recipe = "recipe" + diff --git a/content/recipes/_index.md b/content/recipes/_index.md @@ -1,50 +1,6 @@ --- -layout: page +layout: recipes title: Recipes --- -A personal archive of ketogenic recipes, straight to the point, using metric measurements with slight tweaks - -# Meals: -<ul> - {% for recipe in site.pages %} - {% if recipe.type == 'recipe_meal' %} - <li> - <a href="{{ recipe.url }}">{{recipe.title}}</a> - </li> - {% endif %} - {% endfor %} -</ul> - -# Snacks: -<ul> - {% for recipe in site.pages %} - {% if recipe.type == 'recipe_snack' %} - <li> - <a href="{{ recipe.url }}">{{recipe.title}}</a> - </li> - {% endif %} - {% endfor %} -</ul> - -# Breads -<ul> - {% for recipe in site.pages %} - {% if recipe.type == 'recipe_bread' %} - <li> - <a href="{{ recipe.url }}">{{recipe.title}}</a> - </li> - {% endif %} - {% endfor %} -</ul> - -# Desserts -<ul> - {% for recipe in site.pages %} - {% if recipe.type == 'recipe_dessert' %} - <li> - <a href="{{ recipe.url }}">{{recipe.title}}</a> - </li> - {% endif %} - {% endfor %} -</ul> -\ No newline at end of file +A personal archive of ketogenic recipes, straight to the point, using metric measurements with slight tweaks. diff --git a/content/recipes/cheese-crisps.md b/content/recipes/cheese-crisps.md @@ -1,7 +1,7 @@ --- layout: page title: Cheese Crisps -type: recipe_snack +recipe: snack --- * Servings: 1 diff --git a/content/recipes/cheesy-mushroom-soup.md b/content/recipes/cheesy-mushroom-soup.md @@ -1,7 +1,7 @@ --- layout: page title: Cheesy Mushroom Soup -type: recipe_meal +recipe: meal --- * Servings: 2 diff --git a/content/recipes/chocolate-chip-cookies.md b/content/recipes/chocolate-chip-cookies.md @@ -1,7 +1,7 @@ --- layout: page title: Chocolate Chip Cookies -type: recipe_dessert +recipe: dessert --- * Servings: 12 diff --git a/content/recipes/chocolate-fudge-brownies.md b/content/recipes/chocolate-fudge-brownies.md @@ -1,7 +1,7 @@ --- layout: page title: Chocolate Fudge Brownies -type: recipe_dessert +recipe: dessert --- * Servings: 16 diff --git a/content/recipes/chocolate-mousse.md b/content/recipes/chocolate-mousse.md @@ -1,7 +1,7 @@ --- layout: page title: Chocolate Mousse -type: recipe_dessert +recipe: dessert --- * Servings: 4 diff --git a/content/recipes/coconut-flour-breadcakes.md b/content/recipes/coconut-flour-breadcakes.md @@ -1,7 +1,7 @@ --- layout: page title: Coconut Flour Breadcakes -type: recipe_bread +recipe: bread --- * Servings: 6 diff --git a/content/recipes/coconut-flour-roti.md b/content/recipes/coconut-flour-roti.md @@ -1,7 +1,7 @@ --- layout: page title: Coconut Flour Roti -type: recipe_bread +recipe: bread --- * Servings: 4 diff --git a/content/recipes/dauphinoise-courgette.md b/content/recipes/dauphinoise-courgette.md @@ -1,7 +1,7 @@ --- layout: page title: Dauphinoise Courgette -type: recipe_meal +recipe: meal --- * Servings: 2 diff --git a/content/recipes/doner-kebab.md b/content/recipes/doner-kebab.md @@ -1,7 +1,7 @@ --- layout: page title: Doner Kebab -type: recipe_meal +recipe: meal --- * Servings: 4 diff --git a/content/recipes/fathead-dough.md b/content/recipes/fathead-dough.md @@ -1,7 +1,7 @@ --- layout: page title: Fathead Dough -type: recipe_bread +recipe: bread --- * Servings: 2 diff --git a/content/recipes/linseed-crisps.md b/content/recipes/linseed-crisps.md @@ -1,7 +1,7 @@ --- layout: page title: Linseed Crisps -type: recipe_snack +recipe: snack --- * Servings: Varies diff --git a/content/recipes/mug-bread.md b/content/recipes/mug-bread.md @@ -1,7 +1,7 @@ --- layout: page title: Mug Bread -type: recipe_bread +recipe: bread --- * Servings: 1 diff --git a/content/recipes/nuts-and-chocolate-fat-bombs.md b/content/recipes/nuts-and-chocolate-fat-bombs.md @@ -1,7 +1,7 @@ --- layout: page title: Nuts and Chocolate Fat Bombs -type: recipe_dessert +recipe: dessert --- * Servings: 20 diff --git a/content/recipes/spaghetti-carbonara.md b/content/recipes/spaghetti-carbonara.md @@ -1,7 +1,7 @@ --- layout: page title: Spaghetti Carbonara -type: recipe_meal +recipe: meal --- * Servings: 1 diff --git a/themes/Brine/layouts/_default/recipes.html b/themes/Brine/layouts/_default/recipes.html @@ -0,0 +1,22 @@ +{{ define "main" }} <h1>{{ .Title }}</h1> + {{ .Content }} + <h3>Meals</h3> + <ul>{{ range .Site.Taxonomies.recipe.meal}} + <li><a href="{{ .Page.RelPermalink }}">{{ .Page.Title }}</a></li>{{ end }} + </ul> + <h3>Snacks</h3> + <ul>{{ range .Site.Taxonomies.recipe.snack}} + <li><a href="{{ .Page.RelPermalink }}">{{ .Page.Title }}</a></li>{{ end }} + </ul> + <h3>Breads</h3> + <ul>{{ range .Site.Taxonomies.recipe.bread}} + <li><a href="{{ .Page.RelPermalink }}">{{ .Page.Title }}</a></li>{{ end }} + </ul> + <h3>Desserts</h3> + <ul>{{ range .Site.Taxonomies.recipe.dessert}} + <li><a href="{{ .Page.RelPermalink }}">{{ .Page.Title }}</a></li>{{ end }} + </ul>{{ end }} + + + +