Created
December 6, 2020 09:22
-
-
Save bpatra/209b250af53241ab5d1f74ea9b4e852d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
layout: default | |
t: | |
first: | |
en: "This is my first sentence" | |
fr: "C'est ma premiàre phrase" | |
second: | |
en: "My second sentence" | |
fr: "Ma deuxième phrase" | |
third: | |
en: "Last sentence" | |
fr: "Dernière phrase" | |
--- | |
<div> | |
<ul> | |
<li>t.first[page.lang]</li> | |
<li>t.second[page.lang]</li> | |
<li>t.third[page.lang]</li> | |
</ul> | |
</div> | |
</code> | |
Then the two localized files simply contain a very basic YAML header. | |
Let us have a look at the file <em>about.html</em> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment