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 7bea72a..8cc4268 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -1,8 +1,8 @@ <!DOCTYPE html> <!--[if IE 9]> -<html class="lt-ie10" lang="en" > +<html class="lt-ie10" lang="{{ page.lang }}" > <![endif]--> -<html class="no-js" lang="en" > +<html class="no-js" lang="{{ page.lang }}" > <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> 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 -%} -<li><a href="{{ node.url }}" class="is-active">{{ node.menutitle | escape }}</a></li> -{%- else -%} -<li><a href="{{ node.url }}">{{ node.menutitle | escape }}</a></li> -{%- endif -%} +<li> + <a href="{{ node.url }}" {%- if node.url == page.url %} class="is-active"{% endif -%}> + {{ node.menutitle | escape }} + </a> +</li> {%- endif -%} {%- endfor -%} -<li><a href="https://git.zom.bi/explore/projects">Git</a></li> -<li><a href="https://wiki.zom.bi/">Wiki</a></li> +{% for link in site.external %} +<li><a href="{{ link.url }}">{{ link.name }}</a></li> +{% endfor %}