Closed BelleNottelling closed 3 years ago
Simply use a custom meta header, e.g. in Markdown files
---
title: My example page
lang: en
---
Some content
and in your Twig template
<html lang="{{ meta.lang }}">
<!-- … -->
You could even use a config option as fallback by adding the following to your config/config.yml
theme_config:
lang: en
and something like the following in your Twig template
<html lang="{{ meta.lang ?? config.theme_config.lang }}">
<!-- … -->
This way you don't have to add the lang
meta header to your pages, but rely on a default value.
That perfectly answers my question. Thank you!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in two days if no further activity occurs. Thank you for your contributions! :+1:
Hello, I'm currently rebuilding my website with Pico and it's a really nice simple software, but I can't figure out how I can specify the language of the webpage? With HTML it would just be but I can't seem to find a solution for it (other than just adding HTML)