Don't SHA512 media

This commit is contained in:
BBaoVanC 2021-11-02 01:08:46 -05:00
parent 8af0ad6d16
commit 163965f3e6
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A

View File

@ -7,7 +7,7 @@
{{ end }} {{ end }}
{{ with index . "src" }} {{ with index . "src" }}
{{ $media := . | resources.Fingerprint "sha512" }} {{ $media := . }}
{{ if eq .MediaType.MainType "image" }} {{ if eq .MediaType.MainType "image" }}
<img src="{{ $media.Permalink }}" alt="{{ $media.Title }}" /> <img src="{{ $media.Permalink }}" alt="{{ $media.Title }}" />
{{ else if eq .MediaType.MainType "video" }} {{ else if eq .MediaType.MainType "video" }}