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-23 00:17:05 +0300
committerSean Lane <git@sean.lane.sh>2019-01-23 00:17:05 +0300
commit586eed013d405714384c6e1a8b281393d5ff63cc (patch)
treeabf646c6f46b9c5d6114874513d40019c5818cde /layouts/partials/home.html
parent99cbbfc5b9a812243b522ddc11d0eb75501e6d20 (diff)
Fix components, fix images to work on themes.gohugo.io
Diffstat (limited to 'layouts/partials/home.html')
-rw-r--r--layouts/partials/home.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/home.html b/layouts/partials/home.html
index d535387..ef2c10e 100644
--- a/layouts/partials/home.html
+++ b/layouts/partials/home.html
@@ -3,10 +3,10 @@
<div class="clearfix">
{{ range sort (where .Pages "Section" "recipes") "Title" }}
<div class="sm-col sm-col-6 md-col-6 lg-col-4 xs-px1 xs-mb2">
- <a class="block relative bg-blue" href="{{ .RelPermalink}}">
+ <a class="block relative bg-blue" href="{{ .RelPermalink }}">
{{ with .Resources.ByType "image" }}
{{ range first 1 . }}
- <div class="image ratio bg-cover" style="background-image:url({{ .RelPermalink | absURL }});"></div>
+ <div class="image ratio bg-cover" style="background-image:url({{$.Site.BaseURL}}{{ .RelPermalink }});"></div>
{{ end }}
{{ else }}
<div class="image ratio bg-cover"></div>