From a0320fa44b33d0080560b627bff6eb2b9ab1e30b Mon Sep 17 00:00:00 2001 From: mms Date: Thu, 5 Dec 2024 00:02:53 +0100 Subject: feat: add links with script --- layouts/shortcodes/links.html | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'layouts') diff --git a/layouts/shortcodes/links.html b/layouts/shortcodes/links.html index 2707af2..58143cf 100644 --- a/layouts/shortcodes/links.html +++ b/layouts/shortcodes/links.html @@ -4,8 +4,8 @@ {{ with . | transform.Unmarshal }} - {{ range (sort .links "Title" "asc") }} - {{ $letter := slicestr .Title 0 1 }} + {{ range (sort .links "title" "asc") }} + {{ $letter := slicestr .title 0 1 }} {{ $letter = strings.ToUpper $letter }} {{ if findRE `\d` $letter }} {{ $letter = "0-9" }} @@ -22,14 +22,14 @@ {{ $lastLetter = $letter }} -- cgit v1.2.3