Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OpenGraph meta tags in artist, album and user pages #3118

Open
wants to merge 8 commits into
base: playlist-opengraph-tags
Choose a base branch
from

Conversation

MonkeyDo
Copy link
Member

@MonkeyDo MonkeyDo commented Jan 9, 2025

To be merged after #3078

We talked SEO and OpenGraph tags recently with Ansh, and as I have been working on playlist OpenGraph tags in #3078 (as requested by a user on the forums), I thought now was the perfect time to implement OG tags in other relevant pages, while it's all fresh in my head.

Artist pages:

I haven't added a custom image yet, not exactly sure what to do.
We can't put a link to the SVGs we use in LB pages, because SVGs are not supported in OG tags.
image
image

Album pages:

image
image

User pages:

image
image

instead of popularity_data, which does not seem to represent the same value. Not sure where the discrepancy is, but I'm opting to put the same value in the description tag as the one we show on the web page
Only the first meta tag for og:image seems to be taken into account, and defining another one later in the head gets ignored.
So don't render the default image meta tag if there is an og:image tag in the og_meta_tags props
let's not load the full size image 😅
+ adding some more expected meta tags
@pep8speaks
Copy link

pep8speaks commented Jan 9, 2025

Hello @MonkeyDo! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2025-01-09 18:12:38 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants