From 67add2a5dc525a838779af3fda2bb64eb4f46cfc Mon Sep 17 00:00:00 2001 From: djg Date: Fri, 2 Oct 2026 08:01:48 +0000 Subject: [PATCH] feat(seo): target long-tail, optimize CTR and sitemap --- build.py | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/build.py b/build.py index 6816b8e0..6b6c168b 100644 --- a/build.py +++ b/build.py @@ -106,6 +106,13 @@ TOPICS = [ {"slug": "work-dad-jokes", "name": "Work Dad Jokes", "emoji": "🏢", "intro": "Break the ice at your next meeting with clean office dad jokes. Workplace-safe humor, corporate puns, and harmless water cooler groaners.", "keywords": r"\b(work|office|job|boss|meeting|employee|coworker|business|company|career)\b"}, + + {"slug": "software-engineers", "name": "Dad Jokes About Software Engineers", "emoji": "💻", + "intro": "Did you hear about the programmer who got locked out of their house? They lost their keys! These software engineer dad jokes are fully debugged and ready to compile into instant groans.", + "keywords": r"\b(software|engineer|code|coding|programmer|dev|developer|bug|python|java|html|internet|wifi|tech)\b"}, + {"slug": "clean-dad-jokes-for-5-year-olds", "name": "Clean Dad Jokes for 5 Year Olds", "emoji": "👧", + "intro": "Why did the toddler cross the playground? To get to the other slide! These clean dad jokes for 5-year-olds are kindergarten-approved and perfectly tailored for the juice-box crowd.", + "keywords": r"\b(kid|child|children|kindergarten|toddler|play|preschool|toy|five|5)\b"}, {"slug": "eyes", "name": "Dad Jokes About Eyes", "emoji": "👀", "intro": "Eye see what you did there! These dad jokes about eyes are a sight for sore... well, you know.", "keywords": r"\b(eyes?|see|sight|glasses|vision)\b"} @@ -547,10 +554,10 @@ def page_category(slug):
{others_html}
""" - title = '%d+ Best %s (Clean Puns & Groaners for Kids & Family)' % (len(js), c['name']) - desc = '%s Browse %d clean, funny %s for instant groans.' % (c['blurb'], len(js), c['name'].lower()) + title = '%d+ Unbeatable %s - Try Not To Laugh (Or Groan)' % (len(js), c['name']) + desc = '%s Read our ultimate collection of %d %s - 100%% clean and painfully funny.' % (c['blurb'], len(js), c['name'].lower()) if len(desc) > 155: - desc = '%s %d clean, funny %s.' % (c['blurb'], len(js), c['name'].lower()) + desc = '%s %d clean %s.' % (c['blurb'], len(js), c['name'].lower()) if len(desc) > 155: desc = desc[:152] + '...' @@ -598,9 +605,9 @@ def page_topic(slug):
{chips}
""" - title = '%d+ Best %s (Clean Puns & Groaners for Kids & Family)' % (len(js), t['name']) - desc = t['intro'] - suffix = ' Browse %d clean, funny jokes.' % len(js) + title = '%d+ Hilarious %s - Perfect for Groans & Laughs' % (len(js), t['name']) + desc = 'Looking for %s? %s Guaranteed to make anyone roll their eyes. Read %d completely clean jokes now.' % (t['name'].lower(), t['intro'], len(js)) + suffix = '' if len(desc + suffix) <= 155: desc = desc + suffix elif len(desc) > 155: @@ -676,8 +683,10 @@ def page_joke(j): -

More {esc(cat['name'])}

- +

You Might Also Suffer From...

+ + + """ title = '%s - Funny Dad Joke' % esc(j['setup']) if len(title) > 60: @@ -977,8 +986,10 @@ Best Dad Jokes provides over 430 hand-curated, school-safe dad jokes, puns, and sm = ['', ''] for p in pages: + freq = 'weekly' if p == '/' or '/topic/' in p or '/category/' in p else 'monthly' + pri = '1.0' if p == '/' else '0.9' if '/topic/' in p or '/category/' in p else '0.7' sm.append('%s%s%s%s%s' - % (SITE_URL, p, today, 'weekly' if p == '/' else 'monthly', '1.0' if p == '/' else '0.8')) + % (SITE_URL, p, today, freq, pri)) sm.append('') write('sitemap.xml', '\n'.join(sm) + '\n')