fix: strip existing extension from post.image before appending .webp
This commit is contained in:
+1
-1
@@ -3194,7 +3194,7 @@
|
||||
return [
|
||||
'<div class="news-card">',
|
||||
post.image ? '<img class="news-card-image" src="https://my-biz.app/content/images/blog/' +
|
||||
post.image +
|
||||
post.image.replace(/\.[^.]+$/, '') +
|
||||
'.webp" alt="' +
|
||||
post.title.replace(/"/g, """) +
|
||||
'">' : '',
|
||||
|
||||
Reference in New Issue
Block a user