diff --git a/themes/nluug/layouts/projecten/section.html b/themes/nluug/layouts/projecten/section.html index 9f92573..a566c21 100644 --- a/themes/nluug/layouts/projecten/section.html +++ b/themes/nluug/layouts/projecten/section.html @@ -1,7 +1,8 @@ {{ define "main" }} -

Open projecten

- {{ range $.Site.Data.projecten.open }} -

{{ .name }}

-

{{ .description }}

+

Projecten

+{{ range $.Pages }} +

{{ .Params.project.title }}

+

{{ .Params.project.description }}

+ Meer informatie {{ end }} {{ end }} diff --git a/themes/nluug/layouts/projecten/single.html b/themes/nluug/layouts/projecten/single.html new file mode 100644 index 0000000..7056304 --- /dev/null +++ b/themes/nluug/layouts/projecten/single.html @@ -0,0 +1,32 @@ +{{ define "main" }} +{{ $.Scratch.Set "counter" 0 }} + {{ with .Params.project.title }}

{{ . }}

{{ end }} +
{{ .Content }}
+ {{ with .Params.project }} + {{ with .title }}

Project: {{ . }}

{{ end }} + {{ with .description }}

{{ . }}

{{ end }} +

Taken

+ {{ with .tasks }} + {{ range . }} + {{ $.Scratch.Set "counter" (add ($.Scratch.Get "counter") 1) }} + {{ with .name }}

{{$.Scratch.Get "counter"}}. {{ . }}

{{ end }} + {{ with .description }}

{{ . }}

{{ 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) }} +

{{ $.Scratch.Get "counter" }}.{{ $.Scratch.Get "counter2" }}. {{ .name }}

+ {{ with .description }}

{{ . }}

{{ 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 }}