Skip to content

Commit

Permalink
fix: revert sizes=auto
Browse files Browse the repository at this point in the history
Closes #1303
  • Loading branch information
HEIGE-PCloud committed Jun 21, 2024
1 parent 995a64c commit 7175672
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions layouts/_default/_markup/render-image.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@

{{- if .Title -}}
<figure>
{{- dict "Src" .Destination "Title" .Text "Caption" .Title "Linked" $lightgallery "Loading" "lazy" "Sizes" "auto" "Resources" .Page.Resources "OptimConfig" $optim | partial "plugin/image.html" -}}
{{- dict "Src" .Destination "Title" .Text "Caption" .Title "Linked" $lightgallery "Loading" "lazy" "Resources" .Page.Resources "OptimConfig" $optim | partial "plugin/image.html" -}}
<figcaption class="image-caption">
{{- .Title | safeHTML -}}
</figcaption>
</figure>
{{- else -}}
{{- dict "Src" .Destination "Class" "tw-inline" "Title" .Text "Caption" .Title "Loading" "lazy" "Sizes" "auto" "Resources" .Page.Resources "OptimConfig" $optim | partial "plugin/image.html" -}}
{{- dict "Src" .Destination "Class" "tw-inline" "Title" .Text "Caption" .Title "Loading" "lazy" "Resources" .Page.Resources "OptimConfig" $optim | partial "plugin/image.html" -}}
{{- end -}}

2 changes: 0 additions & 2 deletions layouts/shortcodes/image.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
-}}
{{- $options = dict "OptimConfig" $optim | merge $options -}}
{{- $options = dict "Loading" "lazy" | merge $options -}}
{{- $options = dict "Sizes" "auto" | merge $options -}}


{{- if .IsNamedParams -}}
{{- $options = dict "Title" (.Get "title") | merge $options -}}
Expand Down

0 comments on commit 7175672

Please sign in to comment.