diff options
| author | Track3 <pengliabc@live.cn> | 2019-01-07 20:39:51 +0800 |
|---|---|---|
| committer | Track3 <pengliabc@live.cn> | 2019-01-07 20:39:51 +0800 |
| commit | f995f7313c805939e9dc09b0a02ad4e2865ab693 (patch) | |
| tree | 763d5886b907325180673fcd852fe9b7cd3029ed /layouts/posts | |
| parent | 3f6885ac2051d855b44709e7f2f0e6a1bcf73576 (diff) | |
Remove absURL for featuredImg & bgImg
See #29
Diffstat (limited to 'layouts/posts')
| -rw-r--r-- | layouts/posts/single.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/posts/single.html b/layouts/posts/single.html index 02e3fd5..5b9e8e0 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -1,6 +1,6 @@ {{ define "head" }} {{ if .Params.featuredImg -}} - <style>.bg-img {background-image: url('{{.Params.featuredImg | absURL}}');}</style> + <style>.bg-img {background-image: url('{{.Params.featuredImg}}');}</style> {{- else if .Params.images -}} {{- range first 1 .Params.images -}} <style>.bg-img {background-image: url('{{. | absURL}}');}</style> |
