mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 16:31:52 +01:00
🐛 Fix: Reassignment of variable names
I'm not sure why this is such a big problem, but hugo doesn't seem to like this. It is also better to just use the intended way to reassign vars always. Before, *feature* images if using background.html would always get overwritten, now that is fixed.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{{ $images := .Resources.ByType "image" }}
|
||||
{{ $backgroundImage := $images.GetMatch "*background*" }}
|
||||
{{ if not $backgroundImage }}
|
||||
{{ $backgroundImage := $images.GetMatch "*feature*" }}
|
||||
{{ $backgroundImage = $images.GetMatch "*feature*" }}
|
||||
{{ end }}
|
||||
{{ if not $backgroundImage }}
|
||||
{{ $backgroundImage = $images.GetMatch "{*cover*,*thumbnail*}" }}
|
||||
|
||||
Reference in New Issue
Block a user