diff options
author | Dillon <dillonzq@outlook.com> | 2019-08-25 21:25:56 +0300 |
---|---|---|
committer | Dillon <dillonzq@outlook.com> | 2019-08-25 21:25:56 +0300 |
commit | af3161fff6b8598aff7140f81e2c28c1bf746a61 (patch) | |
tree | 20e9b10466ef85aa96bf13081f8522cf4da715fd /layouts/_default/section.html | |
parent | ca6d54387869403aede9db44bc316fd0b06375d9 (diff) |
feat: add en/zh README and exampleSite files
Diffstat (limited to 'layouts/_default/section.html')
-rw-r--r-- | layouts/_default/section.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/section.html b/layouts/_default/section.html index f8dde03..8ef2cf1 100644 --- a/layouts/_default/section.html +++ b/layouts/_default/section.html @@ -1,10 +1,10 @@ -{{ define "title" }}{{ T "all" }}{{ T .Section | default (humanize .Section) }} | {{ .Site.Title }}{{ end -}} +{{ define "title" }}{{ T "all" | humanize}}{{ T .Section | default .Section | humanize }} | {{ .Site.Title }}{{ end -}} {{ define "content" -}} {{ $data := .Data -}} <div class="post-warp archive"> <h2 class="post-title animated pulse faster"> - {{ printf "%s%s" (T "all") (T .Section | default (humanize .Section)) }} + {{ T "all" | humanize}}{{ T .Section | default .Section | humanize }} </h2> {{- range (.Paginate (.Pages.GroupByDate "2006")).PageGroups -}} |