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

github.com/seanlane/gochowdown.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Lane <git@sean.lane.sh>2019-01-22 23:42:41 +0300
committerSean Lane <git@sean.lane.sh>2019-01-22 23:42:41 +0300
commit99cbbfc5b9a812243b522ddc11d0eb75501e6d20 (patch)
tree17922b50c85b5aca9f77d9c26a785dd904e0d50f
parent3d052fe6df50dd3902f0fc8515e5b98dabe50e36 (diff)
Remove relative links
-rw-r--r--layouts/recipes/single.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/recipes/single.html b/layouts/recipes/single.html
index 54369dc..19a86df 100644
--- a/layouts/recipes/single.html
+++ b/layouts/recipes/single.html
@@ -8,7 +8,7 @@
{{ with .Resources.ByType "image" }}
{{ range . }}
<div class="xs-p2">
- <img itemprop="image" src="{{ .RelPermalink }}" />
+ <img itemprop="image" src="{{ .RelPermalink | absURL }}" />
</div>
{{ end }}
{{ end }}
@@ -77,8 +77,8 @@
{{ range where $.Site.Pages "Title" $compTitle }}
<h4 class="blue center">{{ .Title }}</h4>
{{ range (.Resources.ByType "image") }}
- <div class="image ratio bg-cover" style="background-image:url({{ .RelPermalink }});">
- <img class="hide" itemprop="photo" src="{{ .RelPermalink }}" />
+ <div class="image ratio bg-cover" style="background-image:url({{ .RelPermalink | absURL }});">
+ <img class="hide" itemprop="photo" src="{{ .RelPermalink | absURL }}" />
</div>
{{ end }}
{{ if .Params.Imagecredit }}