commit 23e329b1120dd280be935e850fcb9102f7c4b57c
parent 4ab02c26a8837d408dc26c3c1fb020526164c60c
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date: Fri, 31 May 2024 21:47:20 +0200
adjust layout
Diffstat:
2 files changed, 22 insertions(+), 21 deletions(-)
diff --git a/config.yaml b/config.yaml
@@ -12,7 +12,7 @@ page:
feed:
file: atom.xml
format: Atom
-# cache_dir: /tmp/newsplanet
+cache_dir: /tmp/newsplanet
feeds:
- url: https://www.tagesschau.de/index~rss2.xml
title: Tagesschau
diff --git a/template.html b/template.html
@@ -23,9 +23,9 @@
img { display: none; }
br { display: none; }
/*img, iframe { height: auto; width: 100%; margin-top: 1em; margin-bottom: 1em; border: 0; }*/
- /*a[href^="https"]:not([href*="news.jayvii.de"])::after {
- content: "︎\2197";
- }*/
+ a[href^="https"]::after {
+ content: "\2197";
+ }
@media(prefers-color-scheme:dark){
:root{
--theme: rgb(29, 30, 32);
@@ -55,25 +55,26 @@
<main class="main">
<h1>[% feed.title | html %]</h1>
- <p>[% feed.description | html %]</p>
+ <p style="margin-bottom:5em;">[% feed.description | html %]</p>
[% FOREACH entry IN feed.entries %]
- <a href="[% entry.link | url | html %]" class="hyperlink">
- <article class='post-entry'>
- <h2>[% entry.title | html %]</h2>
- [% IF entry.summary.body %]
- [% entry.summary.body %]
- [% ELSE %]
- [% entry.content.body %]
- [% END %]
- [% IF entry.author OR entry.issued %]
- <p>
- Published[% IF entry.author %] by [% entry.author | html; END %]
- [% IF entry.issued %] on [% entry.issued | html; END %]
- </p>
- [% END %]
- </article>
- </a>
+ <article class='post-entry'>
+ <h2><a href="[% entry.link | url | html %]" class="hyperlink">[% entry.title | html %]</a></h2>
+ <p style="margin-top:2em;">
+ [% IF entry.summary.body %]
+ [% entry.summary.body %]
+ [% ELSE %]
+ [% entry.content.body %]
+ [% END %]
+ </p>
+ [% IF entry.author OR entry.issued %]
+ <strong style="margin-top:2em;">
+ Published
+ [% IF entry.author %] by [% entry.author | html; END %]
+ [% IF entry.issued %] on [% entry.issued | html; END %]
+ </strong>
+ [% END %]
+ </article>
[% END %]
</main>