mirror of
http://nostr-git-proxy.forgejo.svc.cluster.local/git/45387ca441053e230b2126802005eb03767ab59d84555e8bac86b6e7def14e27/bestdadjokes
synced 2026-11-03 07:26:59 +00:00
fix: truncate meta descriptions over 155 characters
All checks were successful
Build and Deploy / deploy (push) Successful in 18s
All checks were successful
Build and Deploy / deploy (push) Successful in 18s
This commit is contained in:
parent
61b7b0131e
commit
23b70fba5d
1 changed files with 2 additions and 0 deletions
2
build.py
2
build.py
|
|
@ -94,6 +94,8 @@ def joke_card(j, reveal=False):
|
|||
|
||||
|
||||
def layout(title, desc, body, path='/', extra_head=''):
|
||||
if len(desc) > 155:
|
||||
desc = desc[:154] + '…'
|
||||
nav_cats = ''.join(
|
||||
'<a href="/category/%s/">%s %s</a>' % (c['slug'], c['emoji'], esc(c['name']))
|
||||
for c in CATS)
|
||||
|
|
|
|||
Loading…
Reference in a new issue