Enable parallax for header images
This commit is contained in:
parent
65a74dfce6
commit
ce682709b4
2 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
@import url('https://cdn.jsdelivr.net/gh/darkwiiplayer/css@main/all.css') layer(framework);
|
||||
@import url('https://cdn.jsdelivr.net/gh/darkwiiplayer/css@main/drop-in.css') layer(framework);
|
||||
@import url('https://cdn.jsdelivr.net/gh/darkwiiplayer/css@3db9f6c/all.css') layer(framework);
|
||||
@import url('https://cdn.jsdelivr.net/gh/darkwiiplayer/css@3db9f6c/drop-in.css') layer(framework);
|
||||
|
||||
blog-post[hidden] {
|
||||
display: none;
|
||||
|
|
|
@ -32,7 +32,7 @@ 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'
|
||||
* img :src, style: 'opacity: .4', class: "parallax"
|
||||
* h1(post.head.title, style: "view-transition-name: #{post.head.slug}")
|
||||
slots.head
|
||||
* meta property: "og:image", content: src
|
||||
|
|
Loading…
Reference in a new issue