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

github.com/appernetic/hugo-nederburg-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Latham <albert.m.latham@gmail.com>2018-07-18 17:56:32 +0300
committerAlbert Latham <albert.m.latham@gmail.com>2018-07-18 17:56:32 +0300
commit0c596f19a3e79bf9465822d4e691b04477b5599d (patch)
treea026ab8783849616ed8553212d8d672878f7c52a
parent705cdcca0001915974cd7bacb820cde2635ebb13 (diff)
post images now point to post folder rather than base site URL
-rw-r--r--layouts/_default/single.html2
-rw-r--r--layouts/partials/portfolio.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index f7e4a17..7c9d6d4 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -9,7 +9,7 @@
{{ if and (isset .Params "image") .Params.image }}
<div class="post type-post status-publish format-standard has-post-thumbnail hentry category-design tag-design tag-standard-2 tag-tagalicious tag-travel entry full-without-featured odd excerpt-1">
- <div class='featured-image lazy lazy-bg-image' data-background="{{ .Params.image | absURL }}">
+ <div class='featured-image lazy lazy-bg-image' data-background="{{ .Permalink }}{{ .Params.image }}">
</div>
{{ else }}
diff --git a/layouts/partials/portfolio.html b/layouts/partials/portfolio.html
index 511c6f5..42a8650 100644
--- a/layouts/partials/portfolio.html
+++ b/layouts/partials/portfolio.html
@@ -16,7 +16,7 @@
{{ end }}
{{ if and (isset .Params "image") .Params.image }}
- <a class="featured-image-link" href="{{ .Permalink }}"><div class='featured-image lazy lazy-bg-image' data-background="{{ .Params.image | absURL }}"></div></a>
+ <a class="featured-image-link" href="{{ .Permalink }}"><div class='featured-image lazy lazy-bg-image' data-background="{{ .Permalink }}{{ .Params.image }}"></div></a>
{{ end }}
<div class="excerpt-container">