Update to Hugo v0.143.1

This commit is contained in:
Brandon Rozek 2025-02-16 11:03:28 -05:00
parent 615e03bca3
commit 525b28e98b
No known key found for this signature in database
GPG key ID: DFB0E78F805F4567
13 changed files with 36 additions and 49 deletions

View file

@ -3,7 +3,7 @@
"url": "{{ .Permalink }}",
"title": {{ .Title | jsonify }},
"authors": [
{{with $.Site.Author.name }}
{{with $.Site.Params.Author }}
{ "name": "{{ . }}" }
{{ end }}
],

View file

@ -3,14 +3,14 @@
{
"@context": "https://www.w3.org/ns/activitystreams",
"actor": {
{{with $.Site.Author.name }}"name": "{{ . }}",{{ end }}
{{with $.Site.Params.Author }}"name": "{{ . }}",{{ end }}
"url": "{{ .Site.BaseURL }}"
},
"id": "{{ $page.Permalink }}",
"object": {
"attributedTo": [
{
{{with $.Site.Author.name }}"name": "{{ . }}",{{ end }}
{{with $.Site.Params.Author }}"name": "{{ . }}",{{ end }}
"type": "Person",
"url": "{{ .Site.BaseURL }}"
}

View file

@ -18,7 +18,7 @@
<generator uri="https://gohugo.io">Hugo</generator>
<author>
<uri>{{ .Site.BaseURL }}</uri>
{{ with .Site.Author.name }}<name>{{.}}</name>{{end}}
{{ with .Site.Params.Author }}<name>{{.}}</name>{{end}}
</author>
<updated>{{ now.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>
{{ with .OutputFormats.Get "Atom" }}
@ -29,7 +29,7 @@
<author>
<activity:object-type>http://activitystrea.ms/schema/1.0/person</activity:object-type>
<uri>{{ .Site.BaseURL }}</uri>
{{ with .Site.Author.name }}<name>{{.}}</name>{{end}}
{{ with .Site.Params.Author }}<name>{{.}}</name>{{end}}
</author>
<activity:object-type>http://activitystrea.ms/schema/1.0/article</activity:object-type>
<title>{{ .Title }}</title>

View file

@ -7,7 +7,7 @@
"icon": "{{ .Site.BaseURL }}img/{{ .Site.Params.avatar }}",
"language": "en-US",
"authors": [
{{with $.Site.Author.name }}
{{with $.Site.Params.Author }}
{ "name": "{{ . }}" }
{{ end }}
],

View file

@ -21,9 +21,9 @@
</image>
<description>{{ .Description }}</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.email }}
<managingEditor>{{.}}{{ with $.Site.Params.Author }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Params.email }}
<webMaster>{{.}}{{ with $.Site.Params.Author }} ({{.}}){{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" }}
@ -34,7 +34,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.email }}<author>{{.}}{{ with $.Site.Params.Author }} ({{.}}){{end}}</author>{{end}}
<guid>{{ .Permalink }}</guid>
{{ printf `<description><![CDATA[%s]]></description>` .Summary | safeHTML }}
{{ printf `<content:encoded><![CDATA[%s]]></content:encoded>` .Content | safeHTML }}