From 7e9df74a423956d88036cd2fc1ff3e516d2b08ce Mon Sep 17 00:00:00 2001 From: 89Q12 Date: Fri, 18 Oct 2024 22:23:21 +0200 Subject: [PATCH] Fix hugo update problems --- .github/workflows/build.yaml | 2 +- layouts/_default/list.atom.xml | 6 +++--- layouts/_default/list.json.json | 2 +- layouts/_default/rss.xml | 8 ++++---- layouts/_default/single.html | 6 +++--- layouts/_default/terms.html | 4 ++-- layouts/index.json | 2 +- layouts/partials/h-card.html | 14 +++++++------- layouts/partials/li.html | 2 +- layouts/services/list.atom.xml | 6 +++--- layouts/services/list.json.json | 2 +- layouts/services/rss.xml | 8 ++++---- 12 files changed, 31 insertions(+), 31 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 02b6526..e54605f 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -16,7 +16,7 @@ jobs: - name: Set Up Hugo uses: peaceiris/actions-hugo@v2 with: - hugo-version: 'v0.124.0' # You can specify a specific Hugo version here + hugo-version: 'latest' # You can specify a specific Hugo version here - name: Build Hugo Site run: hugo --minify diff --git a/layouts/_default/list.atom.xml b/layouts/_default/list.atom.xml index ac2f5a9..260ea36 100644 --- a/layouts/_default/list.atom.xml +++ b/layouts/_default/list.atom.xml @@ -15,16 +15,16 @@ {{ if not .Date.IsZero }} {{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}{{ end }} - {{ .Permalink }}{{ with .Site.Author.name }} + {{ .Permalink }}{{ with .Site.Params.Author.name }} - {{.}}{{ with $.Site.Author.email }} + {{.}}{{ with $.Site.Params.Author.email }} {{.}}{{end}} {{end}} Hugo -- gohugo.io{{ range $pages }} {{ `<![CDATA[` | safeHTML }}{{ .Title }}]]> - {{ .Permalink }}{{ with $.Site.Author.name }} + {{ .Permalink }}{{ with $.Site.Params.Author.name }} {{.}} {{end}} diff --git a/layouts/_default/list.json.json b/layouts/_default/list.json.json index fbff3d7..5f2a5bb 100644 --- a/layouts/_default/list.json.json +++ b/layouts/_default/list.json.json @@ -1,6 +1,6 @@ {{- $.Scratch.Add "index" slice -}} {{- $pages := where site.RegularPages "Type" "in" site.Params.mainSections -}} {{- range $pages -}} -{{- $.Scratch.Add "index" (dict "uri" .Permalink "author" .Site.Author "site" .Site.BaseURL "title" .Title "date" .Date "content" .Plain "tags" .Params.tags "categories" .Params.tags) -}} +{{- $.Scratch.Add "index" (dict "uri" .Permalink "author" .Site.Params.Author "site" .Site.BaseURL "title" .Title "date" .Date "content" .Plain "tags" .Params.tags "categories" .Params.tags) -}} {{- end -}} {{- $.Scratch.Get "index" | jsonify -}} \ No newline at end of file diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index 45183c7..2028d06 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -17,9 +17,9 @@ {{ .Permalink }} Read the latest {{ if ne .Title .Site.Title }}{{ with .Title }} {{.}} {{ 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 }} {{ .Summary | html }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 5eedbf7..3f35787 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -9,14 +9,14 @@