Skip to content

Commit

Permalink
Update image location
Browse files Browse the repository at this point in the history
  • Loading branch information
austintraver committed Feb 11, 2023
1 parent 82c20ea commit 1a1cc03
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
</section>
<section class="collection">
{{ range sort .Pages ".FuzzyWordCount" "desc" }}
{{ $img := path.Join "https://docs.austin.jp/" (slicestr (path.Join .RelPermalink "featured") ) }}
{{ $img := path.Join "docs.austin.jp" (slicestr (path.Join .RelPermalink "featured") ) }}
<a class="card" href="{{ .RelPermalink }}">
<picture>
<source type="image/webp"
srcset="{{ $img }}-1x.webp 1x,
{{ $img }}-2x.webp 2x,
{{ $img }}-3x.webp 3x"
srcset="https://{{ $img }}-1x.webp 1x,
https://{{ $img }}-2x.webp 2x,
https://{{ $img }}-3x.webp 3x"
>
<img alt="" loading=lazy class="preview" src="{{ $img }}.png">
<img alt="" loading=lazy class="preview" src="https://{{ $img }}.png">
</picture>
<header>{{ .Title }}</header>
</a>
Expand Down

0 comments on commit 1a1cc03

Please sign in to comment.