summaryrefslogtreecommitdiff
path: root/layouts/_partials
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
commit1fafbca42b787fa00767f7170666c24dd768a6da (patch)
tree75602fbbc9ab5500ebe271c81969b727c1066d2e /layouts/_partials
parent2e139bd00a21f66d93d473e4b1aa007af6e24694 (diff)
feat: unify section titles
Former-commit-id: d5a29ffa1c93b3fded194400e62f118fb06c5df7
Diffstat (limited to 'layouts/_partials')
-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>