chore: update blog to work with latest versions of Hugo

This commit is contained in:
Lucien Cartier-Tilet 2025-02-13 18:22:31 +01:00
parent 20662dc99b
commit 6df64315d5
Signed by: phundrak
GPG Key ID: 347803E8073EACE0
4 changed files with 13 additions and 10 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@
/content/*.md
/.hugo_build.lock
/build/
/blog/

View File

@ -3,21 +3,23 @@ languageCode = "en-us"
copyright = "This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License."
title = "Phundraks 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"

View File

@ -8,7 +8,7 @@
<meta name="author" content="{{ .Site.Params.author | default "John Doe" }}" />
<meta name="description" content="{{ if .IsHome }}{{ .Site.Params.description }}{{ else }}{{ .Description }}{{ end }}" />
<meta name="fediverse:creator" content="@phundrak@mastodon.phundrak.com" />
{{ $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 -}}
<link rel="stylesheet" href="{{ $style.Permalink }}" />
{{ template "_internal/google_analytics.html" . }}

View File

@ -17,9 +17,9 @@
<link>{{ .Permalink }}</link>
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
<language>{{.}}</language>{{end}}{{ with .Site.Params.Author.email }}
<managingEditor>{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Params.Author.email }}
<webMaster>{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
{{- with .OutputFormats.Get "RSS" -}}
@ -30,7 +30,7 @@
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
{{ with .Site.Params.Author.email }}<author>{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}</author>{{end}}
<guid>{{ .Permalink }}</guid>
<description>{{ .Content | html }}</description>
</item>