diff options
author | breadcat | 2020-06-27 23:59:41 +0100 |
---|---|---|
committer | breadcat | 2020-06-27 23:59:41 +0100 |
commit | b16808e10675d9f73dd3d2cdc6000f3b60800f89 (patch) | |
tree | 67afa5138f4e4800e17160e8c23770b451368bd0 | |
parent | e6a46071eb35595aadd4d6a0f5f0c33fa23fc5fa (diff) | |
download | blog.minskio.co.uk-b16808e10675d9f73dd3d2cdc6000f3b60800f89.tar.gz blog.minskio.co.uk-b16808e10675d9f73dd3d2cdc6000f3b60800f89.tar.bz2 blog.minskio.co.uk-b16808e10675d9f73dd3d2cdc6000f3b60800f89.zip |
Add recipes
Big thanks to https://github.com/damien1 for his help here
-rw-r--r-- | config.toml | 6 | ||||
-rw-r--r-- | content/recipes/_index.md | 48 | ||||
-rw-r--r-- | content/recipes/cheese-crisps.md | 2 | ||||
-rw-r--r-- | content/recipes/cheesy-mushroom-soup.md | 2 | ||||
-rw-r--r-- | content/recipes/chocolate-chip-cookies.md | 2 | ||||
-rw-r--r-- | content/recipes/chocolate-fudge-brownies.md | 2 | ||||
-rw-r--r-- | content/recipes/chocolate-mousse.md | 2 | ||||
-rw-r--r-- | content/recipes/coconut-flour-breadcakes.md | 2 | ||||
-rw-r--r-- | content/recipes/coconut-flour-roti.md | 2 | ||||
-rw-r--r-- | content/recipes/dauphinoise-courgette.md | 2 | ||||
-rw-r--r-- | content/recipes/doner-kebab.md | 2 | ||||
-rw-r--r-- | content/recipes/fathead-dough.md | 2 | ||||
-rw-r--r-- | content/recipes/linseed-crisps.md | 2 | ||||
-rw-r--r-- | content/recipes/mug-bread.md | 2 | ||||
-rw-r--r-- | content/recipes/nuts-and-chocolate-fat-bombs.md | 2 | ||||
-rw-r--r-- | content/recipes/spaghetti-carbonara.md | 2 | ||||
-rw-r--r-- | themes/Brine/layouts/_default/recipes.html | 22 |
17 files changed, 44 insertions, 60 deletions
diff --git a/config.toml b/config.toml index c04202f..db7a0f6 100644 --- 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 index 410e5f1..a2fa7c4 100644 --- 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 index f1fc05c..60e40f2 100644 --- 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 index c5b1fd1..aeedcfc 100644 --- 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 index 5ff436c..7853533 100644 --- 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 index 9341d98..916c29e 100644 --- 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 index cb9698f..c5f8373 100644 --- 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 index 78fcc60..e2ca23c 100644 --- 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 index ed615cc..2684bed 100644 --- 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 index 5b2564d..90b3ab2 100644 --- 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 index e89282a..fc4b255 100644 --- 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 index 1861aed..8388d30 100644 --- 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 index f8b67fb..8545b34 100644 --- 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 index 279ffce..87b4882 100644 --- 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 index 8d73c6d..441a419 100644 --- 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 index 787cfe5..c2cb0a0 100644 --- 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 new file mode 100644 index 0000000..1b43af4 --- /dev/null +++ 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 }} + + + + |