nicholaswilde_recipes/cook/breads/recipe.md.gotmpl
nιcнolaѕ wιlde 277ebd919a
docs: move image link to footer
Signed-off-by: nιcнolaѕ wιlde <ncwilde43@gmail.com>
2023-03-19 23:14:33 -07:00

32 lines
628 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:
- bread
---
{{ template "cook.headerSection" . }}
{{ template "custom.image" . }}
{{ template "cook.tableSection" . }}
{{ template "cook.ingredientsSection" . }}
{{ template "cook.cookwareSection" . }}
{{ template "cook.stepsSection" . -}}
{{ template "cook.sourceSection" . }}
{{ template "custom.footer" . }}