diff options
Diffstat (limited to 'themes/default/layouts')
-rw-r--r-- | themes/default/layouts/shortcodes/abbr.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/default/layouts/shortcodes/abbr.html b/themes/default/layouts/shortcodes/abbr.html index 2a87233..61a2e32 100644 --- a/themes/default/layouts/shortcodes/abbr.html +++ b/themes/default/layouts/shortcodes/abbr.html @@ -1,6 +1,6 @@ {{- $abbr := default "TL;DR:" (.Get "abbr" | default (.Get 0)) -}} {{- $title := default "Too long, didn't read" (.Get "title" | default (.Get 1)) -}} -{{- $hash := print (truncate 8 "" (sha256 $abbr)) .Ordinal -}} +{{- $hash := print (truncate 4 "" (sha256 .Page.RelPermalink)) (truncate 4 "" (sha256 $abbr)) .Ordinal -}} <input hidden="" type="checkbox" id="abbr-{{ $hash }}" /> {{- /* This comment removes trailing newlines and white spaces. */ -}} |