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 }}
{{ range .Site.Data.beautifulhugo.social.social_icons }} - {{- if isset $.Site.Author .id }} + {{- if isset $.Site.Params.author .id }}-
-
+
@@ -30,19 +30,19 @@
{{ end }}
- {{ if .Site.Author.name }} - {{ if .Site.Author.website }} - {{ .Site.Author.name }} + {{ if .Site.Params.author.name }} + {{ if .Site.Params.author.website }} + {{ .Site.Params.author.name }} {{ else }} - {{ .Site.Author.name }} + {{ .Site.Params.author.name }} {{ end }} {{ end }} • © {{ if .Site.Params.since }} - {{ .Site.Params.since }} - {{ .Site.LastChange.Format "2006" }} + {{ .Site.Params.since }} - {{ .Site.Lastmod.Format "2006" }} {{ else }} - {{ .Site.LastChange.Format "2006" }} + {{ .Site.Lastmod.Format "2006" }} {{ end }} {{ if .Site.Title }} @@ -130,12 +130,12 @@ {{ end }} -{{ if and .Site.Params.delayDisqus .Site.DisqusShortname }} +{{ if and .Site.Params.delayDisqus .Site.Config.Services.Disqus.Shortname }} - + {{ end }} diff --git a/themes/beautifulhugo b/themes/beautifulhugo index 99ca240..fd74af4 160000 --- a/themes/beautifulhugo +++ b/themes/beautifulhugo @@ -1 +1 @@ -Subproject commit 99ca240e9977196207da2e09c3804d3e98c14e57 +Subproject commit fd74af48c3bb5e51187ca350324d2291de65f283