From e969e670d1e32b8776ccba4e93df02198e0e7c0a Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Mon, 19 Dec 2022 13:26:28 -0500 Subject: [PATCH] add table of contents to gallery --- themes/red/layouts/_default/gallery.html | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/themes/red/layouts/_default/gallery.html b/themes/red/layouts/_default/gallery.html index a6454a7..afbb33a 100644 --- a/themes/red/layouts/_default/gallery.html +++ b/themes/red/layouts/_default/gallery.html @@ -7,11 +7,25 @@ {{ $pixiv_icon := resources.Get "pixiv.webp" }} {{ $newgrounds_icon := resources.Get "newgrounds.webp" }} +
+ Table of Contents + +
+ + {{ range $art.categories }} + {{ $without_space := replaceRE "(\\s)" "" .name }} +

{{ .name }}

{{ .description }}

{{ range sort .years "year" "desc" }} -

{{ .year }}

+

{{ .year }}