Skip to content

Commit

Permalink
Fixed image alt text generation (#987)
Browse files Browse the repository at this point in the history
  • Loading branch information
zc-devs authored Jun 13, 2023
1 parent caa93d7 commit f321245
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion layouts/partials/plugin/image.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
{{- $large = .RelPermalink -}}
{{- end -}}

{{- $alt := .Alt | default $src -}}
{{- $alt := .Alt | default .Title -}}
{{- $alt := $alt | default $src -}}
{{- $loading := .Loading | default "lazy" -}}

{{- with .Height -}}
Expand Down

1 comment on commit f321245

@vercel
Copy link

@vercel vercel bot commented on f321245 Jun 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.