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 --- .../layouts/_default/_markup/render-image.html | 10 --- .../layouts/_default/_markup/render-link.html | 6 -- themes/LoveIt/layouts/_default/baseof.html | 48 -------------- themes/LoveIt/layouts/_default/section.html | 36 ----------- themes/LoveIt/layouts/_default/single.html | 24 ------- themes/LoveIt/layouts/_default/single.md | 3 - themes/LoveIt/layouts/_default/summary.html | 75 ---------------------- 7 files changed, 202 deletions(-) delete mode 100644 themes/LoveIt/layouts/_default/_markup/render-image.html delete mode 100644 themes/LoveIt/layouts/_default/_markup/render-link.html delete mode 100644 themes/LoveIt/layouts/_default/baseof.html delete mode 100644 themes/LoveIt/layouts/_default/section.html delete mode 100644 themes/LoveIt/layouts/_default/single.html delete mode 100644 themes/LoveIt/layouts/_default/single.md delete mode 100644 themes/LoveIt/layouts/_default/summary.html (limited to 'themes/LoveIt/layouts/_default') diff --git a/themes/LoveIt/layouts/_default/_markup/render-image.html b/themes/LoveIt/layouts/_default/_markup/render-image.html deleted file mode 100644 index b92397e..0000000 --- a/themes/LoveIt/layouts/_default/_markup/render-image.html +++ /dev/null @@ -1,10 +0,0 @@ -{{- if .Title -}} -
- {{- dict "Src" .Destination "Title" .Text "Caption" .Title "Linked" true "Resources" .Page.Resources | partial "plugin/img.html" -}} -
- {{- .Title | safeHTML -}} -
-
-{{- else -}} - {{- dict "Src" .Destination "Title" .Text "Resources" .Page.Resources | partial "plugin/img.html" -}} -{{- end -}} diff --git a/themes/LoveIt/layouts/_default/_markup/render-link.html b/themes/LoveIt/layouts/_default/_markup/render-link.html deleted file mode 100644 index f10d441..0000000 --- a/themes/LoveIt/layouts/_default/_markup/render-link.html +++ /dev/null @@ -1,6 +0,0 @@ -{{- $destination := .Destination -}} -{{- with dict "Path" $destination "Resources" .Page.Resources | partial "function/resource.html" -}} - {{- $destination = .RelPermalink -}} -{{- end -}} -{{- $options := dict "Destination" $destination "Title" .Title "Content" .Text -}} -{{- partial "plugin/a.html" $options -}} diff --git a/themes/LoveIt/layouts/_default/baseof.html b/themes/LoveIt/layouts/_default/baseof.html deleted file mode 100644 index 66a6c3c..0000000 --- a/themes/LoveIt/layouts/_default/baseof.html +++ /dev/null @@ -1,48 +0,0 @@ -{{- partial "init.html" . -}} - - - - - - - - {{ block "title" . }}{{ .Site.Title }}{{ end }} - - {{- partial "head/meta.html" . -}} - {{- partial "head/link.html" . -}} - {{- partial "head/seo.html" . -}} - - - {{- /* Check theme isDark before body rendering */ -}} - {{- $theme := .Site.Params.defaulttheme -}} - - -
- - {{- /* Body wrapper */ -}} -
- {{- partial "header.html" . -}} -
-
- {{- block "content" . }}{{ end -}} -
-
- {{- partial "footer.html" . -}} -
- -
- {{- /* top button */ -}} - - - - - {{- /* comment button */ -}} - - - -
- - {{- /* Load JavaScript scripts and CSS */ -}} - {{- partial "assets.html" . -}} - - diff --git a/themes/LoveIt/layouts/_default/section.html b/themes/LoveIt/layouts/_default/section.html deleted file mode 100644 index 2775891..0000000 --- a/themes/LoveIt/layouts/_default/section.html +++ /dev/null @@ -1,36 +0,0 @@ -{{- define "title" }} - {{- .Params.Title | default (T .Section) | default .Section | dict "Some" | T "allSome" }} - {{ .Site.Title -}} -{{- end -}} - -{{- define "content" -}} -
- {{- /* Title */ -}} -

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

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

{{ .Key }}

- {{- range .Pages -}} - - {{- end -}} - {{- end -}} - {{- partial "paginator.html" . -}} - {{- end -}} -
-{{- end -}} diff --git a/themes/LoveIt/layouts/_default/single.html b/themes/LoveIt/layouts/_default/single.html deleted file mode 100644 index f8f72d7..0000000 --- a/themes/LoveIt/layouts/_default/single.html +++ /dev/null @@ -1,24 +0,0 @@ -{{- define "title" }}{{ .Title }} - {{ .Site.Title }}{{ end -}} - -{{- define "content" -}} - {{- $params := .Scratch.Get "params" -}} -
- {{- /* Title */ -}} -

- {{- .Title -}} -

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

{{ . }}

- {{- end -}} - - {{- /* Content */ -}} -
- {{- dict "Content" .Content "Ruby" $params.ruby "Fraction" $params.fraction "Fontawesome" $params.fontawesome | partial "function/content.html" | safeHTML -}} -
- - {{- /* Comment */ -}} - {{- partial "comment.html" . -}} -
-{{- end -}} diff --git a/themes/LoveIt/layouts/_default/single.md b/themes/LoveIt/layouts/_default/single.md deleted file mode 100644 index e34c2d4..0000000 --- a/themes/LoveIt/layouts/_default/single.md +++ /dev/null @@ -1,3 +0,0 @@ -# {{ .Title }} - -{{ .RawContent }} diff --git a/themes/LoveIt/layouts/_default/summary.html b/themes/LoveIt/layouts/_default/summary.html deleted file mode 100644 index 7169220..0000000 --- a/themes/LoveIt/layouts/_default/summary.html +++ /dev/null @@ -1,75 +0,0 @@ -{{- $params := .Params | merge .Site.Params.page -}} - -
- {{- /* Featured image */ -}} - {{- $image := $params.featuredimagepreview | default $params.featuredimage -}} - {{- with .Resources.GetMatch "featured-image" -}} - {{- $image = .RelPermalink -}} - {{- end -}} - {{- with .Resources.GetMatch "featured-image-preview" -}} - {{- $image = .RelPermalink -}} - {{- end -}} - {{- with $image -}} - - {{- end -}} - - {{- /* Title */ -}} -

- {{ .Title | emojify }} -

- - {{- /* Meta */ -}} - - - {{- /* Summary content */ -}} -
- {{- with .Summary -}} - {{- dict "Content" . "Ruby" $params.ruby "Fraction" $params.fraction "Fontawesome" $params.fontawesome | partial "function/content.html" | safeHTML -}} - {{- else -}} - {{- .Description | safeHTML -}} - {{- end -}} -
- - {{- /* Footer */ -}} - -
\ No newline at end of file -- cgit v1.2.3