{{ define "main" }} {{ $.Scratch.Set "counter" 0 }} {{ with .Params.project.title }}
Project: {{ . }}
{{ end }} {{ with .description }}{{ . }}
{{ end }}{{ . }}
{{ end }} {{ with .goal }}Doel: {{ . }}
{{ end }} {{ with .link }}Relevante link: {{ .name }}
{{ end }} {{ if .finished }}✔️ Hoofdtaak is afgerond
{{ end }} {{ $.Scratch.Set "counter2" 0 }} {{ with .subtasks }} {{ range . }} {{ $.Scratch.Set "counter2" (add ($.Scratch.Get "counter2") 1) }}{{ . }}
{{ end }} {{ if .finished }}✔️ Subtaak is afgerond
{{ end }} {{ with .link }}Relevante link: {{ .name }}
{{ end }} {{ end }} {{ end }} {{ end }} {{ end }} {{ else }}Waarschuwing: dit project is niet goed geconfigureerd in de front matter.
{{ end }} {{ end }}