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 meta data attribute LANG to support multi language websites #683

Closed
wants to merge 1 commit into from

Conversation

dipohl
Copy link
Contributor

@dipohl dipohl commented Dec 4, 2023

I added this for my multi language blog. I think it can be useful also for other users and will be glad when you integrate the addition.

@PhrozenByte
Copy link
Collaborator

Thank you for your contribution! 👍

The pre-registered meta headers exist for backwards compatibility reasons only, since Pico 2.1 you can use pico-theme.yml (see default theme) to register additional meta headers. The only difference is that you can't access it via {{ page.lang }}, but {{ page.meta.lang }} (just for the record, {{ page.title }} also exists for backwards compatibility reasons only, one should use {{ page.meta.title }} instead).

@dipohl
Copy link
Contributor Author

dipohl commented Dec 4, 2023

ah, ok. Thanks for the hint and explanation. I will have a look at the new method then. I appreciate that you implemented a more flexible one! 👍

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

Successfully merging this pull request may close these issues.

2 participants