{{ .Title }}
{{.Content}}
{{ with .Params.yield }}
{{ end }}
{{ with .Params.prepTime }}
{{ end }}
{{ with .Params.cookTime }}
{{ end }}
{{ i18n "yields" . }}
{{ i18n "prepTime" . }}
{{ i18n "cookTime" . }}
{{ with .Params.Components}}
{{ i18n "components" }}
-
{{ range . }}
- {{ with ( . | markdownify) }}{{ partial "recipe_item.html" . }}{{ end }} {{ end }}
{{ i18n "ingredients" }}
-
{{ range . }}
- {{ with ( . | markdownify) }}{{ partial "recipe_item.html" . }}{{ end }} {{ end }}
{{ i18n "directions" }}
-
{{ range .Params.Directions }}
- {{ with ( . | markdownify) }}{{ partial "recipe_item.html" . }}{{ end }} {{ end }}
↓ {{ i18n "this-is-a" }} {{ i18n "component-based-recipe" }} ({{ i18n "fancy-talk" }}). ↓
{{ range . }}
{{ $compTitle := . }}
{{ end }}
{{ range where $.Site.Pages "Title" $compTitle }}
{{ end }}
{{ if .Params.Imagecredit }}
{{ end }}
{{ end }}
{{ .Title }}
{{ range (.Resources.ByType "image") }}{{ 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 }}
{{ with .Params.Category }}{{ partial "taxonomy/category" . }}{{ end }} {{ with .Params.Cuisine }}{{ partial "taxonomy/cuisine" . }}{{ end }} {{ with .Params.Tags }}{{ partial "taxonomy/tags" . }}{{ end }}
{{ if (or .Params.SourceName .Params.AuthorName) }}
{{ i18n "inspired" }}
{{ end }}
{{ with .Params.SourceName }}
{{$name := .}}
{{ i18n "by" }}
{{with $.Params.SourceURL }}
{{$name}}
{{else}}
{{$name}}
{{end}}
{{ end }}
{{with .Params.AuthorName}}
{{$name := .}}
{{ i18n "from" }}
{{with $.Params.AuthorURL }}
{{$name}}
{{else}}
{{$name}}
{{end}}
{{end}}