jekyll / jekyll-seo-tag

A Jekyll plugin to add metadata tags for search engines and social networks to better index and display your site's content.
https://jekyll.github.io/jekyll-seo-tag
MIT License
1.66k stars 294 forks source link

Language Tag not working #423

Closed pagenstedt closed 3 years ago

pagenstedt commented 3 years ago

I tried
locale: language_TERRITORY: de_DE

and locale: de_DE but en_US will not be overwritten.

Instead I get an github error message. A bug or my fault?

ashmaroli commented 3 years ago

Based on your commit history, the error looks like to be from your end. YAML is indentation sensitive. So meaning changes when a key is at the start of line and when it is preceded by two spaces, etc. Additionally, the language_TERRITORY mention in the docs is just the format not an actual key or value.

Try the following:

# in your _config.yml

permalink: pretty
locale: de_DE       # align key with an existing key
pagenstedt commented 3 years ago

Thank you very much for the quick response. No error message anymore. But still no overwriting unfortunately.

ashmaroli commented 3 years ago

The reason for that is because GitHub Pages is using an older version of this plugin: https://pages.github.com/versions/ If you're comfortable with advanced set ups, you can try deploying via GitHub Actions.