mirror of
https://github.com/13hannes11/hugo-coder-timeline.git
synced 2024-09-04 00:50:58 +02:00
Add relUrl for featuredImage
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user