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

github.com/luizdepra/hugo-coder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuiz F. A. de Prá <luiz.pra@luizalabs.com>2022-02-24 19:54:38 +0300
committerLuiz F. A. de Prá <luiz.pra@luizalabs.com>2022-02-24 19:54:38 +0300
commitf67caf19b9a19c6713884f156ba67a142ff3910d (patch)
treea9a4fb902e94e8d4652cd4f851946252e6442457
parentfbbc50cc30f809a123c7c02c11a4e7d2c8467d77 (diff)
Add relUrl for featuredImage
-rw-r--r--layouts/posts/single.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/posts/single.html b/layouts/posts/single.html
index 61f11f7..f102380 100644
--- a/layouts/posts/single.html
+++ b/layouts/posts/single.html
@@ -16,7 +16,7 @@
<div class="date">
<span class="posted-on">
<i class="fa fa-calendar" aria-hidden="true"></i>
- <time datetime='{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}'>
+ <time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
{{ .Date.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}
</time>
</span>
@@ -33,7 +33,7 @@
<div>
{{ if .Params.featuredImage }}
- <img src='{{ .Params.featuredImage }}' alt="Featured image"/>
+ <img src="{{ .Params.featuredImage | relURL }}" alt="Featured image"/>
{{ end }}
{{ .Content }}
</div>