Browse Source

Fix git commit info

master
Chris Smith 5 years ago
parent
commit
1d0e532010
2 changed files with 6 additions and 1 deletions
  1. 5
    0
      config.yml
  2. 1
    1
      themes/book/layouts/partials/docs/git-footer.html

+ 5
- 0
config.yml View File

@@ -5,3 +5,8 @@ title: Knowledge base
5 5
 theme: book
6 6
 enableGitInfo: true
7 7
 disableKinds: ["taxonomy", "taxonomyTerm"]
8
+
9
+params:
10
+  BookRepo: "https://g.c5h.io/public/knowledge"
11
+  BookEnableJS: false
12
+

+ 1
- 1
themes/book/layouts/partials/docs/git-footer.html View File

@@ -4,7 +4,7 @@
4 4
   <div>
5 5
     {{- $date := .AuthorDate.Local.Format (default "January 2, 2006" $.Site.Params.BookDateFormat) -}}
6 6
     <a href="{{ $.Site.Params.BookRepo }}/commit/{{ .Hash }}" title='Last modified {{ $date }} by {{ .AuthorName }}' target="_blank" rel="noopener">
7
-      <img src="{{ "svg/code-merge.svg" | relURL }}" /> {{ $date }}
7
+      <img src="{{ "svg/code-merge.svg" | relURL }}" /> Last modified at {{ $date }} in {{ .AbbreviatedHash }}
8 8
     </a>
9 9
   </div>
10 10
   {{ end }}

Loading…
Cancel
Save