mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
10 lines
406 B
HTML
10 lines
406 B
HTML
{{- $encryptedPages := slice -}}
|
|
{{- range .Site.RegularPages -}}
|
|
{{- if or .Params.password (.Store.Get "hasEncryptor") -}}
|
|
{{- $encryptedPages = $encryptedPages | append (printf " • %s: %s" .Title .Permalink) -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
{{- with $encryptedPages -}}
|
|
{{- warnf "[FixIt] %s\n%s\n%s" (T "single.encryptionWarning") (delimit . "\n") (T "single.encryptionCommand") -}}
|
|
{{- end -}}
|