feat: faster, support custom lib cdn and more standardized code style

This commit is contained in:
Dillon
2019-08-23 02:01:22 +08:00
parent f1ec275c9f
commit 934c3a5156
60 changed files with 10458 additions and 170 deletions

View File

@@ -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>