diff --git a/config.toml b/config.toml index 3ba088d..dd67216 100644 --- a/config.toml +++ b/config.toml @@ -33,7 +33,7 @@ enableRobotsTXT = true showRelatedPosts = true # gcse = "012345678901234567890:abcdefghijk" # Get your code from google.com/cse. Make sure to go to "Look and Feel" and change Layout to "Full Width" and Theme to "Classic" -[Author] +[Params.author] name = "Dmitry Belyaev" website = "https://b4tman.ru" email = "mail@b4tman.ru" diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index a1acb71..f4e6b6d 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -17,10 +17,10 @@ {{ .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 }} + {{.}}{{end}}{{ with .Site.Params.author.email }} - {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }} - {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} + {{.}}{{ 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" }} @@ -31,7 +31,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.Author.name }} ({{.}}){{end}}{{end}} {{ .Permalink }} {{ .Summary | html }} {{ .Permalink }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 2ba6945..9c02bc4 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -58,7 +58,7 @@ {{ if (.Params.comments) | or (and (or (not (isset .Params "comments")) (eq .Params.comments nil)) (and .Site.Params.comments (ne .Type "page"))) }} {{ partial "remark42.html" . }} - {{ if .Site.DisqusShortname }} + {{ if .Site.Config.Services.Disqus.Shortname }} {{ if .Site.Params.delayDisqus }}
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 2ce3321..3ef0291 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -7,9 +7,9 @@