{{ $_hugo_config := `{ "version": 1 }` }} {{- $randomID := delimit (shuffle (split (md5 now.Unix) "" )) "" -}} {{- if .Get 0 -}} {{- $.Page.Store.Set "passphrase" (.Get 0) -}} {{- else if .Site.Params.HugoEncrypt.Password -}} {{- $.Page.Store.Set "passphrase" .Site.Params.HugoEncrypt.Password -}} {{- else -}} {{- warnf "!!! [Hugo Encrypt] Please set a password" -}} {{- end -}} {{- if ($.Page.Store.Get "passphrase") -}}
{{- i18n "encrypt.protectedByPassword" -}}
{{- end -}}