summaryrefslogtreecommitdiff
path: root/layouts/_shortcodes/book.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_shortcodes/book.html')
-rw-r--r--layouts/_shortcodes/book.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/layouts/_shortcodes/book.html b/layouts/_shortcodes/book.html
new file mode 100644
index 00000000..6cb0c8e8
--- /dev/null
+++ b/layouts/_shortcodes/book.html
@@ -0,0 +1,17 @@
+<div class="book-showcase">
+ <div class="book-cover">
+ <a href="{{ .Get "cover" }}" data-fancybox>
+ <img class="lazy" src="{{ .Get "cover" }}" loading="lazy" />
+ </a>
+ </div>
+ <div class="book-description">
+ <div class="book-description-header">
+ <h3 class="book-title" id="book-{{ .Get "title" }}">{{ .Get "title" }}</h3>
+ <p>分数:{{ .Get "rating" }}</p>
+ </div>
+ <div>
+
+ {{ .Inner | markdownify }}
+ </div>
+ </div>
+</div>