diff options
| author | Eltrac <hi@guhub.cn> | 2025-09-24 23:11:47 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-09-24 23:11:47 +0800 |
| commit | c5fbfb92bbdd5200b0eaa1d574fd9655c2f73b93 (patch) | |
| tree | 3f9578675d088071fce7363b8ae24e24b2e7877b /layouts | |
| parent | f78acd566eac9ae0fab466ad952f01f7972c7d84 (diff) | |
remove: fiction section page description
Former-commit-id: 31dd4dafa8b4e13775162f2f82f670ec75d9aabc
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/fictions/section.html | 11 |
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> |
