+ Published: {{ .PublishDate.Format "January 2, 2006" }} • Last Updated: {{ .Lastmod.Format "January 2, 2006" }}
-
{{ i18n "prepTime" . }}
+
- {{ end }}
- {{ with .Params.cookTime }}
-
-
{{ i18n "cookTime" . }}
+
+ {{ with .Params.Tags }}{{ partial "taxonomy/tags" . }}{{ end }}
+
+ {{ if (or (or .Params.yield .Params.prepTime) .Params.cookTime) }}
+
+ {{ if .Params.yield }}Yields: {{ .Params.yield }}{{ end }}
+ {{ if (and .Params.prepTime .Params.yield) }} • {{ end }}
+ {{ if .Params.prepTime }}Prep Time: {{ .Params.prepTime }}{{ end }}
+ {{ if (and .Params.cookTime (or .Params.yield .Params.prepTime)) }} • {{ end }}
+ {{ if .Params.cookTime }}Cook Time: {{ .Params.cookTime }}{{ end }}
{{ end }}
@@ -52,19 +40,6 @@
-
- {{ with .Params.Components}}
-
{{ i18n "components" }}
-
-
- {{ range . }}
- -
- {{ with ( . | markdownify) }}{{ partial "recipe_item.html" . }}{{ end }}
-
- {{ end }}
-
- {{ end }}
-
{{ with .Params.Ingredients }}
{{ i18n "ingredients" }}
@@ -78,103 +53,55 @@
{{ end }}
+ {{ if .Params.directions }}
{{ i18n "directions" }}
{{ range .Params.Directions }}
-
- {{ with ( . | markdownify) }}{{ partial "recipe_item.html" . }}{{ end }}
+ {{ with ( . | markdownify) }}{{ partial "recipe_item.html" . }}{{ end }}
+
{{ end }}
+ {{ end }}
-
- {{ with .Params.Components }}
-
- ↓ {{ i18n "this-is-a" }} {{ i18n "component-based-recipe" }} ({{ i18n "fancy-talk" }}). ↓
-
-
-
- {{ range . }}
- {{ $compTitle := . }}
-
- {{ range where $.Site.Pages "Title" $compTitle }}
-
- {{ range (.Resources.ByType "image") }}
-
-
-
- {{ end }}
- {{ if .Params.Imagecredit }}
-
-
-
- {{ end }}
-
-
{{ i18n "ingredients" }}
-
- {{ range .Params.Ingredients }}
- -
- {{ with ( . | markdownify) }}{{ partial "recipe_item.html" . }}{{ end }}
-
- {{ end }}
-
-
-
{{ i18n "steps" }}
-
- {{ range .Params.Directions }}
- -
- {{ with ( . | markdownify) }}{{ partial "recipe_item.html" . }}{{ end }}
-
- {{ end }}
-
-
- {{ end }}
-
- {{ end }}
-
-
- {{ end }}
-
-
-
{{ if .Params.inspiration }}
-
Inspiration & Resources
- {{ range .Params.inspiration }}
-
- {{ if .url }}
- - {{ .title }}
- {{ else }}
- - {{ .title }}
- {{ end }}
-
- {{ end }}
- {{ end }}
+
Inspiration & Resources
+ {{ range .Params.inspiration }}
+
+ {{ if .url }}
+ - {{ .title }}
+ {{ else }}
+ - {{ .title }}
+ {{ end }}
+
+ {{ end }}
+ {{ end }}
-
- {{ if .Params.image }}
+
+ {{ if .Params.image }}
-
- {{ end }}
+ {{ end }}