Add menu item blog and sub menu item devops blog
This commit is contained in:
parent
bc4502e1ee
commit
31ffe6e016
2 changed files with 23 additions and 2 deletions
15
config.yaml
15
config.yaml
|
@ -41,6 +41,13 @@ languages:
|
||||||
- name: "Vedtægter"
|
- name: "Vedtægter"
|
||||||
url: "rights/"
|
url: "rights/"
|
||||||
weight: 4
|
weight: 4
|
||||||
|
- name: "Blog"
|
||||||
|
url: "blog/"
|
||||||
|
weight: 5
|
||||||
|
- name: "DevOps blog"
|
||||||
|
url: "devops-blog/"
|
||||||
|
parent: "Blog"
|
||||||
|
weight: 6
|
||||||
en:
|
en:
|
||||||
title: data.coop
|
title: data.coop
|
||||||
params:
|
params:
|
||||||
|
@ -62,4 +69,10 @@ languages:
|
||||||
- name: "Statutes"
|
- name: "Statutes"
|
||||||
url: "en/rights/"
|
url: "en/rights/"
|
||||||
weight: 4
|
weight: 4
|
||||||
|
- name: "Blog"
|
||||||
|
url: "en/blog/"
|
||||||
|
weight: 5
|
||||||
|
- name: "DevOps Blog"
|
||||||
|
url: "en/devops-blog/"
|
||||||
|
parent: "Blog"
|
||||||
|
weight: 6
|
||||||
|
|
|
@ -4,7 +4,15 @@
|
||||||
{{ range .Site.Menus.nav }}
|
{{ range .Site.Menus.nav }}
|
||||||
{{ $atURL := absURL $currentPage.RelPermalink }}
|
{{ $atURL := absURL $currentPage.RelPermalink }}
|
||||||
{{ $compURL := absURL .URL }}
|
{{ $compURL := absURL .URL }}
|
||||||
<li><a href="{{ .URL }}"{{ if (eq $atURL $compURL) }} class="active"{{ end }}>{{ .Name }}</a></li>
|
<li><a href="{{ .URL }}"{{ if (eq $atURL $compURL) }} class="active"{{ end }}>{{ .Name }}</a>
|
||||||
|
<ol class="sub-menu">
|
||||||
|
{{ range .Children }}
|
||||||
|
{{ $compURL := absURL .URL }}
|
||||||
|
<li><a href="{{ .URL }}"{{ if (eq $atURL $compURL) }} class="active"{{ end }}>{{ .Name }}</a>
|
||||||
|
</li>
|
||||||
|
{{ end }}
|
||||||
|
</ol>
|
||||||
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue