hugo update + license in footer + fix broken RSS
All checks were successful
continuous-integration/drone/push Build is passing

* 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
This commit is contained in:
surtur 2020-05-06 14:48:50 +02:00
parent 0ed38d2481
commit aa5af99643
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D
4 changed files with 58 additions and 12 deletions

@ -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

@ -1,6 +1,7 @@
baseurl = "/"
languageCode = "en-us"
theme = "hermit"
license = "WTFPL"
copyright = '<a href="http://www.wtfpl.net/about/" rel="noopener">WTFPL</a>'
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 = ' &#183; <a href="http://www.wtfpl.net/about/" target="_blank" rel="noopener">WTFPL</a>'
[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]

37
layouts/index.html Normal file

@ -0,0 +1,37 @@
{{ define "head" }}
{{ if .Site.Params.bgImg -}}
<style>.bg-img {background-image: url('{{.Site.Params.bgImg}}');}</style>
{{- else if .Site.Params.images -}}
{{- range first 1 .Site.Params.images -}}
<style>.bg-img {background-image: url('{{. | absURL}}');}</style>
{{- end -}}
{{- end -}}
{{ end }}
{{ define "main" }}
{{- if (or .Site.Params.images .Site.Params.bgImg) }}
<div class="bg-img"></div>
{{- end }}
<div id="spotlight" class="animated fadeIn">
<div id="home-center">
<h1 id="home-title">{{ .Site.Title }}</h1>
{{- with .Site.Params.homeSubtitle }}
<p id="home-subtitle">{{.}}</p>
{{- end }}
{{- with .Site.Params.social }}
<div id="home-social">
{{ partialCached "social-icons.html" . }}
</div>
{{- end }}
<nav id="home-nav" class="site-nav">
{{ partialCached "menu.html" . }}
</nav>
</div>
<div id="home-footer">
<p>
&copy; {{ now.Format "2006" }} <a href="{{ .Site.BaseURL }}">{{ .Site.Author.name }}</a>{{ .Site.Params.footerCopyright | safeHTML }}
{{- with (not (in (.Site.Language.Get "disableKinds") "RSS")) }} &#183; <a href="{{ "/index.xml" | absLangURL }}" target="_blank" title="rss"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-rss"><path d="M4 11a9 9 0 0 1 9 9"></path><path d="M4 4a16 16 0 0 1 16 16"></path><circle cx="5" cy="19" r="1"></circle></svg></a>{{ end }}
</p>
</div>
</div>
{{ end }}

@ -0,0 +1,7 @@
<footer id="site-footer" class="section-inner thin animated fadeIn faster">
<p>&copy; {{ now.Format "2006" }} <a href="{{ .Site.BaseURL }}">{{ .Site.Author.name }}</a>{{ .Site.Params.footerCopyright | safeHTML }}</p>
<p>
Made with <a href="https://gohugo.io/" target="_blank" rel="noopener">Hugo</a> &#183; Theme <a href="https://github.com/Track3/hermit" target="_blank" rel="noopener">Hermit</a>
{{- with (not (in (.Site.Language.Get "disableKinds") "RSS")) }} &#183; <a href="{{ "/index.xml" | absLangURL }}" target="_blank" title="rss"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-rss"><path d="M4 11a9 9 0 0 1 9 9"></path><path d="M4 4a16 16 0 0 1 16 16"></path><circle cx="5" cy="19" r="1"></circle></svg></a>{{ end }}
</p>
</footer>