diff --git a/layouts/partials/pagination.html b/layouts/partials/pagination.html new file mode 100644 index 0000000..37853da --- /dev/null +++ b/layouts/partials/pagination.html @@ -0,0 +1,5 @@ +{{ if gt .Paginator.TotalPages 1 }} + +{{ end }} diff --git a/layouts/partials/rss-link.html b/layouts/partials/rss-link.html new file mode 100644 index 0000000..55f9d1a --- /dev/null +++ b/layouts/partials/rss-link.html @@ -0,0 +1,5 @@ + + {{ with .OutputFormats.Get "rss" }} + {{ partial "icon.html" "rss-feed" }} + {{ end }} + diff --git a/layouts/partials/term-description.html b/layouts/partials/term-description.html new file mode 100644 index 0000000..a8f9231 --- /dev/null +++ b/layouts/partials/term-description.html @@ -0,0 +1,5 @@ +{{ with .Description }} +
+

{{ . | markdownify }}

+
+{{ end }} diff --git a/layouts/series/list.html b/layouts/series/list.html new file mode 100644 index 0000000..4f1da7b --- /dev/null +++ b/layouts/series/list.html @@ -0,0 +1,14 @@ +{{ define "main" }} +

+ {{ partial "icon.html" "files" }} + {{ .Title | markdownify }} +

+ +
+ +
+{{ end }} diff --git a/layouts/series/term.html b/layouts/series/term.html new file mode 100644 index 0000000..5ffee0f --- /dev/null +++ b/layouts/series/term.html @@ -0,0 +1,23 @@ +{{ define "main" }} +

+ {{ partial "icon.html" "files" }} + {{ .Title | markdownify }} + {{ partial "rss-link.html" . }} +

+ + {{ partial "term-description.html" . }} + +
+ +
+ + {{ partial "pagination.html" . }} +{{ end }} diff --git a/layouts/taxonomy/list.html b/layouts/taxonomy/list.html index 986fed8..b2b35f4 100644 --- a/layouts/taxonomy/list.html +++ b/layouts/taxonomy/list.html @@ -1,81 +1,23 @@ {{ define "main" }} - -

- {{ if eq .Data.Singular "tag" }} - {{ partial "icon.html" "tag" }} - {{ else if eq .Data.Singular "author" }} - {{ partial "icon.html" "user-circle" }} - {{ else if eq .Data.Singular "series" }} - {{ partial "icon.html" "files" }} - {{ else }} - {{ partial "icon.html" "filter" }} - {{ end }} - - {{ .Title | markdownify }} - - {{ if eq .Kind "term" }} - - {{ with .OutputFormats.Get "rss" }} - {{ partial "icon.html" "rss-feed" }} - {{ end }} - - {{ end }} -

- -{{ if eq .Kind "taxonomy" }} - -{{ if eq .Data.Singular "series" }} -
- -
-{{ else }} -
- -
-{{ end }} - -{{ else }} - - -{{ with .Description }} -
-

{{ . | markdownify }}

-
-{{ end }} - -{{ $items := .Paginator.Pages }} -{{ if eq .Data.Singular "series" }} -{{ $items = .Paginator.Pages.Reverse }} -{{ end }} -
- -
+ {{ .Title | markdownify }} + -{{ if gt .Paginator.TotalPages 1 }} - -{{ end }} - -{{ end }} - +
+ +
{{ end }} diff --git a/layouts/taxonomy/term.html b/layouts/taxonomy/term.html new file mode 100644 index 0000000..e58cc67 --- /dev/null +++ b/layouts/taxonomy/term.html @@ -0,0 +1,29 @@ +{{ define "main" }} +

+ {{ if eq .Data.Singular "tag" }} + {{ partial "icon.html" "tag" }} + {{ else if eq .Data.Singular "author" }} + {{ partial "icon.html" "user-circle" }} + {{ else }} + {{ partial "icon.html" "filter" }} + {{ end }} + + {{ .Title | markdownify }} + {{ partial "rss-link.html" . }} +

+ + {{ partial "term-description.html" . }} +
+ +
+ + {{ partial "pagination.html" . }} +{{ end }}