Merge branch 'improve-page' into 'master'
Improve include See merge request zombi/website!6
This commit is contained in:
commit
8014f4f8b4
3 changed files with 17 additions and 9 deletions
|
@ -7,3 +7,10 @@ defaults:
|
||||||
langs:
|
langs:
|
||||||
de: "DE"
|
de: "DE"
|
||||||
en: "EN"
|
en: "EN"
|
||||||
|
external:
|
||||||
|
-
|
||||||
|
name: "Git"
|
||||||
|
url: "https://git.zom.bi/explore/projects"
|
||||||
|
-
|
||||||
|
name: "Wiki"
|
||||||
|
url: "https://wiki.zom.bi"
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<!--[if IE 9]>
|
<!--[if IE 9]>
|
||||||
<html class="lt-ie10" lang="en" >
|
<html class="lt-ie10" lang="{{ page.lang }}" >
|
||||||
<![endif]-->
|
<![endif]-->
|
||||||
<html class="no-js" lang="en" >
|
<html class="no-js" lang="{{ page.lang }}" >
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
{%- for node in site.pages -%}
|
{%- for node in site.pages -%}
|
||||||
{%- if node.lang == page.lang and node.menutitle -%}
|
{%- if node.lang == page.lang and node.menutitle -%}
|
||||||
{%- if node.url == page.url -%}
|
<li>
|
||||||
<li><a href="{{ node.url }}" class="is-active">{{ node.menutitle | escape }}</a></li>
|
<a href="{{ node.url }}" {%- if node.url == page.url %} class="is-active"{% endif -%}>
|
||||||
{%- else -%}
|
{{ node.menutitle | escape }}
|
||||||
<li><a href="{{ node.url }}">{{ node.menutitle | escape }}</a></li>
|
</a>
|
||||||
{%- endif -%}
|
</li>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
<li><a href="https://git.zom.bi/explore/projects">Git</a></li>
|
{% for link in site.external %}
|
||||||
<li><a href="https://wiki.zom.bi/">Wiki</a></li>
|
<li><a href="{{ link.url }}">{{ link.name }}</a></li>
|
||||||
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in a new issue