{{ define "main" }} {{ $.Scratch.Set "counter" 0 }} {{ with .Params.project.title }}
Project: {{ . }}
{{ end }} {{ with .description }}{{ . }}
{{ end }}{{ . }}{{ end }} {{ with .goal }}
Doel: {{ . }}
{{ end }} {{ with .comment }}{{ . }}
{{ end }} {{ if .finished }}✔️ Afgerond{{ with .link }}, zie {{ .name }}{{ end }}
{{ else }}🛠️ Nog af te ronden
{{ end }} {{ $.Scratch.Set "counter2" 0 }} {{ with .subtasks }} {{ range . }} {{ $.Scratch.Set "counter2" (add ($.Scratch.Get "counter2") 1) }}{{ . }}{{ end }} {{ with .comment }}
{{ . }}
{{ end }} {{ if .finished }}✔️ Subtaak afgerond{{ with .link }}, zie {{ .name }}{{ end }}
{{ else }}🛠️ Subtaak wordt nog aan gewerkt
{{ end }} {{ end }} {{ end }}Waarschuwing: dit project is niet goed geconfigureerd in de front matter.
{{ end }} {{ end }}