diff --git a/layouts/partials/archive.html b/layouts/partials/archive.html index b408930..52ef31b 100644 --- a/layouts/partials/archive.html +++ b/layouts/partials/archive.html @@ -11,82 +11,60 @@ My collection of slash pages.
{{ else }}

{{ .Title | markdownify }}{{ if eq .Kind "term" }}  

- {{ with .Description }}{{ . }}
{{ else }}
{{ end }} + {{ with .Description }}{{ . }}{{ end }} {{ end }} +
{{ end }}{{ end }} {{ .Content }} - -{{- if eq .Kind "taxonomy" }} - {{- if eq .Title "Tags" }} - {{/* list of all tags */}} -
- {{- range $key, $value := .Site.Taxonomies }} - {{- $slicedTags := ($value.ByCount) }} - {{- range $slicedTags }} - {{- if eq $key "tags"}} -
{{ .Name }}{{ .Count }}
- {{- end }} +{{- if and (eq .Kind "taxonomy") (eq .Title "Tags") }} + {{/* /tags/ */}} +
+ {{- range $key, $value := .Site.Taxonomies }} + {{- $slicedTags := ($value.ByCount) }} + {{- range $slicedTags }} + {{- if eq $key "tags"}} +
{{ .Name }}{{ .Count }}
{{- end }} {{- end }} -
- {{- else }} - {{/* list of all categories */}} - {{- range .Pages.ByDate.Reverse }} - {{- $postDate := .Date.Format "2006-01-02" }} - {{- $updateDate := .Lastmod.Format "2006-01-02" }} -
-
-

{{ .Title | markdownify }}

- -
-
- {{ .Description }} -
-
-
- {{ end }} {{- end }} -{{- else }} - {{- if eq .Title "/slashes" }} - {{/* slash page archive */}} - {{- $sortedSlashes := sort $pages "Title" }} - {{- range $sortedSlashes }} - {{- $postDate := .Date.Format "2006-01-02" }} - {{- $updateDate := .Lastmod.Format "2006-01-02" }} -
-
-

{{ .Title | markdownify }}

- -
-
- {{ .Description }} -
-
-
- {{- end }} - {{- else }} - {{/* regular posts archive */}} - {{- range (.Paginate $pages).Pages }} +
+{{- else if or (eq .Kind "taxonomy") (eq .Title "/slashes") }} + {{/* /categories/ or /slashes/ */}} + {{- $sorted := sort $pages "Title" }} + {{- range $sorted }} {{- $postDate := .Date.Format "2006-01-02" }} {{- $updateDate := .Lastmod.Format "2006-01-02" }}
-

{{ .Title | markdownify }}

- +

{{ .Title | markdownify }}

+
- {{if .Description }}{{ .Description }}{{ else }}{{ .Summary }}{{ end }} + {{ .Description }} +
+
+
+ {{ end }} +{{- else }} + {{/* regular posts archive */}} + {{- range (.Paginate $pages).Pages }} + {{- $postDate := .Date.Format "2006-01-02" }} + {{- $updateDate := .Lastmod.Format "2006-01-02" }} +
+
+

{{ .Title | markdownify }}

+ +
+
+ {{if .Description }}{{ .Description }}{{ else }}{{ .Summary }}{{ end }}

- {{- end }} - {{- template "_internal/pagination.html" . }} {{- end }} + {{- template "_internal/pagination.html" . }} {{- end }} \ No newline at end of file