File tree 2 files changed +39
-0
lines changed
2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change @@ -3,5 +3,19 @@ languageCode = "en-us"
3
3
title = " UAPI group generic documents and meeting minutes"
4
4
theme = " hugo-book"
5
5
6
+ [[menu .after ]]
7
+ name = " -"
8
+ weight = 10
9
+ [[menu .after ]]
10
+ name = " Collaborate on Github"
11
+ url = " https://github.com/uapi-group/kernel"
12
+ weight = 10
13
+
6
14
[markup .goldmark .renderer ]
7
15
unsafe = true # Allow HTML in md files
16
+
17
+ [params ]
18
+ BookRepo = ' https://github.com/uapi-group/kernel'
19
+ BookCommitPath = ' commit'
20
+ BookEditPath = ' edit/main'
21
+ BookIndexPage = ' README.md'
Original file line number Diff line number Diff line change
1
+ < div class ="flex flex-wrap justify-between ">
2
+ {{ if .Site.IsMultiLingual }}
3
+ {{ partial "docs/languages" . }}
4
+ {{ end }}
5
+
6
+ {{ if and .GitInfo .Site.Params.BookRepo }}
7
+ < div >
8
+ {{- $date := partial "docs/date" (dict "Date" .GitInfo.AuthorDate.Local "Format" .Site.Params.BookDateFormat) -}}
9
+ {{- $commitPath := default "commit" .Site.Params.BookCommitPath -}}
10
+ < a class ="flex align-center " href ="{{ .Site.Params.BookRepo }}/{{ $commitPath }}/{{ .GitInfo.Hash }} " title ='{{ i18n "Last modified by" }} {{ .GitInfo.AuthorName }} | {{ $date }} ' target ="_blank " rel ="noopener ">
11
+ < img src ="{{ "svg /calendar.svg" | relURL }}" class="book-icon " alt ="Calendar " />
12
+ < span > {{ $date }}</ span >
13
+ </ a >
14
+ </ div >
15
+ {{ end }}
16
+
17
+ {{ if and .File .Site.Params.BookRepo .Site.Params.BookEditPath }}
18
+ < div >
19
+ < a class ="flex align-center " href ="{{ .Site.Params.BookRepo }}/{{ .Site.Params.BookEditPath }}/{{ replace ( replace .File.Path "docs /" "" ) "_index.md" .Site.Params.BookIndexPage}}" target="_blank " rel ="noopener ">
20
+ < img src ="{{ "svg /edit.svg" | relURL }}" class="book-icon " alt ="Edit " />
21
+ < span > {{ i18n "Edit this page" }}</ span >
22
+ </ a >
23
+ </ div >
24
+ {{ end }}
25
+ </ div >
You can’t perform that action at this time.
0 commit comments