From a52c38ad7e0aab2201df19521d8c71d79cad067e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian-Samuel=20Geb=C3=BChr?= Date: Tue, 24 Jan 2023 16:39:39 +0100 Subject: [PATCH] Move custon theme configuration in theme --- layouts/_default/single.html | 297 ---------------------------- layouts/partials/footer.html | 132 ------------- layouts/partials/topnavigation.html | 118 ----------- themes/hugo-nederburg-theme | 2 +- 4 files changed, 1 insertion(+), 548 deletions(-) delete mode 100644 layouts/_default/single.html delete mode 100644 layouts/partials/footer.html delete mode 100644 layouts/partials/topnavigation.html diff --git a/layouts/_default/single.html b/layouts/_default/single.html deleted file mode 100644 index 2194098..0000000 --- a/layouts/_default/single.html +++ /dev/null @@ -1,297 +0,0 @@ -{{ define "body" }} - - -{{ end }} - - -{{ define "main" }} - {{ $scratch := newScratch }} - {{ if .Site.Params.writers }} - {{ $scratch.Set "writer" (index .Site.Params.writers (lower .Params.writer) | default dict) }} - {{ else }} - {{ $scratch.Set "writer" (.Site.Params.social | default dict) }} - {{ end }} - {{ $writer := $scratch.Get "writer" }} -
- {{ if and (isset .Params "image") .Params.image }} -
- - - {{ else }} - -
- - {{ end }} - -
-

{{ .Title }}

-
-
-
-
- {{ .Content }} -
-
- - - - {{ if and (isset .Site.Params "author") .Site.Params.author }} -
- -
- {{ if and (isset .Params "writer") $writer.email }} - {{ .Params.writer | default .Site.Params.author }} - {{ else }} - {{ .Params.writer | default .Site.Params.author }} - {{ end }} - - Written by: -
-
- {{ if and (isset .Params "writer") $writer.bio }} - {{ range $writer.bio }} -

{{ . | default "" | safeHTML }}

- {{ end }} - {{ else }} - {{ range .Site.Params.bio }} -

{{ . | default "" | safeHTML }}

- {{ end }} - {{ end }} - {{ if isset .Params "writer" }} - {{ with $writer.facebook }} - - {{end}} - - {{ with $writer.googleplus }} - - - - {{end}} - - - {{ with $writer.twitter }} - -{{end}} -{{ with $writer.linkedin }} - - - -{{end}} - -{{ with $writer.email }} - -{{end}} - -{{ with $writer.instagram }} - - - -{{end}} - -{{ with $writer.stackoverflow }} - - - -{{end}} - -{{ with $writer.github }} - - - -{{end}} - - -{{ with $writer.mastodon }} - - - -{{end}} - - -{{ else }} -{{ with .Site.Params.social.facebook }} - -{{end}} - -{{ with .Site.Params.social.googleplus }} - - - -{{end}} - - -{{ with .Site.Params.social.twitter }} - -{{end}} -{{ with .Site.Params.social.linkedin }} - - - -{{end}} - -{{ with .Site.Params.social.email }} - -{{end}} - -{{ with .Site.Params.social.instagram }} - - - -{{end}} - -{{ with .Site.Params.social.stackoverflow }} - - - -{{end}} - -{{ with .Site.Params.social.github }} - - - -{{end}} - - -{{ with .Site.Params.social.mastodon }} - - - -{{end}} -{{ end }} - - -
-
-{{ end }} -
-
- -
- {{ template "_internal/disqus.html" . }} - - - - - - -
-
- - - - -{{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html deleted file mode 100644 index ec4f016..0000000 --- a/layouts/partials/footer.html +++ /dev/null @@ -1,132 +0,0 @@ -
-

- {{ with .Site.Title }} - {{ . }} - {{ end }} -

- - {{ with .Site.Params.Slogan }} -

{{ . | default "" | safeHTML }}

- {{ end }} - - - -
- {{ range .Site.Params.copyright }} -

{{ . | markdownify | safeHTML }}

- {{ else }} -

- Nederburg Hugo Theme by Appernetic. -

-

- A port of Tracks by Compete Themes. -

- {{ end }} -
-
diff --git a/layouts/partials/topnavigation.html b/layouts/partials/topnavigation.html deleted file mode 100644 index e01ac25..0000000 --- a/layouts/partials/topnavigation.html +++ /dev/null @@ -1,118 +0,0 @@ -
- - - - -
diff --git a/themes/hugo-nederburg-theme b/themes/hugo-nederburg-theme index d99760b..7c96b8f 160000 --- a/themes/hugo-nederburg-theme +++ b/themes/hugo-nederburg-theme @@ -1 +1 @@ -Subproject commit d99760bac630af13aaba1f3e66107328c2fa7991 +Subproject commit 7c96b8f42b4d86c28d3b50cb473297b6f278a341