{{define "recipe"}} {{ template "head" }}
{{ template "nav" }}

{{.Title}}

{{ if ne .Portions "" }}

Portions: {{.Portions}}

{{end}}{{ if ne .Url "" }}

Original recipe: link

{{end}}{{ if ne .Notes "" }}

{{.Notes}}

{{end}}{{range .Steps}}

{{.Text}}

{{range $i, $el := .Ingredients}}{{if $i}}, {{end}}{{if ne $el.Amount ""}}{{$el.Amount}} {{end}}{{if ne $el.Unit ""}}{{$el.Unit}} {{end}}{{$el.Type}}{{end}}

{{end}}
{{ template "footer" }} {{end}}