Last active
March 22, 2017 16:03
-
-
Save mwickett/4373521a5deaa1a84a0dd881afbae073 to your computer and use it in GitHub Desktop.
Revisions
-
mwickett revised this gist
Mar 22, 2017 . 1 changed file with 12 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,16 @@ 'Responsive Imaage': 'prefix': 'rimg' 'body': """ picture source(type='image/webp' srcset='{{ $1 }}?fm=webp&w=2000&fit=fill 2000w, {{ $1 }}?fm=webp&w=1500&fit=fill 1500w, {{ $1 }}?fm=webp&w=900 900w, {{ $1 }}?fm=webp&w=450 450w') img(src='{{ $1 }}?fm=jpg&w=900&fit=fill' srcset='{{ $1 }}?fm=jpg&w=2000&fit=fill 2000w, {{ $1 }}?fm=jpg&w=1500&fit=fill 1500w, {{ $1 }}?fm=jpg&w=900 900w, {{ $1 }}?fm=jpg&w=450 450w' alt='{{ $2 }}') """ -
mwickett revised this gist
Mar 22, 2017 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,6 +3,6 @@ 'prefix': 'rimg' 'body': """ picture source(type='image/webp' srcset='{{ $1 }}?fm=webp&w=2000&fit=fill 2000w, {{ $1 }}?fm=webp&w=1500&fit=fill 1500w, {{ $1 }}?fm=webp&w=900&fit=fill 900w, {{ $1 }}?fm=webp&w=450&fit=fill 450w') img(src='{{ $1 }}?fm=jpg&w=900&fit=fill' srcset='{{ $1 }}?fm=jpg&w=2000&fit=fill 2000w, {{ $1 }}?fm=jpg&w=1500&fit=fill 1500w, {{ $1 }}?fm=jpg&w=900&fit=fill 900w, {{ $1 }}?fm=jpg&w=450&fit=fill 450w' alt='$2') """ -
mwickett created this gist
Mar 22, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ '.source.sugarml': 'Responsive Imaage': 'prefix': 'rimg' 'body': """ picture source(type='image/webp' srcset='{{ $1 }}fm=webp&w=2000 2000w, {{ $1 }}?fm=webp&w=1500 1500w, {{ $1 }}?fm=webp&w=900 900w, {{ $1 }}?fm=webp&w=450 450w') img(src='{{ $1 }}?fm=jpg&w=900' srcset='{{ $1 }}?fm=jpg&w=2000 2000w, {{ $1 }}?fm=jpg&w=1500 1500w, {{ $1 }}?fm=jpg&w=900 900w, {{ $1 }}?fm=jpg&w=450 450w' alt='$2') """