{{ $_hugo_config := `{ "version": 1 }` }} {{ if .Get "pass" }} {{- $passphrase := $.Scratch.Set "passphrase" (.Get "pass") -}} {{ else if .Site.Params.HugoEncrypt.Password }} {{- $passphrase := $.Scratch.Set "passphrase" .Site.Params.HugoEncrypt.Password -}} {{ else }} {{- $passphrase -}} {{ end }} {{ if .Get "placeholder" }} {{- $placeholder := $.Scratch.Set "placeholder" (.Get "placeholder") -}} {{ else }} {{- $placeholder := $.Scratch.Set "placeholder" "Enter the password" -}} {{ end }}
{{ .Inner }} {{ if $.Page.Scratch.Get "decryptScript" }} {{ else }} {{- $decryptScript := $.Page.Scratch.Set "decryptScript" 1 -}} {{ end }}