summaryrefslogtreecommitdiff
path: root/layouts/_partials/components/section-title.html
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-11-06 10:43:16 +0800
committerEltrac <hi@guhub.cn>2025-11-06 10:43:16 +0800
commitd5a29ffa1c93b3fded194400e62f118fb06c5df7 (patch)
tree3eb0780ea8e6d72930cc0283f0e32e12e8e00170 /layouts/_partials/components/section-title.html
parent80eb9daba825a915cc9be40e8930ad815c6db9e4 (diff)
feat: unify section titles
Diffstat (limited to 'layouts/_partials/components/section-title.html')
-rw-r--r--layouts/_partials/components/section-title.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/layouts/_partials/components/section-title.html b/layouts/_partials/components/section-title.html
new file mode 100644
index 00000000..698f71e8
--- /dev/null
+++ b/layouts/_partials/components/section-title.html
@@ -0,0 +1,10 @@
+{{ $left := .Left }}
+{{ $right := .Right }}
+<h2 class="border-b-2 border-b-solid border-[var(--border-color)]
+ py-2 text-6 flex justify-between items-center
+ sticky top-0 bg-[var(--background-color)] z-1">
+ <span>{{ $left }}</span>
+ <span class="font-mono text-secondary text-3">
+ {{ $right }}
+ </span>
+</h2>