diff --git a/layouts/shortcodes/img.html b/layouts/shortcodes/img.html index 2316130..332cd1c 100644 --- a/layouts/shortcodes/img.html +++ b/layouts/shortcodes/img.html @@ -1,5 +1,7 @@
- {{ .Get + + {{- $imgsrc := .Page.Resources.GetMatch (.Get "src") -}} + {{ .Get
{{ if strings.HasPrefix (.Get "source") "http" }}