From bce6be90883b107285faa56acf0081b54daa3aa9 Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Sat, 8 Aug 2026 21:30:23 +0800 Subject: Initialize personal website --- layouts/partials/toc.html | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 layouts/partials/toc.html (limited to 'layouts/partials/toc.html') diff --git a/layouts/partials/toc.html b/layouts/partials/toc.html new file mode 100644 index 0000000..4db9a6f --- /dev/null +++ b/layouts/partials/toc.html @@ -0,0 +1,7 @@ +{{- $headings := findRE `]` .Content -}} +{{- if gt (len $headings) 4 }} +
+

CONTENTS

+ {{ .TableOfContents }} +
+{{- end -}} -- cgit v1.2.3