diff options
author | Joe Hutchinson <hutch7995@gmail.com> | 2020-07-31 22:36:11 +0300 |
---|---|---|
committer | Joe Hutchinson <hutch7995@gmail.com> | 2020-07-31 22:36:11 +0300 |
commit | afdc89a74ebc85b03bd12f0d38c4a6f0498b32dc (patch) | |
tree | 418e87cf16e5ec0d0dc78fdbdba2b7da8048042b | |
parent | 6da41297a007e4a7cf0f144440392f34fb96b6f0 (diff) |
Fix error if bgimg param is not added to config
-rw-r--r-- | layouts/partials/head.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index e9e54b1..463efca 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -33,7 +33,7 @@ {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end -}} {{ template "_internal/google_analytics.html" . }} - {{ with resources.Get .Site.Params.bgimg -}} + {{ with resources.GetMatch .Site.Params.bgimg -}} <style> body { background: #ecedef url("{{ .Permalink | safeCSS }}") repeat; |