diff options
author | Dillon <dillonzq@outlook.com> | 2020-02-01 14:47:58 +0300 |
---|---|---|
committer | Dillon <dillonzq@outlook.com> | 2020-02-01 14:47:58 +0300 |
commit | 437ef95e14ed568fd26fd45a950561b8588da024 (patch) | |
tree | fec451fca1e817db9918f4fcd84c2af06a2fa47f /layouts/taxonomy | |
parent | 8aa4b6dce6da9601411c7caa07e6352c98ddc4f4 (diff) |
feat(exampleSite): add some posts to exampleSite
Diffstat (limited to 'layouts/taxonomy')
-rw-r--r-- | layouts/taxonomy/list.html | 6 | ||||
-rw-r--r-- | layouts/taxonomy/terms.html | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/layouts/taxonomy/list.html b/layouts/taxonomy/list.html index 7f5baa0..55a92b7 100644 --- a/layouts/taxonomy/list.html +++ b/layouts/taxonomy/list.html @@ -3,13 +3,13 @@ {{- end -}} {{- define "content" -}} - <div class="warpper archive"> + <div class="page archive"> <h2 class="post-title animated pulse faster"> {{- $taxonomy := .Data.Singular -}} {{- if eq $taxonomy "category" -}} - <i class="far fa-folder-open fa-fw"></i> {{ .Title }} + <i class="far fa-folder-open fa-fw"></i> {{ humanize .Title }} {{- else if eq $taxonomy "tag" -}} - <i class="fas fa-tag fa-fw"></i> {{ .Title }} + <i class="fas fa-tag fa-fw"></i> {{ humanize .Title }} {{- else -}} {{- printf "%s - %s" (T $taxonomy | default (humanize $taxonomy)) .Title -}} {{- end -}} diff --git a/layouts/taxonomy/terms.html b/layouts/taxonomy/terms.html index 38679fe..db17ffc 100644 --- a/layouts/taxonomy/terms.html +++ b/layouts/taxonomy/terms.html @@ -1,5 +1,5 @@ {{- define "title" -}} - {{- T "all" | humanize}}{{ T .Data.Plural | default .Data.Plural | humanize }} | {{ .Site.Title -}} + {{- T "all" | humanize }}{{ T .Data.Plural | default .Data.Plural | humanize }} | {{ .Site.Title -}} {{- end -}} {{- define "content" -}} @@ -7,7 +7,7 @@ {{- $terms := .Data.Terms.ByCount -}} {{- $type := .Type -}} - <div class="warpper archive"> + <div class="page archive"> <h2 class="post-title animated pulse faster"> {{- T "all" | humanize}}{{ T $taxonomies | default $taxonomies | humanize -}} </h2> |