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 | |
| parent | f78acd566eac9ae0fab466ad952f01f7972c7d84 (diff) | |
remove: fiction section page description
Former-commit-id: 31dd4dafa8b4e13775162f2f82f670ec75d9aabc
| -rw-r--r-- | content/fictions/_index.md | 6 | ||||
| -rw-r--r-- | layouts/fictions/section.html | 11 |
2 files changed, 5 insertions, 12 deletions
diff --git a/content/fictions/_index.md b/content/fictions/_index.md index 0ed004b0..ee6f246c 100644 --- a/content/fictions/_index.md +++ b/content/fictions/_index.md @@ -1,9 +1,3 @@ --- title: 虚构写作 --- - -你好,这里是「极客死亡计划」这个博客上不太严肃的一部分内容,这里存放着 Eltrac 所写的虚构写作作品,也就是小说一类的东西。[^1] - -小说按照发布时间排序,暂时还没有分类和故事系列之类的。 - -[^1]: 以及黑历史,成吨的黑历史,~~别往下读了求求你~~ 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> |
