Skip to content

Commit

Permalink
update configurations files for GitHub Page
Browse files Browse the repository at this point in the history
  • Loading branch information
0x07CB committed Sep 19, 2024
1 parent e2a57c9 commit 29ee493
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
15 changes: 7 additions & 8 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
title: neovim-ide
title: neovim-ide
description: Dockerized NeoVim IDE configuration based on the LazyVim plugin
baseurl: "/neovim-ide"
url: "https://0x07cb.github.io"
lang: en

# Supprimez ces lignes
# languages: ["en", "fr"]
# default_lang: "en"
# exclude_from_localization: ["scripts", "src"]
# parallel_localization: true
markdown: kramdown
kramdown:
input: GFM
hard_wrap: false

# plugins:
# - jekyll-multiple-languages-plugin
plugins:
- jekyll-seo-tag
5 changes: 3 additions & 2 deletions fr.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
layout: default
lang: fr
---
{% include_relative _i18n/fr/home.md %}
{% capture md_content %}{% include_relative _i18n/fr/home.md %}{% endcapture %}
{{ md_content | markdownify }}

<div class="language-switcher">
<a href="{{ site.baseurl }}/">English</a>
Français
</div>
</div>
6 changes: 4 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
layout: default
---
{% if page.lang == 'fr' %}
{% include_relative _i18n/fr/home.md %}
{% capture md_content %}{% include_relative _i18n/fr/home.md %}{% endcapture %}
{{ md_content | markdownify }}
{% else %}
{% include_relative _i18n/en/home.md %}
{% capture md_content %}{% include_relative _i18n/en/home.md %}{% endcapture %}
{{ md_content | markdownify }}
{% endif %}

<div class="language-switcher">
Expand Down

0 comments on commit 29ee493

Please sign in to comment.