From b17616173a648649d6bf69a4ab662116f065dfab Mon Sep 17 00:00:00 2001 From: Gregory Trolliet Date: Sun, 13 Oct 2024 18:27:42 +0200 Subject: [PATCH] Fix the deprecated commands --- layouts/_default/rss.xml | 8 ++++---- layouts/partials/opengraph.html | 2 +- static/css/style.css | 5 ++--- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index 4996cb0..a9fc6f8 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -4,9 +4,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 }} ({{ .name }}){{end}}{{ with .Site.Params.author }} + {{.email}} ({{.name}}){{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" }} @@ -17,7 +17,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}} ({{.name}}){{end}} {{ .Permalink }} {{ .Content | html }} diff --git a/layouts/partials/opengraph.html b/layouts/partials/opengraph.html index 247882a..fe39d7f 100644 --- a/layouts/partials/opengraph.html +++ b/layouts/partials/opengraph.html @@ -34,5 +34,5 @@ {{ end }} - + diff --git a/static/css/style.css b/static/css/style.css index 4f1ea68..1f1a897 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -625,9 +625,8 @@ a.not(.anchor):focus { margin-right: 1rem; } .article-body figure figcaption .attribution { - float: right; - margin-left: 1em; - margin-top: 1em; + display: block; + text-align: right; } @media only screen and (max-width: 320px) { .article-body .footnotes ol {