summaryrefslogtreecommitdiff
path: root/layouts/library/section.html
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-03-27 13:10:06 +0800
committerEltrac <hi@guhub.cn>2025-03-27 13:10:06 +0800
commit08f5f8bb193cafd2a54320c44f082b4a81f52ac5 (patch)
treec4cdc835a5eb0d1045715437794b51f0800d2db4 /layouts/library/section.html
parent37b996572636df60dbd99265d7956625fc03b5cc (diff)
feat: add library section
Former-commit-id: 83f509dd79c381a8bb1254a5de14568c61bb92e2
Diffstat (limited to 'layouts/library/section.html')
-rw-r--r--layouts/library/section.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/layouts/library/section.html b/layouts/library/section.html
new file mode 100644
index 00000000..834717e7
--- /dev/null
+++ b/layouts/library/section.html
@@ -0,0 +1,14 @@
+{{ define "main" }}
+ {{ partial "header.html" . }}
+ <article id="library">
+ <div id="library-content">
+ {{- range .Pages }}
+ <div class="book">
+ <a href="{{ .Permalink }}" class="book-cover" style="view-transition-name: book-{{ .Title }}">
+ <img src="{{ .Params.cover }}" />
+ </a>
+ </div>
+ {{- end }}
+ </div>
+ </article>
+{{ end }}