From a190487ef793aeeb0937322cf98383b7505b5ceb Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Mon, 18 Apr 2022 11:22:33 +0200 Subject: Add a cookbook section --- layouts/recipes/single.html | 78 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 layouts/recipes/single.html (limited to 'layouts/recipes/single.html') diff --git a/layouts/recipes/single.html b/layouts/recipes/single.html new file mode 100644 index 0000000..36981ce --- /dev/null +++ b/layouts/recipes/single.html @@ -0,0 +1,78 @@ +{{ define "head" }} + +{{ end }} + +{{ define "main" }} +
+
+

{{ .Title }}

+ {{- range .Params.tags }} + #{{ . }} + {{- end }} +
+
+ {{ .Content }} + + + + + + + + + + + + + + + +
Preparation time{{ .Params.preptime }} minutes
Cooking time{{ .Params.cooktime }} minutes
Serves{{ .Params.serves }}
+

Ingredients

+ + + + + + + + + + + {{- range .Params.ingredients }} + + + + {{- if .unit }} + + + {{- else }} + + {{- end }} + + {{- end }} + +
 IngredientAmountUnit
+ + {{ .label }}{{ .amount }}{{ .unit }}{{ .amount }}
+

Instructions

+ {{- range .Params.stages }} +

{{ .label }}

+
    + {{- range .steps }} +
  1. + {{ . | $.Page.RenderString }} +
  2. + {{- end }} +
+ {{- end }} +
+ +
+{{ end }} -- cgit v1.1