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 | 74db705c0369e377d5698c4cc46109411c63d396 (patch) | |
| tree | f1cc7094753642b78669b06f2186ccdd2c02f562 | |
| parent | 534f268da3a2a653a13591a06a1dad7eec1474bb (diff) | |
refactor: update fictions section template
- use .Pages directly
- adjust margin
| -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 -}} |
