summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreltrac <hi@eltr.ac>2026-05-13 14:45:41 +0800
committereltrac <hi@eltr.ac>2026-05-13 14:45:41 +0800
commitd221c0f109bda63f72e0abe64fa7745a21c23744 (patch)
treeb1d540612e4cfe472c943129b4a31a8db43d12b4
parent415e3bb09ef99a2458fe6d909fa1e21edabe684f (diff)
refactor(partials): replace post-small partial with view_postline
-rw-r--r--layouts/_partials/term/term-fictions.html2
-rw-r--r--layouts/_partials/term/term-posts.html2
-rw-r--r--layouts/_partials/term/term-weeklies.html2
-rw-r--r--layouts/article/section.html2
-rw-r--r--layouts/uncategorized.html2
-rw-r--r--layouts/view_postline.html (renamed from layouts/_partials/items/post-small.html)0
6 files changed, 5 insertions, 5 deletions
diff --git a/layouts/_partials/term/term-fictions.html b/layouts/_partials/term/term-fictions.html
index 3e3fd4a..c0e5c6b 100644
--- a/layouts/_partials/term/term-fictions.html
+++ b/layouts/_partials/term/term-fictions.html
@@ -4,7 +4,7 @@
<ul id="term-fictions"
class="animate-duration-100 ps-0 flex flex-col gap-2 list-none leading-relaxed">
{{ range $fictions }}
- {{ partial "items/post-small" . }}
+ {{ .Render "view_postline" }}
{{ end }}
</ul>
{{ end }}
diff --git a/layouts/_partials/term/term-posts.html b/layouts/_partials/term/term-posts.html
index e9f8136..0ecd8f2 100644
--- a/layouts/_partials/term/term-posts.html
+++ b/layouts/_partials/term/term-posts.html
@@ -1,6 +1,6 @@
<ul id="term-posts"
class="animate-duration-100 ps-0 flex flex-col gap-2 list-none leading-relaxed">
{{ range where .Pages "Section" "article" }}
- {{ partial "items/post-small" . }}
+ {{ .Render "view_postline" }}
{{ end }}
</ul>
diff --git a/layouts/_partials/term/term-weeklies.html b/layouts/_partials/term/term-weeklies.html
index 56697b6..6c40bee 100644
--- a/layouts/_partials/term/term-weeklies.html
+++ b/layouts/_partials/term/term-weeklies.html
@@ -4,7 +4,7 @@
<ul id="term-weeklies"
class="animate-duration-100 ps-0 flex flex-col gap-2 list-none leading-relaxed">
{{ range $weeklies }}
- {{ partial "items/post-small" . }}
+ {{ .Render "view_postline" }}
{{ end }}
</ul>
{{ end }}
diff --git a/layouts/article/section.html b/layouts/article/section.html
index 5072f41..e2027be 100644
--- a/layouts/article/section.html
+++ b/layouts/article/section.html
@@ -25,7 +25,7 @@
</summary>
<ul class="ps-0 flex flex-col gap-2 list-none leading-relaxed">
{{ range .Pages }}
- {{ partial "items/post-small" . }}
+ {{ .Render "view_postline" }}
{{ end }}
</ul>
</details>
diff --git a/layouts/uncategorized.html b/layouts/uncategorized.html
index a015852..2aab301 100644
--- a/layouts/uncategorized.html
+++ b/layouts/uncategorized.html
@@ -12,7 +12,7 @@
<ol class="ps-0 flex flex-col gap-2 leading-relaxed">
{{ range . }}
{{ if not .Date.IsZero }}
- {{ partial "items/post-small" . }}
+ {{ .Render "view_postline" }}
{{ end }}
{{ end }}
</ol>
diff --git a/layouts/_partials/items/post-small.html b/layouts/view_postline.html
index 03cb1e6..03cb1e6 100644
--- a/layouts/_partials/items/post-small.html
+++ b/layouts/view_postline.html