From d518ad2ae402ca4093a1b796fd77988ba247acd5 Mon Sep 17 00:00:00 2001 From: oliver Date: Sun, 3 May 2026 05:10:29 -0300 Subject: [PATCH] fix: align blog renderer field names with posts.json schema --- index.html | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/index.html b/index.html index 53c24a2..e5073b7 100644 --- a/index.html +++ b/index.html @@ -2858,24 +2858,23 @@ function postMarkup(post) { return [ - '', - '', + post.image ? '' +
-                            post.headline.replace(/', + post.title.replace(/"/g, """) + + '">' : '', '
', "
", - '
' + post.vertical + "
", - '

' + post.headline + "

", - '

' + post.shortText + "

", + '
' + post.area + "
", + '

' + post.title + "

", + '

' + post.teaser + "

", '' + formatDate(post.date) + "", "
", - 'Read article →', "
", - "
", + "", ].join(""); } @@ -2921,9 +2920,9 @@ filteredPosts = allPosts.filter(function (post) { if (!term) return true; var haystack = [ - post.headline, - post.vertical, - post.shortText, + post.title, + post.area, + post.teaser, ] .join(" ") .toLowerCase();