Closed casperdcl closed 3 years ago
Thanks for your pull request! Please can you change the below so there is a default lang for users that haven't set it in the _config.yml file.
{% if site.lang %}
lang="{{ site.lang }}"{% endif %}
to
lang="{{ site.lang | default: 'en' }}"
Yeah I wasn't too sure about setting this default because it may potentially change behaviour... e.g. a French site usually viewed on a browser configured to assume French by default will now be forced to assume English.
What do you think?
That's a very good point!
A
lang
attribute is considered essential