commit 8bd1275cdce1b8b2b03a5c450788e4b453a72160
parent c2cb3e73e75cae47f43985157abc5e61b1d77f67
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date: Sat, 12 Apr 2025 13:33:58 +0200
feat: add disclaimer and prettify HTML
Diffstat:
3 files changed, 67 insertions(+), 19 deletions(-)
diff --git a/index.php b/index.php
@@ -13,7 +13,9 @@
<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="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="stylesheet" type="text/css" href="assets/css/custom.css">
@@ -42,8 +44,12 @@
<main>
<p>
- Planet-Style Newsfeed generated with
- <a href="https://github.com/davorg-cpan/perlanet/" target="_blank">perlanet</a>.
+ <em>Newsplanet</em> is a news aggregator combining news from various
+ sources and places into simple and distraction free feeds. All feeds are
+ generated using the Free and Open Source
+ <a href="https://github.com/davorg-cpan/perlanet/" target="_blank">
+ perlanet
+ </a>.
</p>
<table>
@@ -62,14 +68,27 @@
<tr>
<th><?php echo $title; ?></th>
<td><?php echo $desc; ?></td>
- <td><a href="<?php echo $url; ?>" class="button">Open</a></td>
+ <td><a href="<?php echo $url; ?>" class="button" rel="nofollow">
+ Open
+ </a></td>
</tr>
<?php
}
?>
- </table>
+ </table><br>
+
+ <h4>Disclaimer:</h4>
+ <p>
+ The news headlines, content or attitudes of the editors and authors of the
+ news outlets, blogs and newspapers featured here do not necessarily
+ reflect the opinions and attitudes of the operators of this
+ <em>Newsplanet</em> instance and this website. <em>Newsplanet</em> is a
+ news aggregator that brings together content from many different sources,
+ but has no influence on the editorial content directly.
+ </p>
+
</main>
</body>
</html>
diff --git a/templates/index.tt b/templates/index.tt
@@ -13,15 +13,27 @@
<meta name="author" content="[% feed.author %]">
[% END %]
<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="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="stylesheet" type="text/css" href="assets/css/custom.css">
- <link rel="alternate" title="[%feed.title %]" type="application/atom+xml" href="<!--XML-->">
- <link rel="alternate" title="[%feed.title %]" type="application/opml+xml" href="<!--OPML-->">
+ <link rel="alternate" title="[%feed.title %]" type="application/atom+xml"
+ href="<!--XML-->"
+ />
+ <link rel="alternate" title="[%feed.title %]" type="application/opml+xml"
+ href="<!--OPML-->"
+ />
<link crossorigin="use-credentials" rel="manifest" href="<!--MANIFEST-->">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="robots" content="noindex">
@@ -34,9 +46,15 @@
<!-- "Overview" -->
<a href="/">Overview</a>
<!-- RSS Button -->
- <a href="<!--XML-->" title="Subscribe to all these feeds via your own RSS reader">RSS</a>
+ <a
+ href="<!--XML-->"
+ title="Subscribe to all these feeds via your own RSS reader"
+ >RSS</a>
<!-- OPML Button -->
- <a href="<!--OPML-->" title="Import all these feeds into your own RSS reader">OPML</a>
+ <a
+ href="<!--OPML-->"
+ title="Import all these feeds into your own RSS reader"
+ >OPML</a>
<!-- Privacy Policy -->
<a href="https://www.jayvii.de/privacy/#newsjayviide" target="_blank">
Privacy
@@ -65,7 +83,10 @@
<section data="[% entry.issued | html %]">
<!-- Headline -->
<h3 style="margin-bottom:5px;">
- <a href="[% entry.link | url | html %]" target="_blank" rel="nofollow">
+ <a href="[% entry.link | url | html %]"
+ target="_blank"
+ rel="nofollow ugc"
+ >
[% entry.title | html %]
</a>
</h3>
diff --git a/templates/mini.tt b/templates/mini.tt
@@ -13,10 +13,18 @@
<meta name="author" content="[% feed.author %]">
[% END %]
<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="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="stylesheet" type="text/css" href="assets/css/custom.css">
@@ -43,7 +51,7 @@
<section data="[% entry.issued | html %]">
<a
target="_blank"
- rel="nofollow"
+ rel="nofollow ugc"
href="[% entry.link | url | html %]"
>
<strong>[% entry.title | html %]</strong>