Skip to content

Commit b47eff4

Browse files
committed
chore(hugo): Fix errors running on latest version
1 parent 82ec696 commit b47eff4

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

config.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ theme = "hello-friend"
44
publishDir = "/"
55
MetaDataFormat = "toml"
66
#googleAnalytics = "UA-36359098-1"
7-
paginate = 10
7+
8+
[pagination]
9+
pagerSize = 10 # Sets 10 items per page
810

911
[params]
1012
# dir name of your blog content (default is `content/posts`).

themes/hello-friend/layouts/_default/baseof.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,5 @@
2323
{{ end }}
2424
</div>
2525

26-
{{ if $.Site.GoogleAnalytics }}
27-
{{ template "_internal/google_analytics.html" . }}
28-
{{ end }}
2926
</body>
3027
</html>

themes/hello-friend/layouts/_default/rss.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
<link>{{ .Permalink }}</link>
2626
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
2727
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
28-
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
29-
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
30-
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
28+
<language>{{.}}</language>{{end}}{{ with .Site.Params.Author.email }}
29+
<managingEditor>{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Params.Author.email }}
30+
<webMaster>{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
3131
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
3232
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
3333
{{ with .OutputFormats.Get "RSS" }}
@@ -38,7 +38,7 @@
3838
<title>{{ .Title }}</title>
3939
<link>{{ .Permalink }}</link>
4040
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
41-
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
41+
{{ with .Site.Params.Author.email }}<author>{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}</author>{{end}}
4242
<guid>{{ .Permalink }}</guid>
4343
<description>
4444
{{ if .Params.Cover }}

0 commit comments

Comments
 (0)