commit 8a8c05bf62445c03d4f21435ee5aebe55feba5fb
parent 7e13d24d10c59c1cf1d1f011f7c4c93266d8aa7d
Author: Lou Woell <lou.woell@posteo.de>
Date:   Thu, 13 Jul 2023 22:43:42 +0200

Adapt for personal use

update margins

better display of last updated timestamp

update footer

fix typo

fix favicon path in og:image

make copyright note smaller + wrap

better theme note in footer

Diffstat:
Massets/css/footer.scss | 6+++---
Massets/css/main.scss | 14+++++++++-----
Mlayouts/_default/single.html | 8+++++---
Mlayouts/partials/footer.html | 2+-
Mlayouts/partials/head.html | 2+-
5 files changed, 19 insertions(+), 13 deletions(-)

diff --git a/assets/css/footer.scss b/assets/css/footer.scss @@ -21,11 +21,11 @@ } .copyright { - display: flex; + display: grid; flex-flow: row wrap; flex: 1; align-items: center; - font-size: 1rem; + font-size: 0.85rem; justify-content: center; &--user { @@ -38,7 +38,7 @@ } span { - white-space: nowrap; + white-space: normal; } } } diff --git a/assets/css/main.scss b/assets/css/main.scss @@ -30,7 +30,11 @@ body { } .headings--one-size { - h1, + h1 { + line-height: 1.3; + margin-top: 0px; + } + h2, h3, h4, @@ -172,10 +176,10 @@ pre { } blockquote { - border-top: 1px solid $accent; - border-bottom: 1px solid $accent; - margin: 40px 0; - padding: 25px; + // border-top: 1px solid $accent; + // border-bottom: 1px solid $accent; + // margin: 40px 0; + padding: 5px; @media ($phone) { padding-right: 0; diff --git a/layouts/_default/single.html b/layouts/_default/single.html @@ -7,14 +7,16 @@ {{- if .Date -}} <time class="post-date"> {{- .Date.Format "2006-01-02" -}} - {{- if $.Site.Params.showLastUpdated -}} - [{{- or $.Site.Params.updatedDatePrefix "Updated" -}} :: {{- .Lastmod.Format "2006-01-02" -}}] - {{- end -}} </time> {{- end -}} {{- with .Params.Author -}} <span class="post-author">{{ . }}</span> {{- end -}} + {{- if $.Site.Params.showLastUpdated -}} + <time class="post-date" > + {{- or $.Site.Params.updatedDatePrefix "Updated " -}} {{- .Lastmod.Format "2006-01-02" -}} + </time> + {{- end -}} {{- if and (.Param "readingTime") (eq (.Param "readingTime") true) -}} <span class="post-reading-time">{{ .ReadingTime }} {{ $.Site.Params.minuteReadingTime | default "min read" }} ({{ .WordCount }} {{ $.Site.Params.words | default "words" }})</span> {{- end -}} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html @@ -7,7 +7,7 @@ <div class="copyright"> <span>© {{ now.Year }} Powered by <a href="https://gohugo.io">Hugo</a></span> {{ end }} - <span>:: <a href="https://github.com/panr/hugo-theme-terminal" target="_blank">Theme</a> made by <a href="https://github.com/panr" target="_blank">panr</a></span> + <span> <a href="https://github.com/einsiedlerspiel/hugo-theme-terminal" target="_blank">Theme</a> adapted from <a href="https://github.com/panr" target="_blank">panr</a></span> </div> </div> </footer> diff --git a/layouts/partials/head.html b/layouts/partials/head.html @@ -68,7 +68,7 @@ {{ if isset $.Site.Params "favicon" }} <meta property="og:image" content="{{ $.Site.Params.favicon | absURL }}"> {{ else }} - <meta property="og:image" content="{{ printf "img/favicon/%s.png" $.Site.Params.ThemeColor | absURL }}"> + <meta property="og:image" content="{{ printf "img/theme-colors/%s.png" $.Site.Params.ThemeColor | absURL }}"> {{ end }} {{ end }} <meta property="og:image:width" content="1200">