Skip to content

Commit

Permalink
try fix background image ssg
Browse files Browse the repository at this point in the history
  • Loading branch information
djay committed Nov 28, 2024
1 parent da1b3cb commit 278f275
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/nuxt-blog-starter/composables/optimise-image.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const useOptimizeImage = () => {
.split(', ')
.filter(
(imgUrl) => imgUrl.endsWith('768w') || imgUrl.endsWith('2560w'),
)
).map( (imgUrl) => imgUrl.split(" ")[0])
})

const responsiveImageSrc = `url("${responsiveImages.value[0]}")`
Expand Down

0 comments on commit 278f275

Please sign in to comment.