Skip to content

Commit

Permalink
fix: fix wrong dict key and value in md render hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Sped0n committed Jan 28, 2024
1 parent f7aaa2f commit 032d6d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/_default/_markup/render-image.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{- $lightgallery := .Page.Params.lightgallery | default site.Params.Page.lightgallery | default false -}}
{{- if .Title -}}
<figure>
{{- dict "Src" .Destination "Title" .Text "Caption" .Title "Linked" $lightgallery "Resources" .Page.Resources "NoOptim" false "NoRemote" false | partial "plugin/image.html" -}}
{{- dict "Src" .Destination "Title" .Text "Caption" .Title "Linked" $lightgallery "Resources" .Page.Resources "Optim" true "Remote" true | partial "plugin/image.html" -}}
<figcaption class="image-caption">
{{- .Title | safeHTML -}}
</figcaption>
Expand Down

0 comments on commit 032d6d7

Please sign in to comment.