diff options
| author | Eltrac <hi@guhub.cn> | 2025-07-15 15:47:56 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-07-15 15:47:56 +0800 |
| commit | 73478271cf1005beb5b82d967cfc75e07a1c4018 (patch) | |
| tree | d3cc996662608ad02f0955b58bf9b47f166c9167 /layouts/posts | |
| parent | dde50ab716a9ca7d3d0bdd58435c34594cd497ea (diff) | |
refactor: replace _header.scss with UnoCSS and remove post-page-header
Former-commit-id: b503a34ad842ca85919c36fa1b985dc465c74b72
Diffstat (limited to 'layouts/posts')
| -rw-r--r-- | layouts/posts/page.html | 12 |
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"> |
