From d48a570d8aac05e26008beb9811a3eea17987f60 Mon Sep 17 00:00:00 2001 From: djg Date: Fri, 25 Sep 2026 08:08:10 +0000 Subject: [PATCH] fix(build): add trailing newline to sitemap --- build.py | 2 +- site/api/v1/random.json | 2 +- site/rss.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.py b/build.py index 7eee56c9..1229bec0 100644 --- a/build.py +++ b/build.py @@ -602,7 +602,7 @@ def build(): sm.append('%s%s%s%s%s' % (SITE_URL, p, today, 'weekly' if p == '/' else 'monthly', '1.0' if p == '/' else '0.8')) sm.append('') - 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 diff --git a/site/api/v1/random.json b/site/api/v1/random.json index 7aa025d0..cb2f5ff1 100644 --- a/site/api/v1/random.json +++ b/site/api/v1/random.json @@ -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"} \ No newline at end of file +{"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"} \ No newline at end of file diff --git a/site/rss.xml b/site/rss.xml index a258a0b9..2aa08281 100644 --- a/site/rss.xml +++ b/site/rss.xml @@ -1 +1 @@ -Best Dad Jokes — Dad Joke of the Dayhttps://bestdadjokes.lol/joke-of-the-day/The best dad jokes on the internet — short, clean, and groan-worthy.en-usDad Joke of the Day — Sep 25https://bestdadjokes.lol/joke-of-the-day/?d=2026-09-25bjd-daily-2026-09-25Fri, 25 Sep 2026 08:02:10 -0000What do you call a teacher who never farts in public? — A private tutor.Dad Joke of the Day — Sep 24https://bestdadjokes.lol/joke-of-the-day/?d=2026-09-24bjd-daily-2026-09-24Thu, 24 Sep 2026 08:02:10 -0000Why was the equal sign so humble? — It knew it wasn't less than or greater than anyone else.Dad Joke of the Day — Sep 23https://bestdadjokes.lol/joke-of-the-day/?d=2026-09-23bjd-daily-2026-09-23Wed, 23 Sep 2026 08:02:10 -0000Why did the student bring a ladder to school? — He wanted to go to high school.Dad Joke of the Day — Sep 22https://bestdadjokes.lol/joke-of-the-day/?d=2026-09-22bjd-daily-2026-09-22Tue, 22 Sep 2026 08:02:10 -0000Who's the king of all school supplies? — The ruler.Dad Joke of the Day — Sep 21https://bestdadjokes.lol/joke-of-the-day/?d=2026-09-21bjd-daily-2026-09-21Mon, 21 Sep 2026 08:02:10 -0000Why did the teacher wear sunglasses to school? — Because her students were so bright.Dad Joke of the Day — Sep 20https://bestdadjokes.lol/joke-of-the-day/?d=2026-09-20bjd-daily-2026-09-20Sun, 20 Sep 2026 08:02:10 -0000Why was the math book sad? — It had too many problems.Dad Joke of the Day — Sep 19https://bestdadjokes.lol/joke-of-the-day/?d=2026-09-19bjd-daily-2026-09-19Sat, 19 Sep 2026 08:02:10 -0000Why did the student eat his homework? — Because the teacher said it was a piece of cake.Dad Joke of the Day — Sep 18https://bestdadjokes.lol/joke-of-the-day/?d=2026-09-18bjd-daily-2026-09-18Fri, 18 Sep 2026 08:02:10 -0000My boss said: dress for the job you want, not the job you have. — Now HR is asking why I came to work dressed as the boss.Dad Joke of the Day — Sep 17https://bestdadjokes.lol/joke-of-the-day/?d=2026-09-17bjd-daily-2026-09-17Thu, 17 Sep 2026 08:02:10 -0000Retirement is the best job I've ever had. — The pay is terrible, but the hours are great.Dad Joke of the Day — Sep 16https://bestdadjokes.lol/joke-of-the-day/?d=2026-09-16bjd-daily-2026-09-16Wed, 16 Sep 2026 08:02:10 -0000Why did the calendar apply for the job? — It had a lot of dates.Dad Joke of the Day — Sep 15https://bestdadjokes.lol/joke-of-the-day/?d=2026-09-15bjd-daily-2026-09-15Tue, 15 Sep 2026 08:02:10 -0000I got a job feeding the giraffes at the zoo. — The pay is lousy, and it's a tall order.Dad Joke of the Day — Sep 14https://bestdadjokes.lol/joke-of-the-day/?d=2026-09-14bjd-daily-2026-09-14Mon, 14 Sep 2026 08:02:10 -0000I quit my job at the helium factory. — I refused to be spoken to in that tone.Dad Joke of the Day — Sep 13https://bestdadjokes.lol/joke-of-the-day/?d=2026-09-13bjd-daily-2026-09-13Sun, 13 Sep 2026 08:02:10 -0000Why do bakers work so hard? — Because they knead the dough.Dad Joke of the Day — Sep 12https://bestdadjokes.lol/joke-of-the-day/?d=2026-09-12bjd-daily-2026-09-12Sat, 12 Sep 2026 08:02:10 -0000I asked my boss for a raise. — He said the elevator does that, and handed me a ladder.Dad Joke of the Day — Sep 11https://bestdadjokes.lol/joke-of-the-day/?d=2026-09-11bjd-daily-2026-09-11Fri, 11 Sep 2026 08:02:10 -0000Why did the pencil get a promotion? — It was on point.Dad Joke of the Day — Sep 10https://bestdadjokes.lol/joke-of-the-day/?d=2026-09-10bjd-daily-2026-09-10Thu, 10 Sep 2026 08:02:10 -0000How's my job security? — Rock solid — nobody else wants it.Dad Joke of the Day — Sep 09https://bestdadjokes.lol/joke-of-the-day/?d=2026-09-09bjd-daily-2026-09-09Wed, 09 Sep 2026 08:02:10 -0000I started a business making origami. — Unfortunately, it folded.Dad Joke of the Day — Sep 08https://bestdadjokes.lol/joke-of-the-day/?d=2026-09-08bjd-daily-2026-09-08Tue, 08 Sep 2026 08:02:10 -0000I used to be a tailor. — Turns out I wasn't suited for it.Dad Joke of the Day — Sep 07https://bestdadjokes.lol/joke-of-the-day/?d=2026-09-07bjd-daily-2026-09-07Mon, 07 Sep 2026 08:02:10 -0000I just got a job making clocks. — It's about time.Dad Joke of the Day — Sep 06https://bestdadjokes.lol/joke-of-the-day/?d=2026-09-06bjd-daily-2026-09-06Sun, 06 Sep 2026 08:02:10 -0000Why do employees drink so much coffee at work? — It's the weekend immune system that keeps them going.Dad Joke of the Day — Sep 05https://bestdadjokes.lol/joke-of-the-day/?d=2026-09-05bjd-daily-2026-09-05Sat, 05 Sep 2026 08:02:10 -0000What did the janitor say when he jumped out of the supply closet? — Supplies! \ No newline at end of file +Best Dad Jokes — Dad Joke of the Dayhttps://bestdadjokes.lol/joke-of-the-day/The best dad jokes on the internet — short, clean, and groan-worthy.en-usDad Joke of the Day — Sep 25https://bestdadjokes.lol/joke-of-the-day/?d=2026-09-25bjd-daily-2026-09-25Fri, 25 Sep 2026 08:08:01 -0000What do you call a teacher who never farts in public? — A private tutor.Dad Joke of the Day — Sep 24https://bestdadjokes.lol/joke-of-the-day/?d=2026-09-24bjd-daily-2026-09-24Thu, 24 Sep 2026 08:08:01 -0000Why was the equal sign so humble? — It knew it wasn't less than or greater than anyone else.Dad Joke of the Day — Sep 23https://bestdadjokes.lol/joke-of-the-day/?d=2026-09-23bjd-daily-2026-09-23Wed, 23 Sep 2026 08:08:01 -0000Why did the student bring a ladder to school? — He wanted to go to high school.Dad Joke of the Day — Sep 22https://bestdadjokes.lol/joke-of-the-day/?d=2026-09-22bjd-daily-2026-09-22Tue, 22 Sep 2026 08:08:01 -0000Who's the king of all school supplies? — The ruler.Dad Joke of the Day — Sep 21https://bestdadjokes.lol/joke-of-the-day/?d=2026-09-21bjd-daily-2026-09-21Mon, 21 Sep 2026 08:08:01 -0000Why did the teacher wear sunglasses to school? — Because her students were so bright.Dad Joke of the Day — Sep 20https://bestdadjokes.lol/joke-of-the-day/?d=2026-09-20bjd-daily-2026-09-20Sun, 20 Sep 2026 08:08:01 -0000Why was the math book sad? — It had too many problems.Dad Joke of the Day — Sep 19https://bestdadjokes.lol/joke-of-the-day/?d=2026-09-19bjd-daily-2026-09-19Sat, 19 Sep 2026 08:08:01 -0000Why did the student eat his homework? — Because the teacher said it was a piece of cake.Dad Joke of the Day — Sep 18https://bestdadjokes.lol/joke-of-the-day/?d=2026-09-18bjd-daily-2026-09-18Fri, 18 Sep 2026 08:08:01 -0000My boss said: dress for the job you want, not the job you have. — Now HR is asking why I came to work dressed as the boss.Dad Joke of the Day — Sep 17https://bestdadjokes.lol/joke-of-the-day/?d=2026-09-17bjd-daily-2026-09-17Thu, 17 Sep 2026 08:08:01 -0000Retirement is the best job I've ever had. — The pay is terrible, but the hours are great.Dad Joke of the Day — Sep 16https://bestdadjokes.lol/joke-of-the-day/?d=2026-09-16bjd-daily-2026-09-16Wed, 16 Sep 2026 08:08:01 -0000Why did the calendar apply for the job? — It had a lot of dates.Dad Joke of the Day — Sep 15https://bestdadjokes.lol/joke-of-the-day/?d=2026-09-15bjd-daily-2026-09-15Tue, 15 Sep 2026 08:08:01 -0000I got a job feeding the giraffes at the zoo. — The pay is lousy, and it's a tall order.Dad Joke of the Day — Sep 14https://bestdadjokes.lol/joke-of-the-day/?d=2026-09-14bjd-daily-2026-09-14Mon, 14 Sep 2026 08:08:01 -0000I quit my job at the helium factory. — I refused to be spoken to in that tone.Dad Joke of the Day — Sep 13https://bestdadjokes.lol/joke-of-the-day/?d=2026-09-13bjd-daily-2026-09-13Sun, 13 Sep 2026 08:08:01 -0000Why do bakers work so hard? — Because they knead the dough.Dad Joke of the Day — Sep 12https://bestdadjokes.lol/joke-of-the-day/?d=2026-09-12bjd-daily-2026-09-12Sat, 12 Sep 2026 08:08:01 -0000I asked my boss for a raise. — He said the elevator does that, and handed me a ladder.Dad Joke of the Day — Sep 11https://bestdadjokes.lol/joke-of-the-day/?d=2026-09-11bjd-daily-2026-09-11Fri, 11 Sep 2026 08:08:01 -0000Why did the pencil get a promotion? — It was on point.Dad Joke of the Day — Sep 10https://bestdadjokes.lol/joke-of-the-day/?d=2026-09-10bjd-daily-2026-09-10Thu, 10 Sep 2026 08:08:01 -0000How's my job security? — Rock solid — nobody else wants it.Dad Joke of the Day — Sep 09https://bestdadjokes.lol/joke-of-the-day/?d=2026-09-09bjd-daily-2026-09-09Wed, 09 Sep 2026 08:08:01 -0000I started a business making origami. — Unfortunately, it folded.Dad Joke of the Day — Sep 08https://bestdadjokes.lol/joke-of-the-day/?d=2026-09-08bjd-daily-2026-09-08Tue, 08 Sep 2026 08:08:01 -0000I used to be a tailor. — Turns out I wasn't suited for it.Dad Joke of the Day — Sep 07https://bestdadjokes.lol/joke-of-the-day/?d=2026-09-07bjd-daily-2026-09-07Mon, 07 Sep 2026 08:08:01 -0000I just got a job making clocks. — It's about time.Dad Joke of the Day — Sep 06https://bestdadjokes.lol/joke-of-the-day/?d=2026-09-06bjd-daily-2026-09-06Sun, 06 Sep 2026 08:08:01 -0000Why do employees drink so much coffee at work? — It's the weekend immune system that keeps them going.Dad Joke of the Day — Sep 05https://bestdadjokes.lol/joke-of-the-day/?d=2026-09-05bjd-daily-2026-09-05Sat, 05 Sep 2026 08:08:01 -0000What did the janitor say when he jumped out of the supply closet? — Supplies! \ No newline at end of file