I will be giving examples from my own experience for https://alip.github.io/
Start by specifying the language in
YAML Front Matter
using a custom tag like
lang is just a custom tag which we can make use via
from within our pages.
Next, change your _layouts/ and _includes/ to be multilingual using simple
Make note of the
else statements which we use to specify a default
language. So pages without the
lang tag will be in English.
For more information, feel free to play with the source code of my blog: http://github.com/alip/alip.github.com
Now I’ll be writing a Turkish translation of this post and see if it works :)
Note to self: writing literal Liquid inside Liquid requires some weird syntax mentioned here.