Skip to content

Commit

Permalink
post images now point to post folder rather than base site URL
Browse files Browse the repository at this point in the history
  • Loading branch information
comalice committed Jul 18, 2018
1 parent 705cdcc commit 0c596f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{{ if and (isset .Params "image") .Params.image }}
<div class="post type-post status-publish format-standard has-post-thumbnail hentry category-design tag-design tag-standard-2 tag-tagalicious tag-travel entry full-without-featured odd excerpt-1">

<div class='featured-image lazy lazy-bg-image' data-background="{{ .Params.image | absURL }}">
<div class='featured-image lazy lazy-bg-image' data-background="{{ .Permalink }}{{ .Params.image }}">
</div>
{{ else }}

Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/portfolio.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ <h1 class="screen-reader-text">Posts</h1>
{{ end }}

{{ if and (isset .Params "image") .Params.image }}
<a class="featured-image-link" href="{{ .Permalink }}"><div class='featured-image lazy lazy-bg-image' data-background="{{ .Params.image | absURL }}"></div></a>
<a class="featured-image-link" href="{{ .Permalink }}"><div class='featured-image lazy lazy-bg-image' data-background="{{ .Permalink }}{{ .Params.image }}"></div></a>

{{ end }}
<div class="excerpt-container">
Expand Down

0 comments on commit 0c596f1

Please sign in to comment.