Compare commits

2 Commits

Author SHA1 Message Date
oliver 77aaa9989e fix: strip existing extension from post.image before appending .webp 2026-05-03 07:43:25 -03:00
oliver c5a862f7ba Update posts.json 2026-05-03 07:35:50 -03:00
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -3192,9 +3192,9 @@
function postMarkup(post, index) { function postMarkup(post, index) {
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;") +
'">' : '', '">' : '',
+1 -1
View File
File diff suppressed because one or more lines are too long