Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Track3/hermit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrack3 <pengliabc@live.cn>2019-01-07 15:39:51 +0300
committerTrack3 <pengliabc@live.cn>2019-01-07 15:39:51 +0300
commitf995f7313c805939e9dc09b0a02ad4e2865ab693 (patch)
tree763d5886b907325180673fcd852fe9b7cd3029ed
parent3f6885ac2051d855b44709e7f2f0e6a1bcf73576 (diff)
Remove absURL for featuredImg & bgImg
See #29
-rw-r--r--layouts/_default/single.html2
-rw-r--r--layouts/index.html2
-rw-r--r--layouts/posts/single.html2
3 files changed, 3 insertions, 3 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 900b3f7..cef2cba 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/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>
diff --git a/layouts/index.html b/layouts/index.html
index 23bb608..85ac439 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,6 +1,6 @@
{{ define "head" }}
{{ if .Site.Params.bgImg -}}
- <style>.bg-img {background-image: url('{{.Site.Params.bgImg | absURL}}');}</style>
+ <style>.bg-img {background-image: url('{{.Site.Params.bgImg}}');}</style>
{{- else if .Site.Params.images -}}
{{- range first 1 .Site.Params.images -}}
<style>.bg-img {background-image: url('{{. | absURL}}');}</style>
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>