Skip to content

Instantly share code, notes, and snippets.

@KittyGiraudel
Last active February 24, 2018 10:46
Show Gist options
  • Select an option

  • Save KittyGiraudel/9755b37f7ec005f7e7a7 to your computer and use it in GitHub Desktop.

Select an option

Save KittyGiraudel/9755b37f7ec005f7e7a7 to your computer and use it in GitHub Desktop.

Revisions

  1. KittyGiraudel revised this gist Apr 8, 2016. 1 changed file with 7 additions and 0 deletions.
    7 changes: 7 additions & 0 deletions fr.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    <!-- index.html -->

    ---
    lang: fr
    ---

    {% include header.html %}
  2. KittyGiraudel revised this gist Feb 3, 2016. 2 changed files with 2 additions and 2 deletions.
    2 changes: 1 addition & 1 deletion header.html
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,3 @@
    # _includes/header.html
    <!-- _includes/header.html -->

    <h1>{{ site.data[page.lang].header.title }}</h1>
    2 changes: 1 addition & 1 deletion index.html
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # index.html
    <!-- index.html -->

    ---
    lang: en
  3. KittyGiraudel created this gist Feb 3, 2016.
    4 changes: 4 additions & 0 deletions en.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    # _data/en.yml

    header:
    title: "Hello world!"
    4 changes: 4 additions & 0 deletions fr.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    # _data/fr.yml

    header:
    title: "Bonjour le monde!"
    3 changes: 3 additions & 0 deletions header.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    # _includes/header.html

    <h1>{{ site.data[page.lang].header.title }}</h1>
    7 changes: 7 additions & 0 deletions index.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    # index.html

    ---
    lang: en
    ---

    {% include header.html %}