Skip to content

Commit

Permalink
meta: update comments shortcodes + partials
Browse files Browse the repository at this point in the history
  • Loading branch information
h-enk committed Jan 30, 2024
1 parent 69e5a25 commit e5881ed
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 12 deletions.
4 changes: 4 additions & 0 deletions assets/scss/components/_images.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ img {
height: auto;
}

img[data-sizes="auto"] {
display: block;
}

img, picture {
font-size: 0;
}
Expand Down
6 changes: 4 additions & 2 deletions layouts/partials/figure.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@
@contect {int} [width] The display width of the image, in pixels, falling back to 100% of the viewport width.
@context {string} [sizes] = "" # "100vw", "75vw", or "auto" for example
@context {string slice} [formats] A slice of image formats, ordered by precedence, to use when creating images for the srcset attribute of each source element.
@context {string} [process] = "" # "fill 1680x720" for example
@context {string} [process] = "" # "fill 1600x900" for example
@context {string} [lqip] = "" # "16x webp q20" or "21x webp q20" for example
@context {string} [decoding] The img element's decoding attribute.
@context {string} [fetchpriority] The img element's fetchpriority attribute.
@context {string} [loading] The img element's loading attribute.
Expand All @@ -84,7 +85,8 @@
"width" 768
"sizes" "auto"
"formats" (slice "webp" "jpeg")
"process" "fill 1680x720"
"process" "fill 1600x900"
"lqip" "16x webp q20"
"decoding" "async"
"fetchpriority" "auto"
"loading" "eager"
Expand Down
6 changes: 4 additions & 2 deletions layouts/partials/img.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@
@contect {int} [width] The display width of the image, in pixels, falling back to 100% of the viewport width.
@context {string} [sizes] = "" # "100vw", "75vw", or "auto" for example
@context {string slice} [formats] A slice of image formats, ordered by precedence, to use when creating images for the srcset attribute of each source element.
@context {string} [process] = "" # "fill 1680x720" for example
@context {string} [process] = "" # "fill 1600x900" for example
@context {string} [lqip] = "" # "16x webp q20" or "21x webp q20" for example
@context {string} [decoding] The img element's decoding attribute.
@context {string} [fetchpriority] The img element's fetchpriority attribute.
@context {string} [loading] The img element's loading attribute.
Expand All @@ -83,7 +84,8 @@
"width" 768
"sizes" "auto"
"formats" (slice "webp" "jpeg")
"process" "fill 1680x720"
"process" "fill 1600x900"
"lqip" "16x webp q20"
"decoding" "async"
"fetchpriority" "auto"
"loading" "eager"
Expand Down
6 changes: 4 additions & 2 deletions layouts/partials/picture.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@
@contect {int} [width] The display width of the image, in pixels, falling back to 100% of the viewport width.
@context {string} [sizes] = "" # "100vw", "75vw", or "auto" for example
@context {string slice} [formats] A slice of image formats, ordered by precedence, to use when creating images for the srcset attribute of each source element.
@context {string} [process] = "" # "fill 1680x720" for example
@context {string} [process] = "" # "fill 1600x900" for example
@context {string} [lqip] = "" # "16x webp q20" or "21x webp q20" for example
@context {string} [decoding] The img element's decoding attribute.
@context {string} [fetchpriority] The img element's fetchpriority attribute.
@context {string} [loading] The img element's loading attribute.
Expand All @@ -83,7 +84,8 @@
"width" 768
"sizes" "auto"
"formats" (slice "webp" "jpeg")
"process" "fill 1680x720"
"process" "fill 1600x900"
"lqip" "16x webp q20"
"decoding" "async"
"fetchpriority" "auto"
"loading" "eager"
Expand Down
6 changes: 4 additions & 2 deletions layouts/shortcodes/figure.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@
@param {int} [width] The display width of the image, in pixels, falling back to 100% of the viewport width.
@param {string} [sizes] = "" # "100vw", "75vw", or "auto" for example
@param {string slice} [formats] A slice of image formats, ordered by precedence, to use when creating images for the srcset attribute of each source element.
@param {string} [process] = "" # "fill 1680x720" for example
@param {string} [process] = "" # "fill 1600x900" for example
@param {string} [lqip] = "" # "16x webp q20" or "21x webp q20" for example
@param {string} [decoding] The img element's decoding attribute.
@param {string} [fetchpriority] The img element's fetchpriority attribute.
@param {string} [loading] The img element's loading attribute.
Expand All @@ -97,7 +98,8 @@
width=768
sizes="75w"
formats="webp, jpeg"
process="fill 1680x720"
process="fill 1600x900"
lqip="16x webp q20"
decoding="async"
fetchpriority="auto"
loading="eager"
Expand Down
6 changes: 4 additions & 2 deletions layouts/shortcodes/img.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@
@param {int} [width] The display width of the image, in pixels, falling back to 100% of the viewport width.
@param {string} [sizes] = "" # "100vw", "75vw", or "auto" for example
@param {string slice} [formats] A slice of image formats, ordered by precedence, to use when creating images for the srcset attribute of each source element.
@param {string} [process] = "" # "fill 1680x720" for example
@param {string} [process] = "" # "fill 1600x900" for example
@param {string} [lqip] = "" # "16x webp q20" or "21x webp q20" for example
@param {string} [decoding] The img element's decoding attribute.
@param {string} [fetchpriority] The img element's fetchpriority attribute.
@param {string} [loading] The img element's loading attribute.
Expand All @@ -96,7 +97,8 @@
width=768
sizes="75w"
formats="webp, jpeg"
process="fill 1680x720"
process="fill 1600x900"
lqip="16x webp q20"
decoding="async"
fetchpriority="auto"
loading="eager"
Expand Down
6 changes: 4 additions & 2 deletions layouts/shortcodes/picture.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@
@param {int} [width] The display width of the image, in pixels, falling back to 100% of the viewport width.
@param {string} [sizes] = "" # "100vw", "75vw", or "auto" for example
@param {string slice} [formats] A slice of image formats, ordered by precedence, to use when creating images for the srcset attribute of each source element.
@param {string} [process] = "" # "fill 1680x720" for example
@param {string} [process] = "" # "fill 1600x900" for example
@param {string} [lqip] = "" # "16x webp q20" or "21x webp q20" for example
@param {string} [decoding] The img element's decoding attribute.
@param {string} [fetchpriority] The img element's fetchpriority attribute.
@param {string} [loading] The img element's loading attribute.
Expand All @@ -96,7 +97,8 @@
width=768
sizes="75w"
formats="webp, jpeg"
process="fill 1680x720"
process="fill 1600x900"
lqip="16x webp q20"
decoding="async"
fetchpriority="auto"
loading="eager"
Expand Down

0 comments on commit e5881ed

Please sign in to comment.