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"
|
||||
url: "rights/"
|
||||
weight: 4
|
||||
- name: "Blog"
|
||||
url: "blog/"
|
||||
weight: 5
|
||||
- name: "DevOps blog"
|
||||
url: "devops-blog/"
|
||||
parent: "Blog"
|
||||
weight: 6
|
||||
en:
|
||||
title: data.coop
|
||||
params:
|
||||
|
@ -62,4 +69,10 @@ languages:
|
|||
- name: "Statutes"
|
||||
url: "en/rights/"
|
||||
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 }}
|
||||
{{ $atURL := absURL $currentPage.RelPermalink }}
|
||||
{{ $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 }}
|
||||
</ol>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue