summaryrefslogtreecommitdiff
path: root/layouts/library/single.html
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-07-14 19:54:29 +0800
committerEltrac <hi@guhub.cn>2025-07-14 19:54:29 +0800
commit614a754c724c8fe2baaa25d2eb03ae5bf041ba72 (patch)
treefd9d7c8d655a656aea6b80bb9f79f9475c06ac90 /layouts/library/single.html
parent2698f41d495ca24dc8697d8c64fe066d332d9a4e (diff)
refactor: rename 'single' to 'page'
Diffstat (limited to 'layouts/library/single.html')
-rw-r--r--layouts/library/single.html40
1 files changed, 0 insertions, 40 deletions
diff --git a/layouts/library/single.html b/layouts/library/single.html
deleted file mode 100644
index d5d2ea59..00000000
--- a/layouts/library/single.html
+++ /dev/null
@@ -1,40 +0,0 @@
-{{ define "main" }}
- <article id="book-page">
- <div class="book-page-header">
- <div class="book-cover"
- style="view-transition-name: book-{{ .File.UniqueID }}">
- <img
- class="lazy" loading="lazy"
- data-pagefind-meta="image[src]"
- src="{{ .Params.cover }}"
- />
- </div>
- <h1 class="book-title" data-pagefind-meta="title">{{ .Title }}</h1>
- {{- $rating := .Params.rating -}}
- {{- $fullStars := math.Floor $rating -}}
- <p class="book-author">
- {{ .Params.author }}
- </p>
- <p class="book-rating">
- {{- range seq $fullStars }}
- <span class="star">⭐</span>
- {{- end -}}
- </p>
- <!-- 导航作用的骷髅头图标 -->
- <div>
- {{ partial "components/logo" (dict "link" "library") }}
- </div>
- </div>
- <div class="markdown-body book-body">
- <div class="book-content">
- {{ .Content }}
- </div>
- <!-- Endnotes -->
- {{ partial "posts/endnotes" . }}
- <div class="book-footer">
- <p>于 {{ partial "components/date" . }} 读完</p>
- </div>
- </div>
- {{ partial "posts/comment.html" . }}
- </article>
-{{ end }}