diff --git a/layouts/partials/header-image.html b/layouts/partials/header-image.html deleted file mode 100644 index e7110fb..0000000 --- a/layouts/partials/header-image.html +++ /dev/null @@ -1,10 +0,0 @@ -{{ .alt }} diff --git a/layouts/partials/image.html b/layouts/partials/image.html new file mode 100644 index 0000000..1db1aa1 --- /dev/null +++ b/layouts/partials/image.html @@ -0,0 +1,21 @@ +{{ .alt }} diff --git a/layouts/partials/responsive-image.html b/layouts/partials/responsive-image.html deleted file mode 100644 index 9beba51..0000000 --- a/layouts/partials/responsive-image.html +++ /dev/null @@ -1,10 +0,0 @@ -{{ .Params.alt }} diff --git a/layouts/shortcodes/image.html b/layouts/shortcodes/image.html new file mode 100644 index 0000000..8bb157d --- /dev/null +++ b/layouts/shortcodes/image.html @@ -0,0 +1,3 @@ +{{ $image := .Page.Resources.GetMatch (.Get "src") }} +{{ partial "image.html" (dict "image" $image "alt" (.Get "alt") "class" "fill-wh") }} + diff --git a/layouts/shortcodes/responsive-image.html b/layouts/shortcodes/responsive-image.html deleted file mode 100644 index 5059a6f..0000000 --- a/layouts/shortcodes/responsive-image.html +++ /dev/null @@ -1,11 +0,0 @@ -{{ .Get -