diff --git a/layouts/partials/function/content-encryption.html b/layouts/partials/function/content-encryption.html index 2e2a8f96..cbec6875 100644 --- a/layouts/partials/function/content-encryption.html +++ b/layouts/partials/function/content-encryption.html @@ -1,5 +1,6 @@ {{- $content := .Content -}} +{{- /* If Hugo Support AES, refactor with AES. */ -}} {{- if .Password -}} {{- $saltLen := strings.RuneCount (trim .Password " ") -}} {{- $saltLen = cond (eq (mod $saltLen 2) 0) (add $saltLen 1) $saltLen -}} diff --git a/layouts/partials/init/index.html b/layouts/partials/init/index.html index 85ec01be..09625c25 100644 --- a/layouts/partials/init/index.html +++ b/layouts/partials/init/index.html @@ -1,4 +1,4 @@ -{{- .Scratch.Set "version" "v0.3.10-b7ed9cac" -}} +{{- .Scratch.Set "version" "v0.3.10-ede47a2b" -}} {{- .Scratch.Set "this" dict -}} {{- partial "init/detection-env.html" . -}} diff --git a/layouts/partials/plugin/fixit-encryptor.html b/layouts/partials/plugin/fixit-encryptor.html index 493957e1..5770d33a 100644 --- a/layouts/partials/plugin/fixit-encryptor.html +++ b/layouts/partials/plugin/fixit-encryptor.html @@ -1,5 +1,3 @@ -{{- /* If Hugo Support AES, refactor with AES. */ -}} - {{- if .Password -}} {{- /* Content Encryption */ -}} {{- $content := dict "Content" .Content "Password" .Password | partial "function/content-encryption.html" -}} @@ -30,4 +28,3 @@ {{ $content }} {{- end -}} -