lupinia / awi

Full Lupinia/Awi website, built with Django
https://www.lupinia.net/
2 stars 1 forks source link

Add meta tags for image/content previews and social media cards #61

Closed lupinia closed 1 year ago

lupinia commented 2 years ago

I thought I already had an issue for this, but it's been on the to-do list for years: Most social media platforms and chat services will pick up the meta description tag for a preview of text content, but it takes an extra step to get an image to show up in the preview. Since the methods for doing this are a little more standardized than they used to be, I'm hoping it won't be prohibitively difficult to implement (famous last words).

lupinia commented 2 years ago
lupinia commented 2 years ago

EDIT: This comment is obsolete, see next comment for current to-do list.

Implementation plan/ideas:

Specific meta tag data sources:

lupinia commented 1 year ago

Tags in template:

Data population:

lupinia commented 1 year ago

The implementation of this is mostly done! Yay! Everything works on the actual content pages and the homepage - aka the URLs most likely to be shared - and two of the four related issues are complete. It'll take some time for Twitter and Facebook to re-cache the robots.txt file for cdn.fur.vc (they appear to be the only sites that need to be explicitly allowed in this manner) before things will start working correctly there, but given that I don't personally use either service anymore, that's fine.

I still need to finish the other two related issues - moving title and description blocks - before I can call this done, and there are some complicated views that will need some attention. But the "minimum viable product" version of this new functionality is live and ready to use!

lupinia commented 1 year ago

Since the only tasks remaining are enhancements to functionality that is now implemented, I think I can finally call this one done! This was a much bigger project than I expected, and I expected it to be huge, but I cleared out a lot of technical debt in the process, and it was worth the effort to make the site more useful and improve the quality of my link previews :)