From 245aab57086b1f23211da9b3cde7c84c552ad5ea Mon Sep 17 00:00:00 2001
From: hbrain
Date: Thu, 11 Jun 2026 20:38:55 +0200
Subject: [PATCH] Keywords subscribe, contact, journal, postcard in teaser
marked as link to contact.php in new tab
---
bin/generate_data.sh | 2 +-
index.php | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/bin/generate_data.sh b/bin/generate_data.sh
index ae1ef57..53413d2 100755
--- a/bin/generate_data.sh
+++ b/bin/generate_data.sh
@@ -211,7 +211,7 @@ Content rules:
- Roasting is allowed.
- Profanity is allowed only if it fits the selected personality.
- Do not invent specific facts that are not visible or provided.
-- Description MUST contain at least one of the following words (preferably more): subscribe, contact, postcard, journal. It's ok to use the same word mutliple times.
+- Description or teaser MUST contain at least one of the following words (preferably more): subscribe, contact, postcard, journal. It's ok to use the same word mutliple times.
JSON rules:
- Output JSON only.
diff --git a/index.php b/index.php
index 9e49390..f609b15 100644
--- a/index.php
+++ b/index.php
@@ -517,7 +517,7 @@ $siteHeaderTitle = $headerTitles[array_rand($headerTitles)];
=h($m['date'])?>
=h($m['location'])?>
- =h((string)$m['teaser'])?>
+ =render_description_html($m['teaser'])?>
@@ -535,7 +535,7 @@ $siteHeaderTitle = $headerTitles[array_rand($headerTitles)];
=h($m['date'])?>
=h($m['location'])?>
-
=h((string)$m['teaser'])?>
+
=render_description_html($m['teaser'])?>
=render_description_html($m['description'])?>
“=h(trim((string)$m['quote_da'], "\"“”"))?>”