pub / newsplanet

Planet-Style Newsfeed generated with perlanet
git clone https://https://src.jayvii.de/pub/newsplanet.git
Home | Log | Files | Exports | Refs | README | RSS

commit ad50a5e79fb5ef7d588f977f4e6d5572fbb2a74c
parent b3a1e6de34f04b179391765f3473e46cbdcd0b8d
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Mon,  3 Jun 2024 10:54:02 +0200

Use non-atom feed output

Diffstat:
M.gitignore | 1+
Mconfig.yaml | 8+++++---
Mtemplate.html | 10+++++-----
3 files changed, 11 insertions(+), 8 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -1,3 +1,4 @@ index.html atom.xml +rss.xml opml.xml diff --git a/config.yaml b/config.yaml @@ -12,8 +12,10 @@ page: file: index.html template: template.html feed: - file: atom.xml - format: Atom + # file: atom.xml + # format: Atom + file: rss.xml + format: RSS cache_dir: /tmp/newsplanet feeds: - title: Tagesschau @@ -43,5 +45,5 @@ feeds: url: https://www.faz.net/rss/aktuell/ web: https://www.faz.net - title: Heise - url: https://heise.de/rss/heise-Rubrik-Netzpolitik-atom.xml + url: https://www.heise.de/rss/heise-Rubrik-Netzpolitik-atom.xml web: https://www.heise.de/newsticker/netzpolitik/ diff --git a/template.html b/template.html @@ -6,16 +6,17 @@ <html> <head> <meta charset="utf-8"> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>[% feed.title %] - [% feed.description %]</title> - <meta name="description" content="[% feed.description %]" /> + <meta name="description" content="[% feed.description %]"> <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/stylesheet.css"/> + <link rel="stylesheet" type="text/css" href="assets/css/stylesheet.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> @@ -27,7 +28,6 @@ h2 > a[href^="https"]::after { content: " \2197"; } - </style> <script> // Toggle Theme function @@ -61,7 +61,7 @@ <main class="main"> <h1>[% feed.title | html %] - <a href="./atom.xml"> + <a href="./rss.xml"> <!-- Copyright: 2023, Pictogrammers License: Apache-2.0 <https://www.apache.org/licenses/LICENSE-2.0> Info: https://pictogrammers.com/docs/general/license/