diff options
author | Sean Lane <git@sean.lane.sh> | 2019-01-23 00:17:05 +0300 |
---|---|---|
committer | Sean Lane <git@sean.lane.sh> | 2019-01-23 00:17:05 +0300 |
commit | 586eed013d405714384c6e1a8b281393d5ff63cc (patch) | |
tree | abf646c6f46b9c5d6114874513d40019c5818cde /layouts/partials/home.html | |
parent | 99cbbfc5b9a812243b522ddc11d0eb75501e6d20 (diff) |
Fix components, fix images to work on themes.gohugo.io
Diffstat (limited to 'layouts/partials/home.html')
-rw-r--r-- | layouts/partials/home.html | 4 |
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> |