summaryrefslogtreecommitdiff
path: root/layouts/_partials/items
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-07-24 17:09:26 +0800
committerEltrac <hi@guhub.cn>2025-07-24 17:09:26 +0800
commitc476bb450e62fd7cb8bdf22d45c4422f92c1cc8f (patch)
tree87a9cb71740f8c89a1365545193177711bd40f92 /layouts/_partials/items
parent6919c72d9e20a41575fecf1828d414fd02519ceb (diff)
refactor: replace some utility classes with UnoCSS
Diffstat (limited to 'layouts/_partials/items')
-rw-r--r--layouts/_partials/items/post-small.html4
-rw-r--r--layouts/_partials/items/post.html2
2 files changed, 3 insertions, 3 deletions
diff --git a/layouts/_partials/items/post-small.html b/layouts/_partials/items/post-small.html
index 30cbf60f..644cb106 100644
--- a/layouts/_partials/items/post-small.html
+++ b/layouts/_partials/items/post-small.html
@@ -1,9 +1,9 @@
<li class="flex justify-between text-size-lg">
<a href="{{ .RelPermalink }}" data-umami-event="🗃️ Click Post Link from Category Page">
- {{ .Title }}{{ with .Params.subtitle }}:<span class="font-secondary">{{. }}</span>
+ {{ .Title }}{{ with .Params.subtitle }}:<span class="text-secondary">{{. }}</span>
{{ end }}
</a>
- <time class="text-size-sm font-mono font-secondary flex-shrink-0">
+ <time class="text-size-sm font-mono text-secondary flex-shrink-0">
{{ .Date.Format "2006-1-2" }}
</time>
</li>
diff --git a/layouts/_partials/items/post.html b/layouts/_partials/items/post.html
index 8bbd68a8..3e426c56 100644
--- a/layouts/_partials/items/post.html
+++ b/layouts/_partials/items/post.html
@@ -4,7 +4,7 @@
style="view-transition-name: post-{{ .ctx.File.UniqueID }}">
<header class="w-full md:flex md:justify-between">
<div>
- <p class="font-mono font-secondary">
+ <p class="font-mono text-secondary">
<time>{{ .ctx.Date.Format "January 2" }},</time>
<span>in <a href="/{{ .Section }}/">{{ .ctx.Section }}</a></span>
</p>