diff options
| author | Eltrac <hi@guhub.cn> | 2025-07-15 23:43:03 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-07-15 23:43:03 +0800 |
| commit | 0e33d37829e92c98a50280e65fd6094e58e780af (patch) | |
| tree | 3a6d69224046d25471ead54acf43579c2b442786 /layouts/_partials/posts | |
| parent | 51a80e52d7af47eca04bfe84e8ba495c2b87d174 (diff) | |
refactor: UnoCSS-ify post pages, endnotes and NRT
Former-commit-id: ead971bb10ead43f491c317649c60060a460f399
Diffstat (limited to 'layouts/_partials/posts')
| -rw-r--r-- | layouts/_partials/posts/endnotes.html | 6 | ||||
| -rw-r--r-- | layouts/_partials/posts/now-read-this.html | 14 |
2 files changed, 10 insertions, 10 deletions
diff --git a/layouts/_partials/posts/endnotes.html b/layouts/_partials/posts/endnotes.html index e7245ad4..43c8fe74 100644 --- a/layouts/_partials/posts/endnotes.html +++ b/layouts/_partials/posts/endnotes.html @@ -1,9 +1,9 @@ {{ if .Params.endnotes }} <hr> -<div id="post-endnotes"> - <ul> +<div id="post-endnotes" class="font-secondary text-[1rem]"> + <ul class="list-none"> {{ range .Params.endnotes }} - <li>{{ . | markdownify }}</li> + <li class="flex gap-4 pl-4"><span>→</span> {{ . | markdownify }}</li> {{ end }} </ul> </div> diff --git a/layouts/_partials/posts/now-read-this.html b/layouts/_partials/posts/now-read-this.html index 6f2950c2..2c894f27 100644 --- a/layouts/_partials/posts/now-read-this.html +++ b/layouts/_partials/posts/now-read-this.html @@ -1,17 +1,17 @@ {{ with site.RegularPages.Related . | first 1 }} -<div class="nrt post-content"> - <h4 class="nrt-title">{{ T "nowReadThis" }}</h4> +<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> {{ range . }} - <div class="nrt-header"> - <a class="nrt-link" href="{{ .RelPermalink }}" data-umami-event="🤔 Click Related Post"> + <div class="flex justify-between"> + <a class="font-800" href="{{ .RelPermalink }}" data-umami-event="🤔 Click Related Post"> {{ .LinkTitle }} {{ with .Params.subtitle }} - <span class="nrt-subtitle">:{{ . }}</span> + <span class="font-secondary font-normal">:{{ . }}</span> {{ end }} </a> - <span class="nrt-reading-time">⏱️ {{ .ReadingTime }}min </span> + <span class="font-secondary">⏱️ {{ .ReadingTime }}min </span> </div> - <div class="nrt-summary"> + <div class="font-light"> <p>{{ .Summary | plainify }}</p> </div> {{ end }} |
