Fix photos without pics
BIN
content/notes/twitter/1048568786192912384/media-1.mp4.jpg
Normal file
After Width: | Height: | Size: 136 KiB |
BIN
content/notes/twitter/1058053506588925953/media-1.mp4.jpg
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
content/notes/twitter/1083128928884150278/media-1.mp4.jpg
Normal file
After Width: | Height: | Size: 252 KiB |
BIN
content/notes/twitter/1096915446702489600/media-1.mp4.jpg
Normal file
After Width: | Height: | Size: 83 KiB |
BIN
content/notes/twitter/1096919171059929089/media-1.mp4.jpg
Normal file
After Width: | Height: | Size: 66 KiB |
BIN
content/notes/twitter/1096919221345357824/media-1.mp4.jpg
Normal file
After Width: | Height: | Size: 68 KiB |
BIN
content/notes/twitter/1096919268770414592/media-1.mp4.jpg
Normal file
After Width: | Height: | Size: 113 KiB |
BIN
content/notes/twitter/1096919325590589441/media-1.mp4.jpg
Normal file
After Width: | Height: | Size: 72 KiB |
BIN
content/notes/twitter/845568435954298880/media-1.mp4.jpg
Normal file
After Width: | Height: | Size: 16 KiB |
|
@ -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 -}}
|
||||
|
|