nicholaswilde_recipes/cook/tarts/recipe.md.gotmpl
nιcнolaѕ wιlde a3b811da0e
fix: trailing double new line
Signed-off-by: nιcнolaѕ wιlde <ncwilde43@gmail.com>
2023-03-21 12:58:42 -07:00

34 lines
632 B
Go Template

{{- define "custom.image" -}}
{{ if .Info.ImageFileName }}
![{{ .Info.RecipeName }}][1]{ loading=lazy }
{{ end }}
{{- end -}}
{{- define "custom.footer" -}}
{{ if .Info.ImageFileName }}
[1]: <../assets/images/{{ lower .Info.ImageFileName | replace " " "-" }}>
{{- end -}}
{{- end -}}
---
comments: true
tags:
- tart
---
{{ template "cook.headerSection" . }}
{{ template "custom.image" . }}
{{ template "cook.tableSection" . }}
{{ template "cook.ingredientsSection" . }}
{{ template "cook.cookwareSection" . }}
{{ template "cook.stepsSection" . -}}
{{ template "cook.sourceSection" . -}}
{{ template "custom.footer" . }}