Fix trailing slash in art

This commit is contained in:
Joshua Goins 2023-04-17 14:18:02 -04:00
parent 79909f7464
commit be422f74cf
2 changed files with 3 additions and 3 deletions

View file

@ -22,7 +22,7 @@
{{ $title := .title }} {{ $title := .title }}
{{ with resources.Get (printf "art/%s" .filename) }} {{ with resources.Get (printf "art/%s" .filename) }}
{{ $image := .Resize "500x" }} {{ $image := .Resize "500x" }}
<img class="gallery-img featured-art" alt="{{ $title }}" width="{{ $image.Width }}" height="{{ $image.Height }}" src="{{ $image.RelPermalink }}"/> <img class="gallery-img featured-art" alt="{{ $title }}" width="{{ $image.Width }}" height="{{ $image.Height }}" src="{{ $image.RelPermalink }}">
{{ else }} {{ else }}
<p>Thumbnail not found!</p> <p>Thumbnail not found!</p>
{{ end }} {{ end }}

View file

@ -34,13 +34,13 @@
{{ with $image }} {{ with $image }}
{{ if $.Params.threed }} {{ if $.Params.threed }}
{{ with resources.Get "3d.png" }} {{ with resources.Get "3d.png" }}
<img alt="Viewable 3D" title="Viewable 3D" style="z-index: 1; position: absolute; left: 10px; top: 10px" src="{{ .Permalink }}" /> <img alt="Viewable 3D" title="Viewable 3D" style="z-index: 1; position: absolute; left: 10px; top: 10px" src="{{ .Permalink }}">
{{ end }} {{ end }}
{{ end }} {{ end }}
{{ if $.Params.animation }} {{ if $.Params.animation }}
{{ with resources.Get "play-circle.png" }} {{ with resources.Get "play-circle.png" }}
<img alt="Viewable Animation" title="Viewable Animation" style="z-index: 1; position: absolute; left: 10px; top: 10px" src="{{ .Permalink }}" /> <img alt="Viewable Animation" title="Viewable Animation" style="z-index: 1; position: absolute; left: 10px; top: 10px" src="{{ .Permalink }}">
{{ end }} {{ end }}
{{ end }} {{ end }}