From b32bf4de7ecc8749cc18e474f480d68d810ee4cf Mon Sep 17 00:00:00 2001 From: Nils Schulte Date: Sun, 26 Jul 2020 13:05:07 +0200 Subject: [PATCH] deleted layout folder and added icon to rss --- layouts/_default/list.atom.xml | 31 --- layouts/_default/list.html | 26 --- layouts/_default/list.rss.xml | 33 --- layouts/_default/single.html | 18 -- layouts/index.html | 28 --- layouts/partials/article-footer.html | 0 layouts/partials/foot.html | 2 - layouts/partials/footer.html | 11 - layouts/partials/head.html | 210 ------------------ layouts/partials/header.html | 12 - layouts/partials/nav.html | 5 - layouts/partials/title.txt | 15 -- .../nils-theme/layouts/_default/list.rss.xml | 1 + 13 files changed, 1 insertion(+), 391 deletions(-) delete mode 100644 layouts/_default/list.atom.xml delete mode 100644 layouts/_default/list.html delete mode 100644 layouts/_default/list.rss.xml delete mode 100644 layouts/_default/single.html delete mode 100644 layouts/index.html delete mode 100644 layouts/partials/article-footer.html delete mode 100644 layouts/partials/foot.html delete mode 100644 layouts/partials/footer.html delete mode 100644 layouts/partials/head.html delete mode 100644 layouts/partials/header.html delete mode 100644 layouts/partials/nav.html delete mode 100644 layouts/partials/title.txt diff --git a/layouts/_default/list.atom.xml b/layouts/_default/list.atom.xml deleted file mode 100644 index 4634789..0000000 --- a/layouts/_default/list.atom.xml +++ /dev/null @@ -1,31 +0,0 @@ -{{ printf "" | safeHTML }} - - {{ .Site.Title }} - - {{ with .OutputFormats.Get "Atom" }} - {{ printf "" .Permalink .MediaType | safeHTML }} - {{ end }} - {{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }} - - {{ with $.Site.Author.name }}{{.}}{{end}} - {{ with $.Site.Author.email }}{{.}}{{end}} - - Hugo - {{ .Permalink }} - {{ range first 15 .Pages }} - - {{ .Title }} - - {{ .Permalink }} - {{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }} - {{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" | safeHTML }} - {{ .Content | html }} - {{ range .Params.tags }} - - {{ end }} - {{ range .Params.categories }} - - {{ end }} - - {{ end }} - diff --git a/layouts/_default/list.html b/layouts/_default/list.html deleted file mode 100644 index b5f9a94..0000000 --- a/layouts/_default/list.html +++ /dev/null @@ -1,26 +0,0 @@ -{{ partial "header.html" . }} - - -
- {{ range .Paginator.Pages }} -
-
- -

- {{- .Title -}} - {{ if and .Params.lang (ne .Site.Language.Lang .Params.lang) }} - [{{ .Params.lang }}] - {{ end }} -

-
-

- {{.Summary}} -

-
- {{ end }} - -
- - - -{{ partial "footer.html" . }} diff --git a/layouts/_default/list.rss.xml b/layouts/_default/list.rss.xml deleted file mode 100644 index ca73944..0000000 --- a/layouts/_default/list.rss.xml +++ /dev/null @@ -1,33 +0,0 @@ -{{ printf "" | safeHTML }} - - - {{ .Site.Title }} - {{ .Permalink }} - Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }} - Hugo{{ with .Site.LanguageCode }} - {{.}}{{end}}{{ with .Site.Author.email }} - {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }} - {{.}}{{ with $.Site.Author.name }} ({{.}}){{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" }} - {{ printf "" .Permalink .MediaType | safeHTML }} - {{ end }} - {{ range first 15 .Pages }} - - {{ .Title }} - {{ .Permalink }} - {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} - {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} - {{ .Permalink }} - {{ .Content | html }} - {{ range .Params.tags }} - {{ . }} - {{ end }} - {{ range .Params.categories }} - {{ . }} - {{ end }} - - {{ end }} - - diff --git a/layouts/_default/single.html b/layouts/_default/single.html deleted file mode 100644 index 1b1ca6f..0000000 --- a/layouts/_default/single.html +++ /dev/null @@ -1,18 +0,0 @@ -{{ partial "header.html" . }} - -
-
-

{{ .Title }}

- -
- - {{ .Content }} - - {{ if eq .Params.lang "en" }} -
- {{ partial "article-footer.html" . }} -
- {{ end }} -
- -{{ partial "footer.html" . }} diff --git a/layouts/index.html b/layouts/index.html deleted file mode 100644 index 590d91e..0000000 --- a/layouts/index.html +++ /dev/null @@ -1,28 +0,0 @@ -{{ partial "head.html" . }} -
-
-
-
-
- Triangles -
-
- Triangles -
- -{{ partial "nav.html" . }} -{{ partial "footer.html" . }} diff --git a/layouts/partials/article-footer.html b/layouts/partials/article-footer.html deleted file mode 100644 index e69de29..0000000 diff --git a/layouts/partials/foot.html b/layouts/partials/foot.html deleted file mode 100644 index 7fb2bd6..0000000 --- a/layouts/partials/foot.html +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html deleted file mode 100644 index 49a5783..0000000 --- a/layouts/partials/footer.html +++ /dev/null @@ -1,11 +0,0 @@ -
- -

- source code for this site
- © {{ now.Format "2006" }} Nils Schulte - Creative Commons License - -
-
- -{{ partial "foot.html" . }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html deleted file mode 100644 index 0f8f2d9..0000000 --- a/layouts/partials/head.html +++ /dev/null @@ -1,210 +0,0 @@ - - - - - {{ partial "title.txt" . }} - - - {{ range .AlternativeOutputFormats -}} - {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} - {{ end -}} - - - - - diff --git a/layouts/partials/header.html b/layouts/partials/header.html deleted file mode 100644 index 3508fd2..0000000 --- a/layouts/partials/header.html +++ /dev/null @@ -1,12 +0,0 @@ -{{ partial "head.html" . }} - -
-
- - -
- - -
- -{{ partial "nav.html" . }} \ No newline at end of file diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html deleted file mode 100644 index 6d9f0a1..0000000 --- a/layouts/partials/nav.html +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/layouts/partials/title.txt b/layouts/partials/title.txt deleted file mode 100644 index c1a3c91..0000000 --- a/layouts/partials/title.txt +++ /dev/null @@ -1,15 +0,0 @@ -{{- $title := .Title -}} -{{- $siteTitle := .Site.Title -}} -{{- if .IsHome -}} - {{ $siteTitle }} -{{- else if eq .Kind "taxonomy" -}} - {{ title .Data.Singular }}: {{ $title }} · {{ $siteTitle }} -{{- else if eq .Kind "section" -}} - {{ $title }} · {{ $siteTitle }} -{{- else if .IsPage -}} - {{ $title }} · {{ $siteTitle }} -{{- else if not (eq .Title "") -}} - {{ $title }} · {{ $siteTitle }} -{{- else -}} - {{ $siteTitle }} -{{- end -}} diff --git a/themes/nils-theme/layouts/_default/list.rss.xml b/themes/nils-theme/layouts/_default/list.rss.xml index ca73944..2052db5 100644 --- a/themes/nils-theme/layouts/_default/list.rss.xml +++ b/themes/nils-theme/layouts/_default/list.rss.xml @@ -4,6 +4,7 @@ {{ .Site.Title }} {{ .Permalink }} Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }} + {{ .Site.BaseURL }}\img\favicon.ico Hugo{{ with .Site.LanguageCode }} {{.}}{{end}}{{ with .Site.Author.email }} {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }}