Files
FixIt/layouts/_partials/init/detection-encryption.html
T
2026-07-13 15:10:42 +08:00

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