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:
|
||||
de: "DE"
|
||||
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>
|
||||
<!--[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">
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Reference in a new issue