From 582a8a33aff644a6b07534aaf677973abc6f154c Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Fri, 21 Oct 2022 21:01:11 +0200 Subject: use different theme that is a lot slimer --- themes/LoveIt/layouts/posts/rss.xml | 41 ------------- themes/LoveIt/layouts/posts/single.html | 101 -------------------------------- 2 files changed, 142 deletions(-) delete mode 100644 themes/LoveIt/layouts/posts/rss.xml delete mode 100644 themes/LoveIt/layouts/posts/single.html (limited to 'themes/LoveIt/layouts/posts') diff --git a/themes/LoveIt/layouts/posts/rss.xml b/themes/LoveIt/layouts/posts/rss.xml deleted file mode 100644 index 454cdec..0000000 --- a/themes/LoveIt/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/LoveIt/layouts/posts/single.html b/themes/LoveIt/layouts/posts/single.html deleted file mode 100644 index 5f856a2..0000000 --- a/themes/LoveIt/layouts/posts/single.html +++ /dev/null @@ -1,101 +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 | emojify }}

- - {{- /* 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