summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authordzwdz2023-05-25 22:07:05 +0200
committerdzwdz2023-05-25 22:07:05 +0200
commit20def1faadbeca6507c49be84fa1ae2796123755 (patch)
tree5a14f1c696d6f28f8c1e35582793f4b30f90027e /src
parenta0a4920deaf4ca645cdfee45edf00e614369882f (diff)
make the atom feed validate
Diffstat (limited to 'src')
-rw-r--r--src/atom.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/atom.sh b/src/atom.sh
index cf694b3..8816e89 100644
--- a/src/atom.sh
+++ b/src/atom.sh
@@ -7,6 +7,7 @@ echo "<feed xmlns=\"http://www.w3.org/2005/Atom\">"
 echo "<title type=\"text\">dzwdz</title>"
 echo "<updated>$(date -Iseconds)</updated>"
 echo "<id>urn:uuid:677e5055-07e1-43d6-bd58-fda18d3c5277</id>"
+echo '<link rel="self" type="application/atom+xml" href="https://tilde.town/~dzwdz/blog/feed.atom"/>'
 
 to_atom_entry() {
 	while read line; do
@@ -16,7 +17,8 @@ to_atom_entry() {
 		echo "<entry>"
 		echo "<title>$entry_title</title>"
 		echo "<link href=\"$entry_url\"/>"
-		echo "<updated>${entry_date}T00:00Z</updated>"
+		echo "<updated>${entry_date}T00:00:00Z</updated>"
+		echo "<author><name>dzwdz</name></author>"
 		echo "<id>${entry_url}?${entry_date}</id>"
 		echo "</entry>"
 	done