From 51fb029ca27d67d7cd67352cdede45e5b25868f7 Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Sun, 14 Aug 2022 19:01:21 +0200 Subject: switch back to LoveIt, other theme is deprectated --- themes/CodeIT/layouts/taxonomy/list.html | 43 ----------------------- themes/CodeIT/layouts/taxonomy/rss.xml | 41 ---------------------- themes/CodeIT/layouts/taxonomy/terms.html | 57 ------------------------------- 3 files changed, 141 deletions(-) delete mode 100644 themes/CodeIT/layouts/taxonomy/list.html delete mode 100644 themes/CodeIT/layouts/taxonomy/rss.xml delete mode 100644 themes/CodeIT/layouts/taxonomy/terms.html (limited to 'themes/CodeIT/layouts/taxonomy') diff --git a/themes/CodeIT/layouts/taxonomy/list.html b/themes/CodeIT/layouts/taxonomy/list.html deleted file mode 100644 index b332848..0000000 --- a/themes/CodeIT/layouts/taxonomy/list.html +++ /dev/null @@ -1,43 +0,0 @@ -{{- define "title" -}} - {{- .Title }} - {{ T .Data.Singular | default .Data.Singular }} - {{ .Site.Title -}} -{{- end -}} - -{{- define "content" -}} -
- {{- /* Title */ -}} -

- {{- $taxonomy := .Data.Singular -}} - {{- if eq $taxonomy "category" -}} -  {{ .Title }} - {{- else if eq $taxonomy "tag" -}} -  {{ .Title }} - {{- else -}} - {{- printf "%v - %v" (T $taxonomy | default $taxonomy) .Title -}} - {{- end -}} -

- - {{- /* Paginate */ -}} - {{- if .Pages -}} - {{- $pages := .Pages.GroupByDate "2006" -}} - {{- with .Site.Params.list.paginate | default .Site.Params.paginate -}} - {{- $pages = $.Paginate $pages . -}} - {{- else -}} - {{- $pages = .Paginate $pages -}} - {{- end -}} - {{- range $pages.PageGroups -}} -

{{ .Key }}

- {{- range .Pages -}} -
- - {{- .Title -}} - - - {{- $.Site.Params.list.dateFormat | default "01-02" | .Date.Format -}} - -
- {{- end -}} - {{- end -}} - {{- partial "paginator.html" . -}} - {{- end -}} -
-{{- end -}} diff --git a/themes/CodeIT/layouts/taxonomy/rss.xml b/themes/CodeIT/layouts/taxonomy/rss.xml deleted file mode 100644 index 45263a5..0000000 --- a/themes/CodeIT/layouts/taxonomy/rss.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - {{- .Title }} - {{ T .Data.Singular | default .Data.Singular }} - {{ .Site.Title -}} - - - {{- .Permalink -}} - - - {{- .Title }} - {{ T .Data.Singular | default .Data.Singular }} - {{ .Site.Title -}} - - Hugo -- gohugo.io - {{- with .Site.LanguageCode -}} - - {{- . -}} - - {{- end -}} - {{- with .Site.Author.email -}} - - {{- . }}{{ with $.Site.Author.name }} ({{ . }}){{ end -}} - - - {{- . }}{{ with $.Site.Author.name }} ({{ . }}){{ end -}} - - {{- end -}} - {{- with .Site.Copyright -}} - - {{- . -}} - - {{- end -}} - {{- if not .Date.IsZero -}} - - {{- .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" -}} - - {{- end -}} - - {{- range .Pages | first (.Site.Params.list.rss | default 10) -}} - {{- dict "Page" . "Site" .Site | partial "rss/item.html" -}} - {{- end -}} - - diff --git a/themes/CodeIT/layouts/taxonomy/terms.html b/themes/CodeIT/layouts/taxonomy/terms.html deleted file mode 100644 index 077f8bf..0000000 --- a/themes/CodeIT/layouts/taxonomy/terms.html +++ /dev/null @@ -1,57 +0,0 @@ -{{- define "title" -}} - {{- .Params.Title | default (T .Data.Plural) | default .Data.Plural | dict "Some" | T "allSome" }} - {{ .Site.Title -}} -{{- end -}} - -{{- define "content" -}} - {{- $taxonomies := .Data.Plural -}} - {{- $terms := .Data.Terms.ByCount -}} - {{- $type := .Type -}} - -
- {{- /* Title */ -}} -

- {{- .Params.Title | default (T $taxonomies) | default $taxonomies | dict "Some" | T "allSome" -}} -

- - {{- /* Categories Page */ -}} - {{- if eq $taxonomies "categories" -}} -
- {{- range $terms -}} - {{- $term := .Term -}} - {{- $pages := .Pages -}} - {{- with $.Site.GetPage "taxonomy" (printf "%v/%v" $type $term) -}} -
-
-

- -  {{ .Page.Title }} - -

- {{- range first 5 $pages -}} - - {{- end -}} - {{- if gt (len $pages) 5 -}} - - {{ T "more" }} >> - - {{- end -}} -
-
- {{- end -}} - {{- end -}} -
- - {{- /* Tag Cloud Page */ -}} - {{- else if eq $taxonomies "tags" -}} -
- {{- range $.Site.Taxonomies.tags.ByCount -}} - {{ .Page.Title }} {{ .Count }} - {{- end -}} -
- {{- end -}} -
-{{- end -}} -- cgit v1.2.3