{{ define "main" }} {{ $.Scratch.Set "counter" 0 }}
{{ .Content }}

Documenten voor Content Review

{{ range where .Site.Pages "Params.review" "!=" nil }} {{ if .Params.review.last_review }} {{ $reviewdate := .Params.review.last_review | time.AsTime }} {{ $reviewdate := $reviewdate.AddDate 0 0 .Params.review.period | time.Format "2006-01-02" }} {{ end }} {{ end }}
Titel Laatste wijziging Laatste review Review voor datum Reviewperiode Review nodig? Taal Bestandsnaam
{{ .Title | default .Site.Params.textNoTitle }} {{ if .Params.review.last_review }}{{ else }}Onbekend{{ end }} {{ with .Params.review.period }}{{ . }} dagen{{ end }} {{ if .Params.review.last_review }} {{ if gt (now | time.Format "2006-01-02") $reviewdate }} {{ if .Params.review.disabled }} Uitgeschakeld {{ else }} Ja 🛠️ {{ $.Scratch.Set "counter" (add ($.Scratch.Get "counter") 1) }} {{ end }} {{ else }} Nee {{ end }} {{ else }} Onbekend {{ end }} {{ with .File }}{{ .Lang }}{{ end }} {{ with .File }}{{ .Path }}{{ end }}

Aantal documenten die review nodig hebben: {{ $.Scratch.Get "counter" }}

Geen data beschikbaar voor Content Review

{{ range where .Site.RegularPages "Params.review" "==" nil }} {{ end }}
Titel Laatste wijziging Taal Bestandsnaam
{{ .Title | default .Site.Params.textNoTitle }} {{ with .File }}{{ .Lang }}{{ end }} {{ with .File }}{{ .Path }}{{ end }}
{{ end }}