mirror of
http://nostr-git-proxy.forgejo.svc.cluster.local/git/45387ca441053e230b2126802005eb03767ab59d84555e8bac86b6e7def14e27/bestdadjokes
synced 2026-11-03 07:26:59 +00:00
Merge fix-duplicate-topic-slugs: remove duplicate topic slugs, add 301 redirects
All checks were successful
Build and Deploy / deploy (push) Successful in 16s
All checks were successful
Build and Deploy / deploy (push) Successful in 16s
This commit is contained in:
commit
5a06b7ddad
2 changed files with 7 additions and 6 deletions
6
build.py
6
build.py
|
|
@ -76,12 +76,6 @@ TOPICS = [
|
|||
{"slug": "vacation", "name": "Dad Jokes About Vacation", "emoji": "🏖️",
|
||||
"intro": "Time to pack your bags and your best puns! These dad jokes about vacation will have you laughing all the way to your destination.",
|
||||
"keywords": r"\b(vacation|trip|travel|holiday|packing)\b"},
|
||||
{"slug": "work", "name": "Dad Jokes About Work", "emoji": "🏢",
|
||||
"intro": "Don't work too hard... unless it's working on your punchlines. These dad jokes about work are perfect for the water cooler.",
|
||||
"keywords": r"\b(work|office|job|boss|meeting)\b"},
|
||||
{"slug": "kids", "name": "Dad Jokes About Kids", "emoji": "👶",
|
||||
"intro": "They grow up so fast, but these jokes never get old. Here are the best dad jokes about kids.",
|
||||
"keywords": r"\b(kid|child|children|son|daughter)\b"},
|
||||
{"slug": "food", "name": "Dad Jokes About Food", "emoji": "🍔",
|
||||
"intro": "Hungry for a laugh? These dad jokes about food will hit the spot.",
|
||||
"keywords": r"\b(food|eat|dinner|lunch|breakfast|hungry|pizza|coffee|cheese|lettuce)\b"},
|
||||
|
|
|
|||
|
|
@ -30,6 +30,13 @@ http {
|
|||
add_header Permissions-Policy "geolocation=(), microphone=(), camera=()" always;
|
||||
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
|
||||
}
|
||||
# Redirect old short topic slugs to long-tail canonical URLs
|
||||
location = /topic/work/ {
|
||||
return 301 /topic/work-dad-jokes/;
|
||||
}
|
||||
location = /topic/kids/ {
|
||||
return 301 /topic/dad-jokes-for-kids/;
|
||||
}
|
||||
location / {
|
||||
try_files $uri $uri/ $uri/index.html =404;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue