diff options
author | olOwOlo <26087907+olOwOlo@users.noreply.github.com> | 2018-07-10 01:41:34 +0800 |
---|---|---|
committer | olOwOlo <26087907+olOwOlo@users.noreply.github.com> | 2018-07-10 01:41:34 +0800 |
commit | 5e356c5f635d45f0241854d9f43f38b2f0bd44f9 (patch) | |
tree | 52d12fa3e71c1f843c385271c2f22b8842ddc0ba /layouts/_default/taxonomy.html | |
parent | d3a1ab071c983586b474c5e5dc0fa6afb0babce8 (diff) |
style(*): google js style & trim whitespace
Diffstat (limited to 'layouts/_default/taxonomy.html')
-rw-r--r-- | layouts/_default/taxonomy.html | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html index d0c8d43..2be015a 100644 --- a/layouts/_default/taxonomy.html +++ b/layouts/_default/taxonomy.html @@ -1,21 +1,21 @@ -{{ define "title" }}{{ .Title }} · {{ .Site.Title }}{{ end }} +{{- define "title" }}{{ .Title }} · {{ .Site.Title }}{{ end -}} -{{ define "content"}} -{{ $paginator := .Paginate .Data.Pages.ByDate.Reverse .Site.Params.archivePaginate }} +{{- define "content" }} +{{- $paginator := .Paginate .Data.Pages.ByDate.Reverse .Site.Params.archivePaginate -}} <section id="archive" class="archive"> - {{ if not $paginator.HasPrev }} - {{ if eq .Data.Plural "tags" }} + {{ if not $paginator.HasPrev -}} + {{ if eq .Data.Plural "tags" -}} <div class="archive-title tag"> <h2 class="archive-name">{{ .Title }}</h2> </div> - {{ else if eq .Data.Plural "categories" }} + {{- else if eq .Data.Plural "categories" -}} <div class="archive-title category"> <h2 class="archive-name">{{ .Title }}</h2> </div> - {{ end }} - {{ end }} + {{- end }} + {{- end }} - {{ range $paginator.Pages }} + {{ range $paginator.Pages -}} <div class="archive-post"> <span class="archive-post-time"> {{ .Date.Format (.Site.Params.dateFormatToUse | default "2006-01-02") }} @@ -26,21 +26,21 @@ </a> </span> </div> - {{ end }} + {{- end }} </section> <!-- pagination --> <nav class="pagination"> - {{ with $paginator.Prev }} + {{ with $paginator.Prev -}} <a class="prev" href="{{ .URL }}"> <i class="iconfont icon-left"></i> <span class="prev-text">{{ T "prevPage" }}</span> </a> {{- end }} - {{ with $paginator.Next }} + {{ with $paginator.Next -}} <a class="next" href="{{ .URL }}"> <span class="next-text">{{ T "nextPage" }}</span> <i class="iconfont icon-right"></i> </a> {{- end }} </nav> -{{ end }} +{{- end }} |