From aa5af996436ee6fc75a1d1832c5d4dfbdfdd6930 Mon Sep 17 00:00:00 2001 From: surtur Date: Wed, 6 May 2020 14:48:50 +0200 Subject: [PATCH] hugo update + license in footer + fix broken RSS * hugo v0.70.0 used * link to the license is in the footer now * RSS works as expected (was not before) due to semi-custom the site structure * also fixed some whitespace inconsistencies in config.toml --- .drone.yml | 2 +- config.toml | 24 ++++++++++++----------- layouts/index.html | 37 ++++++++++++++++++++++++++++++++++++ layouts/partials/footer.html | 7 +++++++ 4 files changed, 58 insertions(+), 12 deletions(-) create mode 100644 layouts/index.html create mode 100644 layouts/partials/footer.html diff --git a/.drone.yml b/.drone.yml index 2d6b0eb..53ae79f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -36,7 +36,7 @@ steps: - eval $(ssh-agent) - ssh-add ~/.ssh/overlord - git pull - - ./deploy "0.69.2" + - ./deploy "0.70.0" when: status: - success diff --git a/config.toml b/config.toml index ac4f783..f0ddc6a 100644 --- a/config.toml +++ b/config.toml @@ -1,6 +1,7 @@ baseurl = "/" languageCode = "en-us" theme = "hermit" +license = "WTFPL" copyright = 'WTFPL' pygmentsCodefences = true @@ -30,25 +31,26 @@ enableEmoji = true defaultTheme = "dark" homeSubtitle = "hello friend. hello friend? that's lame. maybe I should give you a name." + footerCopyright = ' · WTFPL' [params.logo] - logoText = "dotya.ml" - logoHomeLink = "/" + logoText = "dotya.ml" + logoHomeLink = "/" [[params.social]] - name = "gitea" - url = "https://git.dotya.ml/" - alt = "gitea profile page" + name = "gitea" + url = "https://git.dotya.ml/" + alt = "gitea profile page" [[params.social]] - name = "github" - url = "https://github.com/wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf/" - alt = "github profile page" + name = "github" + url = "https://github.com/wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf/" + alt = "github profile page" [[params.social]] - name = "dockerhub" - url = "https://hub.docker.com/r/immawanderer/" - alt = "dockerhub profile page" + name = "dockerhub" + url = "https://hub.docker.com/r/immawanderer/" + alt = "dockerhub profile page" [languages] [languages.en] diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..47efb60 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,37 @@ +{{ define "head" }} + {{ if .Site.Params.bgImg -}} + + {{- else if .Site.Params.images -}} + {{- range first 1 .Site.Params.images -}} + + {{- end -}} + {{- end -}} +{{ end }} + +{{ define "main" }} + {{- if (or .Site.Params.images .Site.Params.bgImg) }} +
+ {{- end }} +
+
+

{{ .Site.Title }}

+ {{- with .Site.Params.homeSubtitle }} +

{{.}}

+ {{- end }} + {{- with .Site.Params.social }} +
+ {{ partialCached "social-icons.html" . }} +
+ {{- end }} + +
+ +
+{{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..8dc64ae --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,7 @@ +