From bfdcfbc3eaddc47258890ca3348354f6adb99a38 Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Thu, 21 Aug 2025 00:10:50 +0200 Subject: [PATCH] Add parallax to post header --- static/css/site.css | 4 ++-- templates/post.html.skooma.yue | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/static/css/site.css b/static/css/site.css index 68abfd1..ff3644b 100644 --- a/static/css/site.css +++ b/static/css/site.css @@ -1,5 +1,5 @@ -@import url('https://cdn.jsdelivr.net/gh/darkwiiplayer/css@5b7cc42/all.css') layer(framework); -@import url('https://cdn.jsdelivr.net/gh/darkwiiplayer/css@5b7cc42/drop-in.css') layer(framework); +@import url('https://cdn.jsdelivr.net/gh/darkwiiplayer/css@74e5799/all.css') layer(framework); +@import url('https://cdn.jsdelivr.net/gh/darkwiiplayer/css@74e5799/drop-in.css') layer(framework); blog-post[hidden] { display: none; diff --git a/templates/post.html.skooma.yue b/templates/post.html.skooma.yue index 7c7118e..41295e6 100644 --- a/templates/post.html.skooma.yue +++ b/templates/post.html.skooma.yue @@ -33,7 +33,9 @@ breadcrumb = (href) -> li a :href, href\match('[^/]+$'), tabindex: 0 if src := post.head.cover_image slots.top pageHero cover: 60 * img :src, style: 'opacity: .4', class: "parallax" - * h1(post.head.title, style: "view-transition-name: #{post.head.slug}") + * flexColumn + * class: "parallax" + * h1(post.head.title, style: "view-transition-name: #{post.head.slug}") slots.head * meta property: "og:image", content: src else