hodcroftlab / covariants

Real-time updates and information about key SARS-CoV-2 variants, plus the scripts that generate this information.
https://covariants.org/
GNU Affero General Public License v3.0
316 stars 111 forks source link

Update SEO metadata #289

Closed emmahodcroft closed 2 years ago

emmahodcroft commented 2 years ago

As raised in #288 - not all pages have updating titles or descriptions.

This is a quick manual update so that we have some more specific details for each page. (I scripted the part with the variants/mutations.)

@ivan-aksamentov , are there restrictions on what symbols can be used in these headers/descriptions? I used the build_name object from clusters.py - so it might have things like spaces and parenthesis. I think this should be fine, but if you could eyeball it quickly, that would be good!

Also, I left out the image variable for the other pages as we don't have specific images - is that the right way to do that?

vercel[bot] commented 2 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/hodcroftlab/covariants/J8PZsDhFbgpLpgQwCaasqPTsktaX
✅ Preview: https://covariants-git-updateseometa-hodcroftlab.vercel.app

emmahodcroft commented 2 years ago

Hm... the deployment is working for the 'main' pages (Per Variant, Shared Mutations, etc) but not for the variant or mutation pages. I think I see how I messed up.

emmahodcroft commented 2 years ago

Seems to be working now!

azizLIGHT commented 2 years ago

If merged, this will solve the issue I described and can be closed.

Maybe automated page titles and descriptions should be a separate issue to be tracked separately.

ivan-aksamentov commented 2 years ago

I am not against merging. It's tedious to update this way, but if not updated the missing page will just show the defaults. So not a big deal.

emmahodcroft commented 2 years ago

Yes, having something automatic would be better, as keeping this up to date will be hard to remember. However, I was able to do this in a few minutes so figured it was worth doing in the meantime - but it doesn't preclude creating a better solution, if someone (or @azizLIGHT) has the time!

emmahodcroft commented 2 years ago

Ok, I'll merge this in now. But better solutions welcome!