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/posts/rss.xml | 41 ------------ themes/CodeIT/layouts/posts/single.html | 112 -------------------------------- 2 files changed, 153 deletions(-) delete mode 100644 themes/CodeIT/layouts/posts/rss.xml delete mode 100644 themes/CodeIT/layouts/posts/single.html (limited to 'themes/CodeIT/layouts/posts') diff --git a/themes/CodeIT/layouts/posts/rss.xml b/themes/CodeIT/layouts/posts/rss.xml deleted file mode 100644 index 3231bd4..0000000 --- a/themes/CodeIT/layouts/posts/rss.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - {{- .Params.Title | default (T .Section) | default .Section | dict "Some" | T "allSome" }} - {{ .Site.Title -}} - - - {{- .Permalink -}} - - - {{- .Params.Title | default (T .Section) | default .Section | dict "Some" | T "allSome" }} | {{ .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.section.rss | default 10) -}} - {{- dict "Page" . "Site" .Site | partial "rss/item.html" -}} - {{- end -}} - - diff --git a/themes/CodeIT/layouts/posts/single.html b/themes/CodeIT/layouts/posts/single.html deleted file mode 100644 index 3eab250..0000000 --- a/themes/CodeIT/layouts/posts/single.html +++ /dev/null @@ -1,112 +0,0 @@ -{{- define "title" }}{{ .Title }} - {{ .Site.Title }}{{ end -}} - -{{- define "content" -}} - {{- $params := .Scratch.Get "params" -}} - - {{- $toc := $params.toc -}} - {{- if eq $toc true -}} - {{- $toc = .Site.Params.page.toc | default dict -}} - {{- else if eq $toc false -}} - {{- $toc = dict "enable" false -}} - {{- end -}} - - {{- /* Auto TOC */ -}} - {{- if ne $toc.enable false -}} -
-

{{ T "contents" }}

-
-
- {{- end -}} - -
- {{- /* Title */ -}} -

{{ .Title }}

- - {{- /* Subtitle */ -}} - {{- with $params.subtitle -}} -

{{ . }}

- {{- end -}} - - {{- /* Meta */ -}} - - - {{- /* Featured image */ -}} - {{- $image := $params.featuredimage -}} - {{- with .Resources.GetMatch "featured-image" -}} - {{- $image = .RelPermalink -}} - {{- end -}} - {{- with $image -}} - - {{- end -}} - - {{- /* Static TOC */ -}} - {{- if ne $toc.enable false -}} -
-
- {{ T "contents" }} - -
-
- {{- dict "Content" .TableOfContents "Ruby" $params.ruby "Fraction" $params.fraction "Fontawesome" $params.fontawesome | partial "function/content.html" | safeHTML -}} -
-
- {{- end -}} - - {{- /* Content */ -}} -
- {{- dict "Content" .Content "Ruby" $params.ruby "Fraction" $params.fraction "Fontawesome" $params.fontawesome | partial "function/content.html" | safeHTML -}} -
- - {{- /* Footer */ -}} - {{- partial "single/footer.html" . -}} - - {{- /* Comment */ -}} - {{- partial "comment.html" . -}} -
-{{- end -}} -- cgit v1.2.3