mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
[ci] format
This commit is contained in:
parent
b2ae9ee0c4
commit
a964a14172
1 changed files with 4 additions and 2 deletions
|
@ -48,8 +48,10 @@ if (fallbackImage.srcSet.values.length > 0) {
|
||||||
{
|
{
|
||||||
Object.entries(optimizedImages).map(([_, image]) => (
|
Object.entries(optimizedImages).map(([_, image]) => (
|
||||||
<source
|
<source
|
||||||
srcset={`${image.src}${image.srcSet.values.length > 0 ? ' , ' + image.srcSet.attribute : ''}`}
|
srcset={`${image.src}${
|
||||||
type={"image/" + image.options.format}
|
image.srcSet.values.length > 0 ? ' , ' + image.srcSet.attribute : ''
|
||||||
|
}`}
|
||||||
|
type={'image/' + image.options.format}
|
||||||
/>
|
/>
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue