Skip to content

Commit a64a5d7

Browse files
committed
themes: allow automatic last update
Fixes #45
1 parent 645605e commit a64a5d7

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

content/errata.md

-4
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,3 @@ title: 勘误表
7474
- 表 13-1 不同等级的浪费”下方算式错误
7575

7676
<img width="868" alt="image" src="https://user-images.githubusercontent.com/7698088/164685097-518683e5-8a8b-4f6b-9e04-5f2952d8cea9.png">
77-
78-
79-
---
80-
最后更新:2022.05.13

themes/book/layouts/_default/baseof.html

+6
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,12 @@
7979
{{ define "main" }}
8080
<article class="markdown">
8181
{{- .Content -}}
82+
{{ $path := .Permalink | relURL }}
83+
{{ if eq $path "/go-questions/errata/" }}
84+
---
85+
<br/>
86+
最后更新:{{ now.Format "2006.01.02" }}
87+
{{ end }}
8288
</article>
8389
{{ end }}
8490

0 commit comments

Comments
 (0)