File tree 2 files changed +34
-2
lines changed
2 files changed +34
-2
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ theme = "hugo-book"
12
12
url = " https://uapi-group.org/specifications"
13
13
weight = 11
14
14
[[menu .after ]]
15
- name = " Kernel Features "
16
- url = " https://uapi-group.org/kernel"
15
+ name = " Kernel Feature Ideas "
16
+ url = " https://uapi-group.org/kernel-features "
17
17
weight = 12
18
18
[[menu .after ]]
19
19
name = " -"
Original file line number Diff line number Diff line change
1
+ <!--
2
+ This is template for hugo menus, accepts MenuEntity as context
3
+ https://gohugo.io/variables/menus/
4
+ -->
5
+ {{ if . }}
6
+ {{ template "book-menu-hugo" . }}
7
+ {{ end }}
8
+
9
+ {{ define "book-menu-hugo" }}
10
+ < ul >
11
+ {{ range . }}
12
+ < li >
13
+ {{ if not (eq .Name "-") }}
14
+ < a href ="{{ .URL }} " {{ if not (hasPrefix .URL "https://uapi-group.org/") }} {{ if not .Page }}target="_blank " rel ="noopener "{{ end }} {{ end }} >
15
+ {{ end }}
16
+ {{- .Pre -}}
17
+ {{ with .Page }}
18
+ {{ partial "docs/title" .Page }}
19
+ {{ else }}
20
+ {{ .Name }}
21
+ {{ end }}
22
+ {{- .Post -}}
23
+ {{ if not (eq .Name "-") }}
24
+ </ a >
25
+ {{ end }}
26
+ {{- with .Children }}
27
+ {{ template "book-menu-hugo" . }}
28
+ {{- end }}
29
+ </ li >
30
+ {{ end }}
31
+ </ ul >
32
+ {{ end }}
You can’t perform that action at this time.
0 commit comments