Phuks-co / throat

Open Source link aggregator and discussion platform powering Phuks
https://phuks.co
MIT License
74 stars 32 forks source link

Limit meta description length #162

Closed evgip closed 4 years ago

evgip commented 4 years ago

Maybe like this:

<meta name="description" content="@{''.join(BeautifulSoup(markdown(post['content'][:180])).findAll(text=True)).replace('\n', ' ')}"/>