feat: add option geekdocProtected to exclude pages from data file (#97)

This commit is contained in:
Robert Kaussow 2021-04-22 21:25:43 +02:00 committed by GitHub
parent 4e81dbe0e9
commit d51f514b90
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 1 deletions

View file

@ -1,5 +1,5 @@
[
{{ range $index, $page := .Site.Pages }}
{{ range $index, $page := (where .Site.Pages "Params.geekdocprotected" "ne" true) }}
{{ if ne $index 0 }},{{ end }}
{
"id": {{ $index }},