fix: strip existing extension from post.image before appending .webp

This commit is contained in:
oliver
2026-05-03 07:43:25 -03:00
parent c5a862f7ba
commit 77aaa9989e
+1 -1
View File
@@ -3194,7 +3194,7 @@
return [ return [
'<div class="news-card">', '<div class="news-card">',
post.image ? '<img class="news-card-image" src="https://my-biz.app/content/images/blog/' + post.image ? '<img class="news-card-image" src="https://my-biz.app/content/images/blog/' +
post.image + post.image.replace(/\.[^.]+$/, '') +
'.webp" alt="' + '.webp" alt="' +
post.title.replace(/"/g, "&quot;") + post.title.replace(/"/g, "&quot;") +
'">' : '', '">' : '',