diff options
author | dzwdz | 2023-05-25 22:07:05 +0200 |
---|---|---|
committer | dzwdz | 2023-05-25 22:07:05 +0200 |
commit | 20def1faadbeca6507c49be84fa1ae2796123755 (patch) | |
tree | 5a14f1c696d6f28f8c1e35582793f4b30f90027e | |
parent | a0a4920deaf4ca645cdfee45edf00e614369882f (diff) |
make the atom feed validate
-rw-r--r-- | src/atom.sh | 4 |
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 |