We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18ade73 commit c3b70a7Copy full SHA for c3b70a7
1 file changed
layouts/shortcodes/img.html
@@ -1,8 +1,10 @@
1
{{- $res := resources.GetMatch (.Get "src") -}}
2
+{{- if $res -}}
3
<figure>
4
<img
5
sizes="(max-width: 800px) 800px, 100vw"
6
src="{{ $res.RelPermalink }}"
7
width="100%"
8
height="auto"/>
-</figure>
9
+</figure>
10
+{{- end -}}
0 commit comments