From 6df64315d5fd053aefbc5f6ce0a533007200cc91 Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Thu, 13 Feb 2025 18:22:31 +0100 Subject: [PATCH] chore: update blog to work with latest versions of Hugo --- .gitignore | 1 + config.toml | 12 +++++++----- layouts/_default/baseof.html | 2 +- layouts/index.xml | 8 ++++---- 4 files changed, 13 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index 72246a6..cf27ead 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /content/*.md /.hugo_build.lock /build/ +/blog/ diff --git a/config.toml b/config.toml index 586e229..53a88ca 100644 --- a/config.toml +++ b/config.toml @@ -3,21 +3,23 @@ languageCode = "en-us" copyright = "This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License." title = "Phundrak’s rambling" theme = "m10c" -paginate = 10 enableInlineShortcodes = true staticDir = ["static"] summarylength = 10 enableEmoji = true -[author] - name = "Lucien Cartier-Tilet" +[pagination] + pagerSize = 10 [params] - author = "Lucien Cartier-Tilet" description = "Some random rambling by a linguistics nerd about Emacs, Linux, and conlanging" avatar = "leon.png" + [params.author] + name = "Lucien Cartier-Tilet" + email = "lucien@phundrak.com" + [[params.social]] name = "github" url = "https://github.com/phundrak" @@ -36,7 +38,7 @@ enableEmoji = true [[params.social]] name = "twitter" - url = "https://twitter.com/phundrak" + url = "https://mastodon.phundrak.com/phundrak" [[params.social]] name = "youtube" diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 5946274..a66789f 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -8,7 +8,7 @@ - {{ $style := resources.Get "css/main.scss" | resources.ExecuteAsTemplate "css/main.scss" . | resources.ToCSS | resources.Minify | resources.Fingerprint -}} + {{ $style := resources.Get "css/main.scss" | resources.ExecuteAsTemplate "css/main.scss" . | css.Sass | resources.Minify | resources.Fingerprint -}} {{ template "_internal/google_analytics.html" . }} diff --git a/layouts/index.xml b/layouts/index.xml index e49c966..6041a85 100644 --- a/layouts/index.xml +++ b/layouts/index.xml @@ -17,9 +17,9 @@ {{ .Permalink }} Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }} Hugo -- gohugo.io{{ 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}}{{ with .Site.Params.Author.email }} + {{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Params.Author.email }} + {{.}}{{ with $.Site.Params.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" -}} @@ -30,7 +30,7 @@ {{ .Title }} {{ .Permalink }} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} - {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} + {{ with .Site.Params.Author.email }}{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}{{end}} {{ .Permalink }} {{ .Content | html }}