summaryrefslogtreecommitdiff
path: root/layouts/fictions/section.html
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-09-24 23:11:47 +0800
committerEltrac <hi@guhub.cn>2025-09-24 23:11:47 +0800
commit31dd4dafa8b4e13775162f2f82f670ec75d9aabc (patch)
tree09ea01ed654e93c5c006d76372ace984615b15af /layouts/fictions/section.html
parente370f40933bc4b4c159af8e5d9eb42b710c733ea (diff)
remove: fiction section page description
Diffstat (limited to 'layouts/fictions/section.html')
-rw-r--r--layouts/fictions/section.html11
1 files changed, 5 insertions, 6 deletions
diff --git a/layouts/fictions/section.html b/layouts/fictions/section.html
index 65a4e394..8857dd7b 100644
--- a/layouts/fictions/section.html
+++ b/layouts/fictions/section.html
@@ -1,10 +1,7 @@
{{ define "main" }}
<article>
{{ partial "header.html" . }}
- <div class="pagefind-exclude">
- <div class="my-8 markdown-body text-size-lg md:text-size-xl">
- {{ with .Content }}{{ . }}{{ end }}
- </div>
+ <div class="pagefind-exclude my-4">
<div class="flex flex-wrap justify-around gap-8">
{{- $fictions := .Site.GetPage "section" "fictions" }}
{{- range $fictions.Pages }}
@@ -20,9 +17,11 @@
{{ $opacity := index $steps (int (math.Floor (mul (math.Rand) 5))) }}
{{ $opacityClass := printf "opacity-%d" $opacity }}
- <div class="xerox text-center text-2xl font-extrabold {{ $rotateClass }} {{ $opacityClass }}"
+ <div class="xerox text-center text-2xl font-extrabold
+ {{ $rotateClass }} {{ $opacityClass }}
+ transition hover:opacity-100 hover:scale-110 hover:rotate-0"
style="view-transition-name: post-{{ .File.UniqueID }}">
- <a href="{{ .Permalink }}">《{{ .Title }}》</a>
+ <a class="hover:no-underline" href="{{ .Permalink }}">《{{ .Title }}》</a>
</div>
{{- end }}
</div>