|
@ -2,12 +2,12 @@ |
|
|
<img class="{{ .class | default "fill-wh"}}" |
|
|
<img class="{{ .class | default "fill-wh"}}" |
|
|
{{ with resources.Get .context.Params.featured.url }} |
|
|
{{ with resources.Get .context.Params.featured.url }} |
|
|
srcset=" |
|
|
srcset=" |
|
|
{{ (.Resize "320x q30").RelPermalink }} 320w, |
|
|
{{ (.Resize "420x q50").RelPermalink }} 420w, |
|
|
{{ (.Resize "600x q40").RelPermalink }} 600w, |
|
|
{{ (.Resize "700x q65").RelPermalink }} 700w, |
|
|
{{ (.Resize "1200x q65").RelPermalink }} 1200w" |
|
|
{{ (.Resize "1200x q65").RelPermalink }} 1200w" |
|
|
sizes="(max-width: 400px) 320vw, |
|
|
sizes="(max-width: 400px) 420px, |
|
|
(max-width: 1000px) 600vw, |
|
|
(max-width: 1000px) 700px, |
|
|
1200vw" |
|
|
1200px" |
|
|
src="{{ .RelPermalink }}" |
|
|
src="{{ .RelPermalink }}" |
|
|
{{ end }} |
|
|
{{ end }} |
|
|
alt="{{ .context.Params.featured.alt }}" |
|
|
alt="{{ .context.Params.featured.alt }}" |
|
@ -16,12 +16,12 @@ |
|
|
<img class="{{ .class | default "fill-wh"}}" |
|
|
<img class="{{ .class | default "fill-wh"}}" |
|
|
{{ with .context.Resources.GetMatch .context.Params.featured.url }} |
|
|
{{ with .context.Resources.GetMatch .context.Params.featured.url }} |
|
|
srcset=" |
|
|
srcset=" |
|
|
{{ (.Resize "320x q30").RelPermalink }} 320w, |
|
|
{{ (.Resize "420x q50").RelPermalink }} 420w, |
|
|
{{ (.Resize "600x q40").RelPermalink }} 600w, |
|
|
{{ (.Resize "700x q65").RelPermalink }} 700w, |
|
|
{{ (.Resize "1200x q65").RelPermalink }} 1200w" |
|
|
{{ (.Resize "1200x q65").RelPermalink }} 1200w" |
|
|
sizes="(max-width: 400px) 320vw, |
|
|
sizes="(max-width: 400px) 420px, |
|
|
(max-width: 1000px) 600vw, |
|
|
(max-width: 1000px) 700px, |
|
|
1200vw" |
|
|
1200px" |
|
|
src="{{ .RelPermalink }}" |
|
|
src="{{ .RelPermalink }}" |
|
|
alt="{{ .Params.alt }}" |
|
|
alt="{{ .Params.alt }}" |
|
|
{{ end }} |
|
|
{{ end }} |
|
|