Skip to content

Commit

Permalink
fix: image process failed when resource is just in post root folder
Browse files Browse the repository at this point in the history
  • Loading branch information
tomowang committed Apr 27, 2024
1 parent 9dc72c5 commit c1d51dc
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
Expand Up @@ -12,7 +12,7 @@

<div class="not-prose">
<!-- check if it exists as a page resource -->
{{- with (.Page.Resources.ByType "image").GetMatch ( printf "**/%s" $dest ) -}}
{{- with (.Page.Resources.ByType "image").GetMatch ( printf "{**/%s,%s}" $dest $dest ) -}}
{{- $src := . -}}
{{- $dataSzes := "(min-width: 1024px) 100vw, 50vw" -}}
{{- $actualImg := $src.Resize (print "640x jpg " $filter) -}}
Expand Down

0 comments on commit c1d51dc

Please sign in to comment.