From e469338b416a4c129fd42fd448e902ddd1f66921 Mon Sep 17 00:00:00 2001 From: tdro Date: Tue, 5 Dec 2023 14:05:22 -0500 Subject: themes/default/layouts/shortcodes/abbr: Increase uniqueness --- themes/default/layouts/shortcodes/abbr.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'themes/default/layouts') 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 -}} {{- /* This comment removes trailing newlines and white spaces. */ -}} -- cgit v1.2.3