diff options
Diffstat (limited to 'layouts/partials/shortcodes/amp-gif.html')
-rw-r--r-- | layouts/partials/shortcodes/amp-gif.html | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/layouts/partials/shortcodes/amp-gif.html b/layouts/partials/shortcodes/amp-gif.html index 705c960..f4a61a8 100644 --- a/layouts/partials/shortcodes/amp-gif.html +++ b/layouts/partials/shortcodes/amp-gif.html @@ -1,8 +1,11 @@ -<amp-anim - {{ with .class }} class="{{ . }}"{{ end }} - {{ with .alt }} alt="{{ . }}"{{ end }} - {{ with .width }} width="{{ . }}"{{ end }} - {{ with .height }} height="{{ . }}"{{ end }} - {{ with .layout }} layout="{{ . }}"{{ end }} - {{ with .src }} src="{{ . | absURL }}"{{ end }}> -</amp-anim>
\ No newline at end of file +{{ $resource := resources.Get .src }} +{{ with $resource }} + <amp-anim + {{ with $.class }} class="{{ . }}"{{ end }} + {{ with $.alt }} alt="{{ . }}"{{ end }} + {{ with $.width }} width="{{ . }}"{{ end }} + {{ with $.height }} height="{{ . }}"{{ end }} + {{ with $.layout }} layout="{{ . }}"{{ end }} + src="{{ .Permalink | absURL }}"> + </amp-anim> +{{ end }}
\ No newline at end of file |