pub / kontra

Der linke Newsaggregator.
git clone src.jayvii.de/pub/kontra.git
Home | Log | Files | Exports | Refs | README | RSS

commit d361878324250c286afb85ea7fd73d48c510b9b4
parent 530ea6a9b46d3b4e1ee1df4d123c114d0749b2a9
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Sat, 19 Jul 2025 11:51:04 +0200

fix: use correct titles for OPML export

Diffstat:
Mindex.php | 8++++++--
Mnews-sources.json | 5+++--
2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/index.php b/index.php @@ -57,6 +57,10 @@ ); foreach ($sources as $source) { + /* Construct title */ + $title = $config["publisher"][$source["publisher"][0]]["name"] . + ": " . $source["title"]; + /* Create category list */ $categories = array(); foreach ($indexes as $index) { @@ -71,8 +75,8 @@ ?> <outline - title="<?php echo $source["title"]; ?>" - text="<?php echo $source["title"]; ?>" + title="<?php echo $title; ?>" + text="<?php echo $title; ?>" category="<?php echo implode(",", $categories); ?>" xmlUrl="<?php echo $source["rss"]; ?>" htmlUrl="<?php echo $source["web"]; ?>" diff --git a/news-sources.json b/news-sources.json @@ -27,7 +27,7 @@ ] }, "jungleworld": { - "title": "Jungle World", + "title": "Alle Artikel", "publisher": [ "jw" ], @@ -4026,4 +4026,4 @@ "description": "Wissenschaft und Forschung" } } -} +} +\ No newline at end of file