diff --git a/build.py b/build.py index 9b2d0a33..1ef5340b 100644 --- a/build.py +++ b/build.py @@ -145,7 +145,13 @@ TOPICS = [ "keywords": r"\b(cross(?:ed|ing)?\s+(?:the\s+)?road|other\s+side|other\s+slide|shell\s+station|barking\s+lot|udder\s+side)\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"} + "keywords": r"\b(eyes?|see|sight|glasses|vision)\b"}, + {"slug": "dad-jokes-about-history", "name": "Dad Jokes About History", "emoji": "🏛️", + "intro": "Why did Rudolph get a bad report card? Because he went down in history! Travel back in time with ancient Roman puns, medieval laughs, and historic dad jokes that will never go out of style.", + "keywords": r"\b(history|historical|ancient|rome|roman|romans|caesar|pharaoh|pyramid|pyramids|medieval|knight|knights|castle|king|queen|revolution|napoleon|gladiator)\b"}, + {"slug": "dad-jokes-about-airplanes", "name": "Dad Jokes About Airplanes", "emoji": "✈️", + "intro": "Why did the airplane get sent to its room? For bad altitude! Fasten your seatbelts for first-class aviation dad jokes, pilot puns, and high-flying humor that never crash.", + "keywords": r"\b(plane|planes|airplane|airplanes|pilot|pilots|airport|cabin|propeller|jet|runway|altitude|boarding)\b"} ] MIN_TOPIC_JOKES = 5 @@ -185,6 +191,8 @@ def layout(title, desc, body, path='/', extra_head=''): '%s %s' % (c['slug'], c['emoji'], esc(c['name'])) for c in CATS) foot_cats = ''.join('%s' % (c['slug'], esc(c['name'])) for c in CATS) + live_topics_nav = [t for t in TOPICS if len(topic_jokes(t)) >= MIN_TOPIC_JOKES] + foot_topics = ''.join('%s' % (t['slug'], esc(t['name'])) for t in live_topics_nav[:12]) return f""" @@ -256,6 +264,10 @@ def layout(title, desc, body, path='/', extra_head=''):

Categories

+
+

Popular Topics

+ +

More

+
+

Popular Topics

+ +

More

+
+

Popular Topics

+ +

More

+
+

Popular Topics

+ +

More

+
+

Popular Topics

+ +

More

+

More

+

More

+

More

+

More

+

More

+

More

+

More

+

More

+

More

+

More

+

More

+

More

+

More

+

More

+

More

+

More

+

More

+

More

+

More

+

More

+

More