atom feed of log is now a valid atom feed

This commit is contained in:
sejo 2022-07-10 21:00:53 +02:00
parent 4f2439b61b
commit e68b1394d3
2 changed files with 7 additions and 1 deletions

View File

@ -483,8 +483,11 @@ function genLog()
logs.webtw.f:write(string.format(twtxtformat, timestamp, text, weburl))
logs.gemtw.f:write(string.format(twtxtformat, timestamp, text, gemurl))
-- url encode
local encodedslug = slug:gsub("á","%%C3%%A1"):gsub("é","%%C3%%A9"):gsub("í","%%C3%%AD"):gsub("ó","%%C3%%B3"):gsub("ú","%%C3%%BA"):gsub("ñ","%%C3%%B1")
-- atom
local weburldate = string.format("https://%s/%s.html#%s",meta.domain,slug,date)
local weburldate = string.format("https://%s/%s.html#%s",meta.domain,encodedslug,date)
local atomformat = [[
<entry>

View File

@ -2,9 +2,12 @@
updates of the project
# subscribe
=> ./tw.txt [twtxt]
=> ./atom.xml [atom feed]
& => ./feed.gmi [gemsub feed]
+ <a href="https://validator.w3.org/feed/check.cgi?url=https%3A%2F%2Fcompudanzas.net%2Fatom.xml" target="_blank" rel="noreferrer noopener external" class="icon"><img src="./img/banner_valid-atom.png" alt="[Valid Atom 1.0]" title="Validate my Atom 1.0 feed" /></a>
+ <a href="https://journal.miso.town/validate-by-url?url=https%3A%2F%2Fcompudanzas.net%2Flog.html" target="_blank" rel="noreferrer noopener external" class="icon"><img src="./img/banner_htmljournal.png" alt="Valid HTML Journal" title="Valid HTML Journal"/></a>
# entries