diff options
| author | BigCoke233 <hi@guhub.cn> | 2025-12-06 16:29:20 +0800 |
|---|---|---|
| committer | BigCoke233 <hi@guhub.cn> | 2025-12-06 16:29:20 +0800 |
| commit | 0718956d06964e483d23ff8d8b089198922191cd (patch) | |
| tree | 2234ad8bd6c7d605974f6070c8643734e2442a5e | |
| parent | 03e63e7bb6ffceb3712bd822a2b03ff94d2ea783 (diff) | |
refactor: update fictions section template
- use .Pages directly
- adjust margin
Former-commit-id: 74db705c0369e377d5698c4cc46109411c63d396
| -rw-r--r-- | layouts/fictions/section.html | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/layouts/fictions/section.html b/layouts/fictions/section.html index 8857dd7b..e3f97ef9 100644 --- a/layouts/fictions/section.html +++ b/layouts/fictions/section.html @@ -1,10 +1,9 @@ {{ define "main" }} <article> {{ partial "header.html" . }} - <div class="pagefind-exclude my-4"> + <div class="pagefind-exclude my-8"> <div class="flex flex-wrap justify-around gap-8"> - {{- $fictions := .Site.GetPage "section" "fictions" }} - {{- range $fictions.Pages }} + {{- range .Pages }} {{ $rotationDeg := add (math.Floor (mul (math.Rand) 7)) -4 }} {{- $deg := int $rotationDeg -}} |
