From 9116d0f07903ca3eedd7610b9bc55c7099019af7 Mon Sep 17 00:00:00 2001 From: ThibaultGuillaumont Date: Thu, 19 Dec 2024 15:42:56 +0100 Subject: [PATCH] bouton --- _layouts/default.html | 227 ++++++++++++++++++++++-------------------- _layouts/doc.html | 2 +- _plugins/howto_nav.rb | 137 +++++++++++++++++++++++++ _sass/base.scss | 39 +++++--- fr/howto/index.html | 77 ++++++++++++++ 5 files changed, 360 insertions(+), 122 deletions(-) create mode 100644 _plugins/howto_nav.rb create mode 100644 fr/howto/index.html diff --git a/_layouts/default.html b/_layouts/default.html index 0f62d765..ef7d6034 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -1,113 +1,126 @@ {%- assign lang = page.lang | default: "fr" -%} - - - - {{ page.title }} - {{ site.title }} - - - - - - {%- if page.description -%} - - - {%- endif -%} - - {%- if page.image -%} - - {% elsif page.scene %} - - {%- else -%} - - - - {%- endif -%} - - {%- if page.lang -%} - {%- if page.lang == "fr" -%} - {%- assign alt_lang = "en" -%} - {%- assign alt_url = page.url | replace_first: "/fr/", "/en/" -%} - {%- else -%} - {%- assign alt_lang = "fr" -%} - {%- assign alt_url = page.url | replace_first: "/en/", "/fr/" -%} - {%- endif -%} - {%- assign alt = site.pages | where:"url", alt_url | first -%} - - {%- if alt -%} - - - {%- endif -%} - {%- endif -%} - - - - - - - - - - - - - -