Merge pull request #209 from nunocoracao/204-homepage-background-mode-blur-improvements

corrected case for layoutBackgroundBlur parameter
This commit is contained in:
Nuno Coração 2022-11-06 19:10:23 +00:00 committed by GitHub
commit 5bfacfa68b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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

View file

@ -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. |

View file

@ -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) {