mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-11-08 20:19:21 +00:00
Merge pull request #2853 from MaikelChan/header_space_list
🐛 Fixed `layoutBackgroundBlur` and `layoutBackgroundHeaderSpace` not affecting term and taxonomy pages
This commit is contained in:
5 files changed
+27
-13
No files matched your search
@@ -44,15 +44,19 @@
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ $isParentList := eq (.Scratch.Get "scope") "list" }}
|
||||
{{ $scope := .Scratch.Get "scope" }}
|
||||
{{ $shouldBlur := $.Params.layoutBackgroundBlur | default (or
|
||||
(and ($.Site.Params.article.layoutBackgroundBlur | default true) (not $isParentList))
|
||||
(and ($.Site.Params.list.layoutBackgroundBlur | default true) ($isParentList))
|
||||
(and ($.Site.Params.article.layoutBackgroundBlur | default true) (eq $scope "single"))
|
||||
(and ($.Site.Params.list.layoutBackgroundBlur | default true) (eq $scope "list"))
|
||||
(and ($.Site.Params.taxonomy.layoutBackgroundBlur | default true) (eq $scope "terms"))
|
||||
(and ($.Site.Params.term.layoutBackgroundBlur | default true) (eq $scope "term"))
|
||||
)
|
||||
}}
|
||||
{{ $shouldAddHeaderSpace := $.Params.layoutBackgroundHeaderSpace | default (or
|
||||
(and ($.Site.Params.article.layoutBackgroundHeaderSpace | default true) (not $isParentList))
|
||||
(and ($.Site.Params.list.layoutBackgroundHeaderSpace | default true) ($isParentList))
|
||||
(and ($.Site.Params.article.layoutBackgroundHeaderSpace | default true) (eq $scope "single"))
|
||||
(and ($.Site.Params.list.layoutBackgroundHeaderSpace | default true) (eq $scope "list"))
|
||||
(and ($.Site.Params.taxonomy.layoutBackgroundHeaderSpace | default true) (eq $scope "terms"))
|
||||
(and ($.Site.Params.term.layoutBackgroundHeaderSpace | default true) (eq $scope "term"))
|
||||
)
|
||||
}}
|
||||
|
||||
|
||||
@@ -76,10 +76,12 @@
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ $isParentList := eq (.Scratch.Get "scope") "list" }}
|
||||
{{ $scope := .Scratch.Get "scope" }}
|
||||
{{ $shouldBlur := $.Params.layoutBackgroundBlur | default (or
|
||||
(and ($.Site.Params.article.layoutBackgroundBlur | default true) (not $isParentList))
|
||||
(and ($.Site.Params.list.layoutBackgroundBlur | default true) ($isParentList))
|
||||
(and ($.Site.Params.article.layoutBackgroundBlur | default true) (eq $scope "single"))
|
||||
(and ($.Site.Params.list.layoutBackgroundBlur | default true) (eq $scope "list"))
|
||||
(and ($.Site.Params.taxonomy.layoutBackgroundBlur | default true) (eq $scope "terms"))
|
||||
(and ($.Site.Params.term.layoutBackgroundBlur | default true) (eq $scope "term"))
|
||||
)
|
||||
}}
|
||||
|
||||
|
||||
Reference in new issue
Block a user