diff options
| author | Eltrac <hi@guhub.cn> | 2025-04-21 23:13:06 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-04-21 23:13:06 +0800 |
| commit | aa7d1febfbbc994e50fdb18285f78fa3c34430e6 (patch) | |
| tree | 6e7799e27df56b8e595ea262686dc33b71557272 /layouts/fictions/section.html | |
| parent | 340635c8b6274c828b4a2315b8b3ccac7978a15a (diff) | |
feat: move novels here and add relevant page templates
Diffstat (limited to 'layouts/fictions/section.html')
| -rw-r--r-- | layouts/fictions/section.html | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/layouts/fictions/section.html b/layouts/fictions/section.html new file mode 100644 index 00000000..8747206a --- /dev/null +++ b/layouts/fictions/section.html @@ -0,0 +1,27 @@ +{{ define "main" }} + <article class="fiction-list-page"> + {{ partial "header.html" . }} + <div id="fiction-section"> + <div class="fiction-welcome"> + <div class="fiction-welcome-image invert-if-dark"> + <img src="/img/potted-skeleton.svg" /> + </div> + <div class="fiction-welcome-content markdown-body">{{ with .Content }}{{ . }}{{ end }}</div> + </div> + <div class="fiction-list"> + {{- $fictions := .Site.GetPage "section" "fictions" }} <!-- 获取 "cards" 部分的内容 --> + {{- range $fictions.Pages }} + <div class="fiction-item" style="view-transition-name: post-{{ .File.UniqueID }}"> + <h2 class="fiction-item-title"> + <a href="{{ .Permalink }}">{{ .Title }}</a> + </h2> + <p class="fiction-item-meta"> + <time>{{ .Date.Format "2006-1-2" }}</time> + </p> + </div> + {{- end }} + </div> + </div> + </article> + {{ partial "footer.html" . }} +{{ end }} |
