Browse Source

class parameter on responsive-image shortcode

master
Alexander Avery 2 years ago
parent
commit
7c3e7ccda5
  1. 4
      layouts/shortcodes/responsive-image.html

4
layouts/shortcodes/responsive-image.html

@ -1,5 +1,5 @@
<img class="fill-wh"
{{ with .Page.Resources.GetMatch (.Get "src") }}
<img class="{{ .Get "class" | default "fill-wh" }}"
{{ with .Get "src" | .Page.Resources.GetMatch }}
srcset="
{{ (.Resize "320x q30").RelPermalink }} 320w,
{{ (.Resize "600x q40").RelPermalink }} 600w,

Loading…
Cancel
Save