From 877a7217fc25820abf7ef5e57bee2ed87a118c04 Mon Sep 17 00:00:00 2001 From: mms Date: Fri, 22 Nov 2024 20:25:15 +0100 Subject: feat: keyless --- layouts/shortcodes/links.html | 45 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 layouts/shortcodes/links.html (limited to 'layouts/shortcodes/links.html') diff --git a/layouts/shortcodes/links.html b/layouts/shortcodes/links.html new file mode 100644 index 0000000..5acde5d --- /dev/null +++ b/layouts/shortcodes/links.html @@ -0,0 +1,45 @@ +{{- $caption := .Inner }} +{{ $lastLetter := "Dupa" }} +{{ with resources.Get "more/links.yml"}} +{{ with . | transform.Unmarshal }} + + + {{ range (sort .links "Title") }} + {{ $letter := slicestr .Title 0 1 }} + {{ if not (eq $letter $lastLetter) }} + + + + {{ end }} +{{ $lastLetter = $letter }} + + + + + + {{ end }} + +{{ end }} +{{ end }} -- cgit v1.2.3