diff --git a/themes/nluug/layouts/custom/content-review.html b/themes/nluug/layouts/custom/content-review.html new file mode 100644 index 0000000..d884b58 --- /dev/null +++ b/themes/nluug/layouts/custom/content-review.html @@ -0,0 +1,83 @@ +{{ define "main" }} +{{ $.Scratch.Set "counter" 0 }} + +
Titel | +Laatste wijziging | +Laatste review | +Review voor datum | +Reviewperiode | +Review nodig? | +Taal | +Bestandsnaam | +
---|---|---|---|---|---|---|---|
{{ .Title | default .Site.Params.textNoTitle }} | +{{ .Lastmod | dateFormat "2006-01-02 15:04:05" }} | +{{ if .Params.review.last_review }}{{ .Params.review.last_review }}{{ else }}Onbekend{{ end }} | +{{ with $reviewdate }}{{ . }}{{ 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" }}
+ +Titel | +Laatste wijziging | +Taal | +Bestandsnaam | +
---|---|---|---|
{{ .Title | default .Site.Params.textNoTitle }} | +{{ .Lastmod | dateFormat "2006-01-02 15:04:05" }} | +{{ with .File }}{{ .Lang }}{{ end }} | +{{ with .File }}{{ .Path }}{{ end }} | +