commit b9eebac7fe5d512a43bc3866b1ff9d9b0faef6d0
parent 9d6b13416539cecf9a4add1ffcbf54f6d5870016
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date: Sun, 1 Dec 2024 12:43:07 +0100
feat: rename feeds and add index page
Diffstat:
M | .gitignore | | | 8 | ++++---- |
A | centre.json | | | 61 | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
A | centre.yaml | | | 61 | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
D | general.yaml | | | 61 | ------------------------------------------------------------- |
A | index.html | | | 96 | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
A | left.json | | | 61 | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
A | left.yaml | | | 42 | ++++++++++++++++++++++++++++++++++++++++++ |
D | links.json | | | 61 | ------------------------------------------------------------- |
D | links.yaml | | | 42 | ------------------------------------------ |
R | general.json -> manifest.json | | | 0 | |
M | run.sh | | | 2 | +- |
M | template.html | | | 10 | +++++----- |
12 files changed, 331 insertions(+), 174 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -1,7 +1,7 @@
-index.html
-index.xml
-links.html
-links.xml
+left.html
+left.xml
+centre.html
+centre.xml
atom.xml
rss.xml
opml.xml
diff --git a/centre.json b/centre.json
@@ -0,0 +1,61 @@
+{
+ "name":"Newsplanet (Centre)",
+ "short_name":"News: Centre",
+ "start_url":"/centre.html",
+ "display":"standalone",
+ "scope":"/centre.html",
+ "background_color":"#1d1e20",
+ "description":"Planet-style news feed.",
+ "icons":[
+ {
+ "src":"/assets/favicon_16.png",
+ "sizes":"16x16",
+ "type":"image/png"
+ },
+ {
+ "src":"/assets/favicon_32.png",
+ "sizes":"32x32",
+ "type":"image/png"
+ },
+ {
+ "src":"/assets/favicon_48.png",
+ "sizes":"48x48",
+ "type":"image/png"
+ },
+ {
+ "src":"/assets/favicon_64.png",
+ "sizes":"64x64",
+ "type":"image/png"
+ },
+ {
+ "src":"/assets/favicon_72.png",
+ "sizes":"72x72",
+ "type":"image/png"
+ },
+ {
+ "src":"/assets/favicon_96.png",
+ "sizes":"96x96",
+ "type":"image/png"
+ },
+ {
+ "src":"/assets/favicon_144.png",
+ "sizes":"144x144",
+ "type":"image/png"
+ },
+ {
+ "src":"/assets/favicon_168.png",
+ "sizes":"168x168",
+ "type":"image/png"
+ },
+ {
+ "src":"/assets/favicon_192.png",
+ "sizes":"192x192",
+ "type":"image/png"
+ },
+ {
+ "src":"/assets/favicon_256.png",
+ "sizes":"256x256",
+ "type":"image/png"
+ }
+ ]
+}
diff --git a/centre.yaml b/centre.yaml
@@ -0,0 +1,61 @@
+title: Newsplanet
+description: Planet-style news feed
+url: https://news.jayvii.de
+entries: 5000
+entries_per_feed: 10
+entries_sort_order: "issued"
+author:
+ name: JayVii
+ email: jayvii+newsplanet[AT]posteo[DOT]de
+opml: opml.xml
+page:
+ file: centre.html
+ template: template.html
+feed:
+ file: centre.xml
+ format: RSS
+cache_dir: /tmp/newsplanet/centre
+feeds:
+ - title: Tagesschau (Inland)
+ url: https://www.tagesschau.de/inland/index~rss2.xml
+ web: https://www.tagesschau.de/inland
+ - title: Tagesschau (Ausland)
+ url: https://www.tagesschau.de/ausland/index~rss2.xml
+ web: https://www.tagesschau.de/ausland
+ - title: Tagesschau (Wirtschaft)
+ url: https://www.tagesschau.de/wirtschaft/index~rss2.xml
+ web: https://www.tagesschau.de/wirtschaft
+ - title: Deutschlandfunk (Politik)
+ url: https://www.deutschlandfunk.de/politikportal-100.rss
+ web: https://www.deutschlandfunk.de/politikportal-100.html
+ - title: Deutschlandfunk Kultur (Politik)
+ url: https://www.deutschlandfunkkultur.de/politik-114.rss
+ web: https://www.deutschlandfunkkultur.de/politik-114.html
+ - title: Deutschlandfunk (Wirtschaft)
+ url: https://www.deutschlandfunk.de/wirtschaft-106.rss
+ web: https://www.deutschlandfunk.de/wirtschaft-106.html
+ - title: Deutschlandfunk (Presseschauen)
+ url: https://www.deutschlandfunk.de/presseschauen-100.rss
+ web: https://www.deutschlandfunk.de/presseschauen-100.html
+ - title: Süddeutsche Zeitung (Politik)
+ url: https://rss.sueddeutsche.de/rss/Politik
+ web: https://sueddeutsche.de/politik
+ - title: Süddeutsche Zeitung (Wirtschaft)
+ url: https://rss.sueddeutsche.de/rss/Wirtschaft
+ web: https://sueddeutsche.de/wirtschaft
+ - title: Der Standard (Deutschland)
+ url: https://www.derstandard.de/rss/deutschland
+ web: https://www.derstandard.de/deutschland
+ - title: ZEIT Online (Politik)
+ url: https://newsfeed.zeit.de/politik/index
+ web: https://zeit.de/politik
+ - title: ZEIT Online (Wirtschaft)
+ url: https://newsfeed.zeit.de/wirtschaft/index
+ web: https://zeit.de/wirtschaft
+ - title: RND (Wirtschaft)
+ url: https://www.rnd.de/arc/outboundfeeds/rss/category/wirtschaft/
+ web: https://www.rnd.de/wirtschaft/
+ - title: RND (Politik)
+ url: https://www.rnd.de/arc/outboundfeeds/rss/category/politik/
+ web: https://www.rnd.de/politik/
+
diff --git a/general.yaml b/general.yaml
@@ -1,61 +0,0 @@
-title: Newsplanet
-description: Planet-style news feed
-url: https://news.jayvii.de
-entries: 5000
-entries_per_feed: 10
-entries_sort_order: "issued"
-author:
- name: JayVii
- email: jayvii+newsplanet[AT]posteo[DOT]de
-opml: opml.xml
-page:
- file: index.html
- template: template.html
-feed:
- file: index.xml
- format: RSS
-cache_dir: /tmp/newsplanet/general
-feeds:
- - title: Tagesschau (Inland)
- url: https://www.tagesschau.de/inland/index~rss2.xml
- web: https://www.tagesschau.de/inland
- - title: Tagesschau (Ausland)
- url: https://www.tagesschau.de/ausland/index~rss2.xml
- web: https://www.tagesschau.de/ausland
- - title: Tagesschau (Wirtschaft)
- url: https://www.tagesschau.de/wirtschaft/index~rss2.xml
- web: https://www.tagesschau.de/wirtschaft
- - title: Deutschlandfunk (Politik)
- url: https://www.deutschlandfunk.de/politikportal-100.rss
- web: https://www.deutschlandfunk.de/politikportal-100.html
- - title: Deutschlandfunk Kultur (Politik)
- url: https://www.deutschlandfunkkultur.de/politik-114.rss
- web: https://www.deutschlandfunkkultur.de/politik-114.html
- - title: Deutschlandfunk (Wirtschaft)
- url: https://www.deutschlandfunk.de/wirtschaft-106.rss
- web: https://www.deutschlandfunk.de/wirtschaft-106.html
- - title: Deutschlandfunk (Presseschauen)
- url: https://www.deutschlandfunk.de/presseschauen-100.rss
- web: https://www.deutschlandfunk.de/presseschauen-100.html
- - title: Süddeutsche Zeitung (Politik)
- url: https://rss.sueddeutsche.de/rss/Politik
- web: https://sueddeutsche.de/politik
- - title: Süddeutsche Zeitung (Wirtschaft)
- url: https://rss.sueddeutsche.de/rss/Wirtschaft
- web: https://sueddeutsche.de/wirtschaft
- - title: Der Standard (Deutschland)
- url: https://www.derstandard.de/rss/deutschland
- web: https://www.derstandard.de/deutschland
- - title: ZEIT Online (Politik)
- url: https://newsfeed.zeit.de/politik/index
- web: https://zeit.de/politik
- - title: ZEIT Online (Wirtschaft)
- url: https://newsfeed.zeit.de/wirtschaft/index
- web: https://zeit.de/wirtschaft
- - title: RND (Wirtschaft)
- url: https://www.rnd.de/arc/outboundfeeds/rss/category/wirtschaft/
- web: https://www.rnd.de/wirtschaft/
- - title: RND (Politik)
- url: https://www.rnd.de/arc/outboundfeeds/rss/category/politik/
- web: https://www.rnd.de/politik/
-
diff --git a/index.html b/index.html
@@ -0,0 +1,96 @@
+<!-- SPDX-License-Identifier: AGPL-3.0-or-later
+ SPDX-FileCopyrightText: 2021-2024 JayVii <jayvii[AT]posteo[DOT]de>
+-->
+
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <title>Newsplanet - Planet-style newsfeed</title>
+ <meta name="description" content="Planet-style newsfeed">
+ <link rel="icon" type="image/png" href="assets/favicon.png">
+ <link rel="icon" type="image/png" sizes="16x16" href="assets/favicon_16.png">
+ <link rel="icon" type="image/png" sizes="32x32" href="assets/favicon_32.png">
+ <link rel="icon" type="image/png" sizes="64x64" href="assets/favicon_64.png">
+ <link rel="icon" type="image/png" sizes="128x128" href="assets/favicon_128.png">
+ <link rel="apple-touch-icon" href="assets/favicon.png">
+ <link rel="stylesheet" type="text/css" href="assets/css/simple.min.css">
+ <link rel="alternate" title="[%feed.title %]" type="application/atom+xml" href="rss.xml">
+ <link crossorigin="use-credentials" rel="manifest" href="manifest.json">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <style>
+ /* Always scroll smoothly */
+ * {
+ scroll-behavior: smooth;
+ }
+ /* Hide linebreaks inside articles */
+ section > br,
+ section > p > br
+ {
+ display: none;
+ }
+ /* Only show first paragraph of article content (typically the summary) */
+ .article_content > *:nth-child(n + 2) {
+ display: none;
+ }
+ .article_content {
+ margin-bottom: 1.5em;
+ }
+ /* Content should not be weighted */
+ .article_content > strong {
+ font-weight: normal;
+ }
+ /* Hide iframes and images in case they are not filtered out */
+ .article_content > iframe,
+ .article_content > img,
+ .article_content > * > img,
+ .article_content > * > iframe
+ {
+ display: none;
+ }
+ /* Rules for buttons row */
+ .button-row {
+ width: 100%;
+ display: flex;
+ }
+ .button-row > .button {
+ display: inline-flex;
+ margin-left: 5px;
+ margin-right: 5px;
+ max-height: 50px;
+ }
+ a.button > img {
+ height: 30px;
+ width: auto;
+ }
+ </style>
+ </head>
+
+ <body>
+
+ <header>
+ <nav>
+ <!-- Privacy Policy -->
+ <a
+ href="https://www.jayvii.de/privacy/#newsjayviide"
+ >
+ Privacy
+ </a>
+ </nav>
+ <!-- Feed Title -->
+ <h1>Newsplanet</h1>
+ </header>
+
+ <main>
+
+ <div class="button-row">
+ <div style="margin-left:auto;margin-right:auto;">
+ <a href="./left.html" class="button">Left</a>
+ <a href="./centre.html" class="button">Centre</a>
+ </div>
+ </div>
+
+ </main>
+ </body>
+</html>
diff --git a/left.json b/left.json
@@ -0,0 +1,61 @@
+{
+ "name":"Newsplanet (Left)",
+ "short_name":"News: Left",
+ "start_url":"/left.html",
+ "display":"standalone",
+ "scope":"/left.html",
+ "background_color":"#1d1e20",
+ "description":"Planet-style news feed.",
+ "icons":[
+ {
+ "src":"/assets/favicon_16.png",
+ "sizes":"16x16",
+ "type":"image/png"
+ },
+ {
+ "src":"/assets/favicon_32.png",
+ "sizes":"32x32",
+ "type":"image/png"
+ },
+ {
+ "src":"/assets/favicon_48.png",
+ "sizes":"48x48",
+ "type":"image/png"
+ },
+ {
+ "src":"/assets/favicon_64.png",
+ "sizes":"64x64",
+ "type":"image/png"
+ },
+ {
+ "src":"/assets/favicon_72.png",
+ "sizes":"72x72",
+ "type":"image/png"
+ },
+ {
+ "src":"/assets/favicon_96.png",
+ "sizes":"96x96",
+ "type":"image/png"
+ },
+ {
+ "src":"/assets/favicon_144.png",
+ "sizes":"144x144",
+ "type":"image/png"
+ },
+ {
+ "src":"/assets/favicon_168.png",
+ "sizes":"168x168",
+ "type":"image/png"
+ },
+ {
+ "src":"/assets/favicon_192.png",
+ "sizes":"192x192",
+ "type":"image/png"
+ },
+ {
+ "src":"/assets/favicon_256.png",
+ "sizes":"256x256",
+ "type":"image/png"
+ }
+ ]
+}
diff --git a/left.yaml b/left.yaml
@@ -0,0 +1,42 @@
+title: Newsplanet (Left)
+description: Planet-style news feed
+url: https://news.jayvii.de
+entries: 5000
+entries_per_feed: 20
+entries_sort_order: "issued"
+author:
+ name: JayVii
+ email: jayvii+newsplanet[AT]posteo[DOT]de
+opml: opml.xml
+page:
+ file: left.html
+ template: template.html
+feed:
+ file: left.xml
+ format: RSS
+cache_dir: /tmp/newsplanet/left
+feeds:
+ - title: Taz (Politik)
+ url: https://taz.de/Politik/!p4615;rss/
+ web: https://taz.de/Politik/!p4615/
+ - title: Taz (Ökonomie)
+ url: https://taz.de/Oeko/Oekonomie/!p4623;rss/
+ web: https://taz.de/Oeko/Oekonomie/!p4623/
+ - title: Der Freitag (Grünes Wissen)
+ url: https://www.freitag.de/gruenes-wissen/@@RSS
+ web: https://www.freitag.de/gruenes-wissen/
+ - title: Der Freitag (Politik)
+ url: https://www.freitag.de/politik/@@RSS
+ web: https://www.freitag.de/politik/
+ - title: Der Freitag (Wirtschaft)
+ url: https://www.freitag.de/wirtschaft/@@RSS
+ web: https://www.freitag.de/wirtschaft/
+ - title: nd (Aktuell)
+ url: https://www.nd-aktuell.de/rss/aktuell.php
+ web: https://www.nd-aktuell.de/
+ - title: junge Welt (Kapital und Arbeit)
+ url: https://www.jungewelt.de/feeds/kapital_arbeit.xml
+ web: https://www.jungewelt.de/aktuell/rubrik/kapital_und_arbeit.php
+ - title: junge Welt (Inland)
+ url: https://www.jungewelt.de/feeds/inland.xml
+ web: https://www.jungewelt.de/aktuell/rubrik/inland.php
diff --git a/links.json b/links.json
@@ -1,61 +0,0 @@
-{
- "name":"Newsplanet (Links)",
- "short_name":"News: Links",
- "start_url":"/links.html",
- "display":"standalone",
- "scope":"/links.html",
- "background_color":"#1d1e20",
- "description":"Planet-style news feed.",
- "icons":[
- {
- "src":"/assets/favicon_16.png",
- "sizes":"16x16",
- "type":"image/png"
- },
- {
- "src":"/assets/favicon_32.png",
- "sizes":"32x32",
- "type":"image/png"
- },
- {
- "src":"/assets/favicon_48.png",
- "sizes":"48x48",
- "type":"image/png"
- },
- {
- "src":"/assets/favicon_64.png",
- "sizes":"64x64",
- "type":"image/png"
- },
- {
- "src":"/assets/favicon_72.png",
- "sizes":"72x72",
- "type":"image/png"
- },
- {
- "src":"/assets/favicon_96.png",
- "sizes":"96x96",
- "type":"image/png"
- },
- {
- "src":"/assets/favicon_144.png",
- "sizes":"144x144",
- "type":"image/png"
- },
- {
- "src":"/assets/favicon_168.png",
- "sizes":"168x168",
- "type":"image/png"
- },
- {
- "src":"/assets/favicon_192.png",
- "sizes":"192x192",
- "type":"image/png"
- },
- {
- "src":"/assets/favicon_256.png",
- "sizes":"256x256",
- "type":"image/png"
- }
- ]
-}
diff --git a/links.yaml b/links.yaml
@@ -1,42 +0,0 @@
-title: Newsplanet (Links)
-description: Planet-style news feed
-url: https://news.jayvii.de
-entries: 5000
-entries_per_feed: 20
-entries_sort_order: "issued"
-author:
- name: JayVii
- email: jayvii+newsplanet[AT]posteo[DOT]de
-opml: opml.xml
-page:
- file: links.html
- template: template.html
-feed:
- file: links.xml
- format: RSS
-cache_dir: /tmp/newsplanet/links
-feeds:
- - title: Taz (Politik)
- url: https://taz.de/Politik/!p4615;rss/
- web: https://taz.de/Politik/!p4615/
- - title: Taz (Ökonomie)
- url: https://taz.de/Oeko/Oekonomie/!p4623;rss/
- web: https://taz.de/Oeko/Oekonomie/!p4623/
- - title: Der Freitag (Grünes Wissen)
- url: https://www.freitag.de/gruenes-wissen/@@RSS
- web: https://www.freitag.de/gruenes-wissen/
- - title: Der Freitag (Politik)
- url: https://www.freitag.de/politik/@@RSS
- web: https://www.freitag.de/politik/
- - title: Der Freitag (Wirtschaft)
- url: https://www.freitag.de/wirtschaft/@@RSS
- web: https://www.freitag.de/wirtschaft/
- - title: nd (Aktuell)
- url: https://www.nd-aktuell.de/rss/aktuell.php
- web: https://www.nd-aktuell.de/
- - title: junge Welt (Kapital und Arbeit)
- url: https://www.jungewelt.de/feeds/kapital_arbeit.xml
- web: https://www.jungewelt.de/aktuell/rubrik/kapital_und_arbeit.php
- - title: junge Welt (Inland)
- url: https://www.jungewelt.de/feeds/inland.xml
- web: https://www.jungewelt.de/aktuell/rubrik/inland.php
diff --git a/general.json b/manifest.json
diff --git a/run.sh b/run.sh
@@ -2,7 +2,7 @@
# fetch input config file, fall back to "general"
if [ -z $1 ]; then
- CONFIG="general.yaml"
+ CONFIG="centre.yaml"
else
CONFIG="$1"
fi
diff --git a/template.html b/template.html
@@ -74,14 +74,14 @@
<header>
<nav>
- <!-- General News -->
- <a href="/">
- Main
- </a>
<!-- "Links" -->
- <a href="/links.html">
+ <a href="/left.html">
Left
</a>
+ <!-- General News -->
+ <a href="/centre.html">
+ Centre
+ </a>
<!-- RSS Button -->
<a
href=<!--XML-->