Skip to content

Commit

Permalink
chore: chain img alt init
Browse files Browse the repository at this point in the history
  • Loading branch information
HEIGE-PCloud committed Jun 13, 2023
1 parent f321245 commit 8465ab2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions layouts/partials/plugin/image.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
{{- $large = .RelPermalink -}}
{{- end -}}

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

{{- with .Height -}}
Expand Down

1 comment on commit 8465ab2

@vercel
Copy link

@vercel vercel bot commented on 8465ab2 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.