summaryrefslogtreecommitdiff
path: root/layouts/posts
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-07-15 15:47:56 +0800
committerEltrac <hi@guhub.cn>2025-07-15 15:47:56 +0800
commitb503a34ad842ca85919c36fa1b985dc465c74b72 (patch)
treed3cc996662608ad02f0955b58bf9b47f166c9167 /layouts/posts
parent272a67d7a8b8752dda3cddf44482e9d85de2c4d0 (diff)
refactor: replace _header.scss with UnoCSS and remove post-page-header
Diffstat (limited to 'layouts/posts')
-rw-r--r--layouts/posts/page.html12
1 files changed, 10 insertions, 2 deletions
diff --git a/layouts/posts/page.html b/layouts/posts/page.html
index bdb0f617..446116fb 100644
--- a/layouts/posts/page.html
+++ b/layouts/posts/page.html
@@ -1,11 +1,19 @@
{{ define "main" }}
- {{ partial "components/post-page-header.html" . }}
<article class="post" id="article">
<!-- Post Header -->
<header
style="view-transition-name: post-{{ .File.UniqueID }}"
- class="post-header"
+ class="post-header relative"
>
+ {{ if .Params.banner }}
+ {{ partial "components/logo" (dict
+ "class" "block round-sticker w-[5rem] h-[5rem] md:w-[7rem] md:h-[7rem] right-[-3rem] md:right-[-5rem] top-[1rem] absolute rotate-[3.0deg]"
+ "imageClass" "block w-full"
+ ) }}
+ {{ else }}
+ {{ partial "components/logo" }}
+ {{ end }}
+
{{ partial "posts/banner" . }}
<!-- Title and Subtitle -->
<h1 class="post-title">