diff options
author | tdro <tdro@noreply.example.com> | 2024-02-12 16:50:01 -0500 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2024-02-12 16:50:01 -0500 |
commit | f5ff3cb4d8da23664c36911e4f16daa53890b434 (patch) | |
tree | 4b3387f2d3541eb488fe81a875bd2fd9ee2872f3 /themes/default/layouts/shortcodes/spoiler.html | |
parent | 9ff0d7f3243eecaff0b354b392fa1e3ef4784098 (diff) | |
download | canory-f5ff3cb4d8da23664c36911e4f16daa53890b434.tar.gz canory-f5ff3cb4d8da23664c36911e4f16daa53890b434.tar.bz2 canory-f5ff3cb4d8da23664c36911e4f16daa53890b434.zip |
themes/default/layouts/shortcodes: Increase spoiler and disclose uniqueness
Diffstat (limited to 'themes/default/layouts/shortcodes/spoiler.html')
-rw-r--r-- | themes/default/layouts/shortcodes/spoiler.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/default/layouts/shortcodes/spoiler.html b/themes/default/layouts/shortcodes/spoiler.html index 5a9462d..9c5e59a 100644 --- a/themes/default/layouts/shortcodes/spoiler.html +++ b/themes/default/layouts/shortcodes/spoiler.html @@ -1,6 +1,6 @@ {{- $text := default "This is a spoiler." (.Get "text" | default (.Get 0)) -}} {{- $title := default "Click to show/hide text." (.Get "title" | default (.Get 1)) -}} -{{- $hash := print (truncate 8 "" (sha256 $text)) .Ordinal -}} +{{- $hash := print (truncate 4 "" (sha256 .Page.RelPermalink)) (truncate 4 "" (sha256 $text)) .Ordinal -}} {{- if gt (len .Inner) 1 -}} {{- $text = .Inner -}} |