Perf: optimize featured image rendering

This commit is contained in:
Cell
2023-11-07 11:24:22 +08:00
parent 9ec83753d3
commit fdc501904c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -12,7 +12,7 @@
{{- with $image -}}
<div class="featured-image-preview">
<a href="{{ $.RelPermalink }}" aria-label="{{ $.Title }}">
{{- dict "Src" . "Title" $.Description "Resources" $.Resources | partial "plugin/image.html" -}}
{{- dict "Src" . "Title" $.Description "Alt" $.Title "Resources" $.Resources | partial "plugin/image.html" -}}
</a>
</div>
{{- end -}}