From 2be20c010860683fbb59135833fe8aa537eaee78 Mon Sep 17 00:00:00 2001 From: Senk Ju <12718920+oskar2517@users.noreply.github.com> Date: Wed, 20 Nov 2024 17:08:10 +0100 Subject: [PATCH] delete _default folder --- themes/slick/layouts/_default/baseof.html | 67 ---------------------- themes/slick/layouts/_default/list.html | 27 --------- themes/slick/layouts/_default/rss.xml | 68 ----------------------- themes/slick/layouts/_default/single.html | 17 ------ themes/slick/layouts/_default/terms.html | 16 ------ 5 files changed, 195 deletions(-) delete mode 100644 themes/slick/layouts/_default/baseof.html delete mode 100644 themes/slick/layouts/_default/list.html delete mode 100644 themes/slick/layouts/_default/rss.xml delete mode 100644 themes/slick/layouts/_default/single.html delete mode 100644 themes/slick/layouts/_default/terms.html diff --git a/themes/slick/layouts/_default/baseof.html b/themes/slick/layouts/_default/baseof.html deleted file mode 100644 index 31f8a93..0000000 --- a/themes/slick/layouts/_default/baseof.html +++ /dev/null @@ -1,67 +0,0 @@ - - - - - {{ if and (.Title) (not (eq .Title .Site.Title)) }}{{ .Title }} | {{ end }}{{ .Site.Title }} - - - - {{- with default .Site.Params.author .Page.Params.author }} - {{- $authorName := "" }} - {{- if reflect.IsMap . }} - {{- with .name }}{{- $authorName = . }}{{- end }} - {{- else }} - {{- $authorName = . }} - {{- end }} - {{- with $authorName }} - - {{- end }} - {{- end }} - {{ if .Site.Params.opengraph }}{{ template "_internal/opengraph.html" . }}{{ end -}} - {{ if .Site.Params.schema }}{{ template "_internal/schema.html" . }}{{ end -}} - {{ if .Site.Params.twitter_cards }}{{ template "_internal/twitter_cards.html" . }}{{ end -}} - {{ hugo.Generator }} - {{- with .Site.Home.OutputFormats.Get "RSS" }} - {{- $type := printf "type=%q" .MediaType | safeHTMLAttr }} - {{- $href := printf "href=%q" .RelPermalink | safeHTMLAttr }} - - {{- $rssLink := .RelPermalink }} - {{- with $.Page.OutputFormats.Get "RSS" }} - {{- if ne $rssLink .RelPermalink }} - {{- $type := printf "type=%q" .MediaType | safeHTMLAttr }} - {{- $href := printf "href=%q" .RelPermalink | safeHTMLAttr }} - - {{- end }} - {{- end }} - {{- end }} - {{- with default "favicon.ico" .Site.Params.favicon }} - {{- if resources.Get . }} - {{- $favicon := resources.Get . | resources.Fingerprint }} - {{- $type := printf "type=%q" $favicon.MediaType | safeHTMLAttr }} - {{- $href := printf "href=%q" $favicon.RelPermalink | safeHTMLAttr }} - {{- $hash := printf "integrity=%q" $favicon.Data.Integrity | safeHTMLAttr }} - - {{- end }} - {{- end }} - {{- $style := resources.Get "style.css" | resources.Fingerprint }} - {{- $href := printf "href=%q" $style.RelPermalink | safeHTMLAttr }} - {{- $hash := printf "integrity=%q" $style.Data.Integrity | safeHTMLAttr }} - - {{- $script := resources.Get "script.js" | resources.Fingerprint }} - {{- $href := printf "src=%q" $script.RelPermalink | safeHTMLAttr }} - {{- $hash := printf "integrity=%q" $script.Data.Integrity | safeHTMLAttr }} - - {{- partial "head.html" . -}} - - -
-
-
- {{ partial "navbar.html" . }} - {{ block "main" . }}{{ end }} - {{ partial "footer.html" . }} -
-
-
- - diff --git a/themes/slick/layouts/_default/list.html b/themes/slick/layouts/_default/list.html deleted file mode 100644 index 449d813..0000000 --- a/themes/slick/layouts/_default/list.html +++ /dev/null @@ -1,27 +0,0 @@ -{{- define "main" }} -{{- $showfull := default false .Site.Params.showFullContent }} -{{- $orderkey := default "date" .Site.Params.orderPageParam }} -{{- $orderrev := default true .Site.Params.orderPageReverse }} -{{- $pagepool := .Pages.ByParam $orderkey }} -{{- $pagepool := cond $orderrev $pagepool.Reverse $pagepool }} -{{- range $idx, $_ := (.Paginate $pagepool).Pages }} - - - {{- if default (default true .Site.Params.showMeta) .Params.showmeta }} -
-

- {{ if .Draft }}DRAFT: {{ end }} - {{ .Title }} -

- {{ partial "post_meta.html" . }} -
- {{- end }} -
- {{ cond $showfull .Content .Summary }} -
- -
-{{- end }} -{{ partial "pagination.html" . }} -{{- end }} - diff --git a/themes/slick/layouts/_default/rss.xml b/themes/slick/layouts/_default/rss.xml deleted file mode 100644 index 2a78d00..0000000 --- a/themes/slick/layouts/_default/rss.xml +++ /dev/null @@ -1,68 +0,0 @@ -{{- $pctx := cond .IsHome .Site . -}} -{{- $limiting := default 0 .Site.Config.Services.RSS.Limit -}} -{{- $orderkey := default "date" .Site.Params.orderPageParam -}} -{{- $orderrev := default true .Site.Params.orderPageReverse -}} -{{- $pagepool := $pctx.RegularPages.ByParam $orderkey -}} -{{- $pagepool := cond $orderrev $pagepool.Reverse $pagepool -}} -{{- if gt $limiting 0 -}} - {{- $pagepool := first $limiting $pagepool -}} -{{- end -}} -{{- printf "" | safeHTML }} - - - {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} on {{ end }}{{ .Site.Title }}{{ end }} - {{ .Permalink }} - Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{ . }} {{ end }}{{ end }}on {{ .Site.Title }} - Hugo {{ hugo.Version }} - {{- with .Site.LanguageCode }} - {{ . }} - {{- end }} - {{- with .Site.Params.author }} - {{- $authorName := "" }} - {{- $authorEmail := "" }} - {{- if reflect.IsMap . }} - {{- with .name }}{{- $authorName = . }}{{- end }} - {{- with .email }}{{- $authorEmail = . }}{{- end }} - {{- else }} - {{- $authorName = . }} - {{- end }} - {{- with $authorEmail }} - {{ . }}{{ with $authorName }} ({{ . }}){{ end }} - {{ . }}{{ with $authorName }} ({{ . }}){{ end }} - {{- end }} - {{- end }} - {{- with .Site.Copyright }} - {{ . }} - {{- end }} - {{- if not .Date.IsZero }} - {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} - {{- end }} - {{- with .OutputFormats.Get "RSS" }} - {{- $href := printf "href=%q" .Permalink | safeHTMLAttr }} - {{- $type := printf "type=%q" .MediaType | safeHTMLAttr }} - - {{- end }} - {{- range $pagepool }} - - {{ .Title }} - {{ .Permalink }} - {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} - {{- with default .Site.Params.author .Page.Params.author }} - {{- $authorName := "" }} - {{- $authorEmail := "" }} - {{- if reflect.IsMap . }} - {{- with .name }}{{- $authorName = . }}{{- end }} - {{- with .email }}{{- $authorEmail = . }}{{- end }} - {{- else }} - {{- $authorName = . }} - {{- end }} - {{- with $authorEmail }} - {{ . }}{{ with $authorName }} ({{ . }}){{ end }} - {{- end }} - {{- end }} - {{ .Permalink }} - {{ .Content | html }} - - {{- end }} - - diff --git a/themes/slick/layouts/_default/single.html b/themes/slick/layouts/_default/single.html deleted file mode 100644 index f17531e..0000000 --- a/themes/slick/layouts/_default/single.html +++ /dev/null @@ -1,17 +0,0 @@ -{{- define "main" }} -{{- $showmeta := default (default true $.Site.Params.showMeta) .Params.showmeta }} -
- {{- if $showmeta }} -
-

- {{ if .Draft }}DRAFT: {{ end }} - {{ .Title }} -

- {{ partial "post_meta.html" . }} -
- {{- end }} -
- {{ .Content }} -
-
-{{- end }} diff --git a/themes/slick/layouts/_default/terms.html b/themes/slick/layouts/_default/terms.html deleted file mode 100644 index 49ac246..0000000 --- a/themes/slick/layouts/_default/terms.html +++ /dev/null @@ -1,16 +0,0 @@ -{{- define "main" }} -
-

{{ .Title }}:

- -
-{{- end }}