mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
5322a15ceb
Add `{{/* ... */}}` header comments to 25 partials that had no documentation,
enabling `pnpm gen:docs` to generate their reference docs. Also fix
base/head/index.html leading blank line that prevented parser matching.
Groups covered: base/, feed/, function/, home/, init/, plugin/, single/, store/, (root).
17 lines
607 B
HTML
17 lines
607 B
HTML
{{- /*
|
|
Encrypted pages detection partial.
|
|
|
|
Scans all regular pages for password-protected content and emits a build-time
|
|
warning listing encrypted pages with their titles and permalinks.
|
|
*/ -}}
|
|
|
|
{{- $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 -}}
|