summaryrefslogtreecommitdiff
path: root/layouts/_partials/posts
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-07-17 11:25:10 +0800
committerEltrac <hi@guhub.cn>2025-07-17 11:25:10 +0800
commitec41236bc88a0762656413c38044ffa256bd93cb (patch)
tree2d6f685fbe9ebb998e29dfcc9d1db9289238c1fe /layouts/_partials/posts
parent1160eda3a7de8ffaf1562e65187cec783081d491 (diff)
refactor: avoid using straight value in UnoCSS
Diffstat (limited to 'layouts/_partials/posts')
-rw-r--r--layouts/_partials/posts/comment.html2
-rw-r--r--layouts/_partials/posts/endnotes.html2
-rw-r--r--layouts/_partials/posts/now-read-this.html4
3 files changed, 4 insertions, 4 deletions
diff --git a/layouts/_partials/posts/comment.html b/layouts/_partials/posts/comment.html
index 18bc479a..2a0f1027 100644
--- a/layouts/_partials/posts/comment.html
+++ b/layouts/_partials/posts/comment.html
@@ -12,7 +12,7 @@
<div>
{{ .content | safeHTML }}
</div>
- <div class="text-[1rem] text-right font-secondary">
+ <div class="text-4 text-right font-secondary">
{{ with .source }}
<p class="font-mono">{{ T "postPage.originallyPostedOn" . }}</p>
{{ end }}
diff --git a/layouts/_partials/posts/endnotes.html b/layouts/_partials/posts/endnotes.html
index 43c8fe74..83004f0f 100644
--- a/layouts/_partials/posts/endnotes.html
+++ b/layouts/_partials/posts/endnotes.html
@@ -1,6 +1,6 @@
{{ if .Params.endnotes }}
<hr>
-<div id="post-endnotes" class="font-secondary text-[1rem]">
+<div id="post-endnotes" class="font-secondary text-4">
<ul class="list-none">
{{ range .Params.endnotes }}
<li class="flex gap-4 pl-4"><span>→</span> {{ . | markdownify }}</li>
diff --git a/layouts/_partials/posts/now-read-this.html b/layouts/_partials/posts/now-read-this.html
index 2c894f27..8a9be489 100644
--- a/layouts/_partials/posts/now-read-this.html
+++ b/layouts/_partials/posts/now-read-this.html
@@ -1,6 +1,6 @@
{{ with site.RegularPages.Related . | first 1 }}
-<div class="mt-8 pb-8 relative leading-[2]">
- <h4 class="absolute -z-1 bottom-0 right-0 text-[2rem] m-0 opacity-25 font-italic">{{ T "nowReadThis" }}</h4>
+<div class="mt-8 pb-8 relative leading-loose">
+ <h4 class="absolute -z-1 bottom-0 right-0 text-8 m-0 opacity-25 font-italic">{{ T "nowReadThis" }}</h4>
{{ range . }}
<div class="flex justify-between">
<a class="font-800" href="{{ .RelPermalink }}" data-umami-event="🤔 Click Related Post">