mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 23:38:56 +00:00
3e8bdfd8f9
* ⚡ Perf: adjust global/site scope state management * ⚡ Perf: adjust page scope state management
12 lines
504 B
HTML
12 lines
504 B
HTML
{{- $password := cond .IsNamedParams (.Get "password") (.Get 0) | default "" -}}
|
|
{{- $message := cond .IsNamedParams (.Get "message") (.Get 1) | default (T "single.encryptedMessage") -}}
|
|
|
|
{{- if $password -}}
|
|
{{- /* Content */ -}}
|
|
{{- $content := .Inner | .Page.RenderString -}}
|
|
{{- /* Content Encryption */ -}}
|
|
{{- dict "Content" $content "Password" $password "Message" $message "IsPartial" true "Page" .Page | partial "plugin/fixit-encryptor.html" -}}
|
|
{{- else -}}
|
|
{{- .Inner -}}
|
|
{{- end -}}
|