Add parallax to post header
This commit is contained in:
parent
f2ae9269fb
commit
bfdcfbc3ea
2 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue