diff options
author | Dillon <dillonzq@outlook.com> | 2019-08-22 21:01:22 +0300 |
---|---|---|
committer | Dillon <dillonzq@outlook.com> | 2019-08-22 21:01:22 +0300 |
commit | 934c3a515615c8e6cd44b8d8f86358738cf1295c (patch) | |
tree | d8d8a2b98b931a8b4e31f1a532bb88119ea04f64 /layouts/_default/section.html | |
parent | f1ec275c9fba02bc50418f523b0849ad441cb3da (diff) |
feat: faster, support custom lib cdn and more standardized code style
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 2e58ec5..d9870d7 100644 --- a/layouts/_default/section.html +++ b/layouts/_default/section.html @@ -1,10 +1,10 @@ -{{ define "title" }}{{ T "posts" }} - {{ .Site.Title }}{{ end -}} +{{ define "title" }}{{ T .Section | default (humanize .Section) }} | {{ .Site.Title }}{{ end -}} {{ define "content" -}} {{ $data := .Data -}} <div class="post-warp archive"> <h2 class="post-title"> - {{ printf "- %s -" (T "posts") }} + {{ printf "%s%s" (T "all") (T .Section | default (humanize .Section)) }} </h2> {{- range (.Paginate (.Pages.GroupByDate "2006")).PageGroups -}} <h3>{{ .Key }}</h3> |