Skip to content

Commit c3b70a7

Browse files
committed
possible fix
1 parent 18ade73 commit c3b70a7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

layouts/shortcodes/img.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
{{- $res := resources.GetMatch (.Get "src") -}}
2+
{{- if $res -}}
23
<figure>
34
<img
45
sizes="(max-width: 800px) 800px, 100vw"
56
src="{{ $res.RelPermalink }}"
67
width="100%"
78
height="auto"/>
8-
</figure>
9+
</figure>
10+
{{- end -}}

0 commit comments

Comments
 (0)