瀏覽代碼

Fix git commit info

master
Chris Smith 5 年之前
父節點
當前提交
1d0e532010
共有 2 個檔案被更改,包括 6 行新增1 行删除
  1. 5
    0
      config.yml
  2. 1
    1
      themes/book/layouts/partials/docs/git-footer.html

+ 5
- 0
config.yml 查看文件

@@ -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 查看文件

@@ -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…
取消
儲存