summaryrefslogtreecommitdiff
path: root/themes/LoveIt/layouts/taxonomy
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2021-02-18 22:21:36 +0100
committerChristoph Cullmann <cullmann@kde.org>2021-02-18 22:21:36 +0100
commit0c7cb4486a89ec6fe9680e6569ef41d4b82d557d (patch)
tree081941052bcab0caf69487b6bf5ab2df5deb3b7b /themes/LoveIt/layouts/taxonomy
parent640572ecab69291d2c266de2011b795a861e7c21 (diff)
use maintained theme
Diffstat (limited to 'themes/LoveIt/layouts/taxonomy')
-rw-r--r--themes/LoveIt/layouts/taxonomy/list.html43
-rw-r--r--themes/LoveIt/layouts/taxonomy/rss.xml41
-rw-r--r--themes/LoveIt/layouts/taxonomy/terms.html57
3 files changed, 0 insertions, 141 deletions
diff --git a/themes/LoveIt/layouts/taxonomy/list.html b/themes/LoveIt/layouts/taxonomy/list.html
deleted file mode 100644
index b332848..0000000
--- a/themes/LoveIt/layouts/taxonomy/list.html
+++ /dev/null
@@ -1,43 +0,0 @@
-{{- define "title" -}}
- {{- .Title }} - {{ T .Data.Singular | default .Data.Singular }} - {{ .Site.Title -}}
-{{- end -}}
-
-{{- define "content" -}}
- <div class="page archive">
- {{- /* Title */ -}}
- <h2 class="single-title animated pulse faster">
- {{- $taxonomy := .Data.Singular -}}
- {{- if eq $taxonomy "category" -}}
- <i class="far fa-folder-open fa-fw"></i>&nbsp;{{ .Title }}
- {{- else if eq $taxonomy "tag" -}}
- <i class="fas fa-tag fa-fw"></i>&nbsp;{{ .Title }}
- {{- else -}}
- {{- printf "%v - %v" (T $taxonomy | default $taxonomy) .Title -}}
- {{- end -}}
- </h2>
-
- {{- /* 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 -}}
- <h3 class="group-title">{{ .Key }}</h3>
- {{- range .Pages -}}
- <article class="archive-item">
- <a href="{{ .RelPermalink }}" class="archive-item-link">
- {{- .Title -}}
- </a>
- <span class="archive-item-date">
- {{- $.Site.Params.list.dateFormat | default "01-02" | .Date.Format -}}
- </span>
- </article>
- {{- end -}}
- {{- end -}}
- {{- partial "paginator.html" . -}}
- {{- end -}}
- </div>
-{{- end -}}
diff --git a/themes/LoveIt/layouts/taxonomy/rss.xml b/themes/LoveIt/layouts/taxonomy/rss.xml
deleted file mode 100644
index a597e56..0000000
--- a/themes/LoveIt/layouts/taxonomy/rss.xml
+++ /dev/null
@@ -1,41 +0,0 @@
-<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
- <channel>
- <title>
- {{- .Title }} - {{ T .Data.Singular | default .Data.Singular }} - {{ .Site.Title -}}
- </title>
- <link>
- {{- .Permalink -}}
- </link>
- <description>
- {{- .Title }} - {{ T .Data.Singular | default .Data.Singular }} - {{ .Site.Title -}}
- </description>
- <generator>Hugo -- gohugo.io</generator>
- {{- with .Site.LanguageCode -}}
- <language>
- {{- . -}}
- </language>
- {{- end -}}
- {{- with .Site.Author.email -}}
- <managingEditor>
- {{- . }}{{ with $.Site.Author.name }} ({{ . }}){{ end -}}
- </managingEditor>
- <webMaster>
- {{- . }}{{ with $.Site.Author.name }} ({{ . }}){{ end -}}
- </webMaster>
- {{- end -}}
- {{- with .Site.Copyright -}}
- <copyright>
- {{- . -}}
- </copyright>
- {{- end -}}
- {{- if not .Date.IsZero -}}
- <lastBuildDate>
- {{- .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" -}}
- </lastBuildDate>
- {{- end -}}
- <atom:link href="{{ .Permalink }}" rel="self" type="application/rss+xml" />
- {{- range .Pages | first (.Site.Params.list.rss | default 10) -}}
- {{- dict "Page" . "Site" .Site | partial "rss/item.html" -}}
- {{- end -}}
- </channel>
-</rss>
diff --git a/themes/LoveIt/layouts/taxonomy/terms.html b/themes/LoveIt/layouts/taxonomy/terms.html
deleted file mode 100644
index 077f8bf..0000000
--- a/themes/LoveIt/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 -}}
-
- <div class="page archive">
- {{- /* Title */ -}}
- <h2 class="single-title animated pulse faster">
- {{- .Params.Title | default (T $taxonomies) | default $taxonomies | dict "Some" | T "allSome" -}}
- </h2>
-
- {{- /* Categories Page */ -}}
- {{- if eq $taxonomies "categories" -}}
- <div class="categories-card">
- {{- range $terms -}}
- {{- $term := .Term -}}
- {{- $pages := .Pages -}}
- {{- with $.Site.GetPage "taxonomy" (printf "%v/%v" $type $term) -}}
- <div class="card-item">
- <div class="card-item-wrapper">
- <h3 class="card-item-title">
- <a href="{{ .RelPermalink }}">
- <i class="far fa-folder fa-fw"></i>&nbsp;{{ .Page.Title }}
- </a>
- </h3>
- {{- range first 5 $pages -}}
- <article class="archive-item">
- <a href="{{ .RelPermalink }}" class="archive-item-link">
- {{- .Title -}}
- </a>
- </article>
- {{- end -}}
- {{- if gt (len $pages) 5 -}}
- <span class="more-post">
- <a href="{{ .RelPermalink }}" class="more-single-link">{{ T "more" }} >></a>
- </span>
- {{- end -}}
- </div>
- </div>
- {{- end -}}
- {{- end -}}
- </div>
-
- {{- /* Tag Cloud Page */ -}}
- {{- else if eq $taxonomies "tags" -}}
- <div class="tag-cloud-tags">
- {{- range $.Site.Taxonomies.tags.ByCount -}}
- <a href="{{ .Page.RelPermalink }}">{{ .Page.Title }} <sup>{{ .Count }}</sup></a>
- {{- end -}}
- </div>
- {{- end -}}
- </div>
-{{- end -}}