From 23c4ea229d931ec8a05192124de5de8996d6936d Mon Sep 17 00:00:00 2001 From: Eltrac Date: Thu, 27 Mar 2025 14:20:27 +0800 Subject: feat: meta data in book page Former-commit-id: 61bbbb0bebc543fffd8f2859f5b4980da4a4fe64 --- assets/css/components/_library.scss | 7 ++++++- layouts/library/single.html | 10 +++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/assets/css/components/_library.scss b/assets/css/components/_library.scss index a7b35dae..5179076f 100644 --- a/assets/css/components/_library.scss +++ b/assets/css/components/_library.scss @@ -53,10 +53,15 @@ } } - .rating { + .book-meta { font-size: 0.9rem; color: var(--secondary-text-color); } + + .book-footer { + font-size: 1rem; + color: var(--secondary-text-color); + } } .book-cover { diff --git a/layouts/library/single.html b/layouts/library/single.html index f633c5f4..3a80dbe6 100644 --- a/layouts/library/single.html +++ b/layouts/library/single.html @@ -9,16 +9,20 @@ {{- $rating := .Params.rating -}} {{- $fullStars := math.Floor $rating -}} -
- 评分: +
{{- range seq $fullStars }} - ★ + ⭐ {{- end -}} + / + {{ .Params.author }}
{{ .Content }}
+
{{ partial "components/comment.html" . }} -- cgit v1.2.3