summaryrefslogtreecommitdiff
path: root/layouts/_partials/items/post.html
diff options
context:
space:
mode:
authoreltrac <hi@eltr.ac>2026-04-07 14:53:17 +0800
committereltrac <hi@eltr.ac>2026-04-07 14:53:17 +0800
commit10431bd8f5ff71690ae4e5444e8d7894fd401ae5 (patch)
tree62b7fd1b6c1f68d2804f380eb522bcebeb2c8d9f /layouts/_partials/items/post.html
parent3e0edacc4a0cafa53ede57ebb6f0378c93f3123b (diff)
chore: move templates out of site repo
Diffstat (limited to 'layouts/_partials/items/post.html')
-rw-r--r--layouts/_partials/items/post.html41
1 files changed, 0 insertions, 41 deletions
diff --git a/layouts/_partials/items/post.html b/layouts/_partials/items/post.html
deleted file mode 100644
index 5527ea6c..00000000
--- a/layouts/_partials/items/post.html
+++ /dev/null
@@ -1,41 +0,0 @@
-{{ $ctx := .ctx }}
-{{ $showSummary := .showSummary }}
-<div class="posts-item w-full my-2"
- style="view-transition-name: post-{{ .ctx.File.UniqueID }}">
- <header class="w-full md:flex md:justify-between">
- <div>
- <p class="font-mono text-secondary">
- <time>{{ .ctx.Date.Format "January 2" }},</time>
- <span>in <a href="/{{ .ctx.Section }}/">{{ .ctx.Section }}</a></span>
- </p>
- <h2 class="xerox"
- {{ if $showSummary }} style="margin-bottom: 0"{{ end }}>
- <a href="{{ .ctx.Permalink }}">
- {{ if eq .ctx.Section "library" }}
- 读《{{ .ctx.Title }}》
- {{ else }}
- {{ .ctx.Title }}
- {{ end }}
- </a>
- {{ if eq .ctx.Section "fictions" }}
- <span class="font-normal text-4 text-secondary">小说</span>
- {{ end }}
- </h2>
- </div>
- {{ with .ctx.Params.categories }}
- <div class="my-4">
- {{ partial "components/category-pill" $ctx }}
- </div>
- {{ end }}
- </header>
- {{ if or $showSummary .ctx.Params.description }}
- <div class="markdown-body text-size-lg leading-relaxed"
- style="view-transition-name: post-content-{{ .ctx.File.UniqueID }}">
- {{ if $showSummary }}
- {{ .ctx.Summary }}
- {{ else if .ctx.Params.description }}
- {{ .ctx.Params.description }}
- {{ end }}
- </div>
- {{ end }}
-</div>