Fix photos without pics

This commit is contained in:
JP Hastings-Spital 2024-03-31 21:32:24 +01:00
parent bdaff3dc60
commit 41621df88d
10 changed files with 1 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 136 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 252 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View file

@ -24,7 +24,7 @@
<li class="post-item">{{- "" -}}
<a href="{{.Permalink}}">
{{- $firstMedia := index .Params.Media 0 -}}
<img src="{{.Permalink}}{{ $firstMedia.url }}" {{ with $firstMedia.alt }}alt="{{ . }}"{{ end }} />{{- "" -}}
<img src="{{.Permalink}}{{ $firstMedia.url }}{{if hasSuffix $firstMedia.url ".mp4"}}.jpg{{ end }}" {{ with $firstMedia.alt }}alt="{{ . }}"{{ end }} />{{- "" -}}
</a>{{- "" -}}
</li>
{{- end -}}