From 4c1092c4c2c9636d55e4eeefa7702d731e35a0b3 Mon Sep 17 00:00:00 2001 From: Valentin Gehrke Date: Tue, 2 Jan 2018 19:33:11 +0100 Subject: [PATCH] Improve page This adds the correct language code to the html tag. Additionally it slims the menu.html include --- _config.yml | 7 +++++++ _includes/header.html | 4 ++-- _includes/menu.html | 15 ++++++++------- 3 files changed, 17 insertions(+), 9 deletions(-) diff --git a/_config.yml b/_config.yml index 60f8ac0..bacddc4 100644 --- a/_config.yml +++ b/_config.yml @@ -7,3 +7,10 @@ defaults: langs: de: "DE" en: "EN" +external: + - + name: "Git" + url: "https://git.zom.bi/explore/projects" + - + name: "Wiki" + url: "https://wiki.zom.bi" diff --git a/_includes/header.html b/_includes/header.html index 54383d4..7a1b35c 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -1,8 +1,8 @@ - + diff --git a/_includes/menu.html b/_includes/menu.html index 340fc5a..5088b68 100644 --- a/_includes/menu.html +++ b/_includes/menu.html @@ -1,11 +1,12 @@ {%- for node in site.pages -%} {%- if node.lang == page.lang and node.menutitle -%} -{%- if node.url == page.url -%} -
  • {{ node.menutitle | escape }}
  • -{%- else -%} -
  • {{ node.menutitle | escape }}
  • -{%- endif -%} +
  • + + {{ node.menutitle | escape }} + +
  • {%- endif -%} {%- endfor -%} -
  • Git
  • -
  • Wiki
  • +{% for link in site.external %} +
  • {{ link.name }}
  • +{% endfor %}