mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-01-22 22:45:42 -06:00
Merge pull request #209 from nunocoracao/204-homepage-background-mode-blur-improvements
corrected case for layoutBackgroundBlur parameter
This commit is contained in:
commit
5bfacfa68b
4 changed files with 4 additions and 4 deletions
|
@ -31,7 +31,7 @@ enableCodeCopy = true
|
|||
showMoreLinkDest = "/posts"
|
||||
cardView = false
|
||||
cardViewScreenWidth = false
|
||||
layout_background_blur = false # only used when layout equals background
|
||||
layoutBackgroundBlur = false # only used when layout equals background
|
||||
|
||||
[article]
|
||||
showDate = true
|
||||
|
|
|
@ -31,7 +31,7 @@ mainSections = ["docs"]
|
|||
showMoreLinkDest = "docs"
|
||||
cardView = true
|
||||
cardViewScreenWidth = false
|
||||
layout_background_blur = true # only used when layout equals background
|
||||
layoutBackgroundBlur = true # only used when layout equals background
|
||||
|
||||
[article]
|
||||
showDate = false
|
||||
|
|
|
@ -148,7 +148,7 @@ Many of the article defaults here can be overridden on a per article basis by sp
|
|||
| `homepage.showMoreLinkDest` | '/posts' | The destination of the show more button. |
|
||||
| `homepage.cardView` | `false` | Display recent articles as a gallery of cards. |
|
||||
| `homepage.cardViewScreenWidth` | `false` | Enhance the width of the recent articles card gallery to take the full width available. |
|
||||
| `homepage.layout_background_blur` | `false` | Makes the background image in the homepage layout blur with the scroll |
|
||||
| `homepage.layoutBackgroundBlur` | `false` | Makes the background image in the homepage layout blur with the scroll |
|
||||
| `article.showDate` | `true` | Whether or not article dates are displayed. |
|
||||
| `article.showViews` | `false` | Whether or not article views are displayed. This requires firebase integrations to be enabled, look below. |
|
||||
| `article.showLikes` | `false` | Whether or not article likes are displayed. This requires firebase integrations to be enabled, look below. |
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
<section>
|
||||
{{ partial "recent-articles.html" . }}
|
||||
</section>
|
||||
{{ if .Site.Params.homepage.layout_background_blur | default false }}
|
||||
{{ if .Site.Params.homepage.layoutBackgroundBlur | default false }}
|
||||
<div id="background-blur" class="fixed opacity-0 inset-x-0 top-0 h-full single_hero_background nozoom backdrop-blur-2xl"></div>
|
||||
<script>
|
||||
window.addEventListener('scroll', function (e) {
|
||||
|
|
Loading…
Reference in a new issue