fix(build): add trailing newline to sitemap
All checks were successful
Build and Deploy / deploy (push) Successful in 16s

This commit is contained in:
djg 2026-09-25 08:08:10 +00:00
parent c6c1a43ec2
commit d48a570d8a
3 changed files with 3 additions and 3 deletions

View file

@ -602,7 +602,7 @@ def build():
sm.append('<url><loc>%s%s</loc><lastmod>%s</lastmod><changefreq>%s</changefreq><priority>%s</priority></url>'
% (SITE_URL, p, today, 'weekly' if p == '/' else 'monthly', '1.0' if p == '/' else '0.8'))
sm.append('</urlset>')
write('sitemap.xml', '\n'.join(sm))
write('sitemap.xml', '\n'.join(sm) + '\n')
# RSS: dad joke of the day feed, last 21 days
from email.utils import formatdate

View file

@ -1 +1 @@
{"setup": "What do you call a mountain that's really funny?", "punchline": "Hill-arious.", "type": "qa", "category": "travel", "source": "https://bestdadjokes.lol/category/travel/#joke-171"}
{"setup": "What happened to the man who put $20 into a vending machine?", "punchline": "Nothing — he's still waiting for his two cents.", "type": "qa", "category": "work", "source": "https://bestdadjokes.lol/category/work/#joke-297"}

File diff suppressed because one or more lines are too long