It’s extremely easy to install multilingual support in Jekyll without any plugin. All credits goes to Sylvain Durand post about making Jekyll multilingual, check it out. Here is my setup:
Setting up multilingual in FrontMatter
ref as a unique identifier to connect pages or posts with different languages and
lang to set language code. Only use the ISO 639-1 format as language code.
Let’s add hreflang as a HTML link element in the header. This ensures that search engines serve the correct language in the search results. Under “_includes” - add the following code to “head.html”:
A must for a multi language is to have a language switcher. Under “_includes” - add the following code to “header.html”:
Display posts on homepage
First, under “_layouts” - add the following code to “home.html”:
lang to “index.md”
Dela på Facebook
.md files for each language and place in root.