ldeso/hugo-flex

Language code

Closed this issue · 1 comments

In your baseof.html

<html{{ with site.LanguageCode | default site.Language.Lang }} lang="{{ . }}"{{ end }}>

Could work better if replaced with this instead

<html lang="{{ or site.LanguageCode site.Language.Lang }}">

which is the standard way to define the language code in Hugo.

ldeso commented

Thanks a lot for your interest! You are right, the code I use in my baseof.html was from the official template which was changed up from Hugo v0.112.6. I'm going to update it.