arthur.bebou

Le site arthur.bebou.netlib.re - retour accueil

git clone git://bebou.netlib.re/arthur.bebou
Log | Files | Refs |

commit 83c7d93d49cdf77b6a838682c2e4181746fc26a0
parent 1dc91c741677206a3c64e27d1811f09e4104572b
Auterice: Arthur Pons <arthur.pons@unistra.fr>
Date:   Wed,  5 Jun 2024 19:41:36 +0200

Flux atom valide

Diffstat:
Mlayouts/atomentry | 6+++---
Mlayouts/atomfeed | 9++++++---
2 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/layouts/atomentry b/layouts/atomentry @@ -3,8 +3,8 @@ <title>$title</title> <link href="http://arthur.bebou.netlib.re/${destfile##public/}"/> <id>http://arthur.bebou.netlib.re/$destfile</id> - <updated>$publication</updated> - <author><name>$author</name></author> - <summary>$description</summary> + <updated>$(date -d "$publication" +%Y-%m-%dT%H:%M:%SZ)</updated> + <author><name>${author:-Arthur Pons}</name></author> + <summary>${description:-Description non disponible}</summary> </entry> @@ diff --git a/layouts/atomfeed b/layouts/atomfeed @@ -2,14 +2,17 @@ layout() { <<@@ cat <?xml version="1.0" encoding="utf-8"?> <feed xmlns="http://www.w3.org/2005/Atom"> - <title>arthur.bebou.netlib.re</title> - <link href="http://arthur.bebou.netlib.re"/> + <link hreflang="fr" href="http://arthur.bebou.netlib.re/"/> + <link rel="alternate" type="text/sh" hreflang="fr" href="http://arthur.bebou.netlib.re/index.sh"/> + <link rel="alternate" type="text/term" hreflang="fr" href="http://arthur.bebou.netlib.re/index.term"/> + <link rel="alternate" type="text/md" hreflang="fr" href="http://arthur.bebou.netlib.re/index.md"/> + <link rel="self" type="application/atom+xml" href="http://arthur.bebou.netlib.re/feed.atom"/> <updated>$(date -Iseconds)</updated> <author> <name>Arthur Pons</name> </author> - <id>http://arthur.bebou.netlib.re</id> + <id>http://arthur.bebou.netlib.re/</id> $(the entries) </feed> @@