diff --git a/config/_default/module.toml b/config/_default/module.toml index 873970a..0ca2111 100644 --- a/config/_default/module.toml +++ b/config/_default/module.toml @@ -1,6 +1,6 @@ [hugoVersion] extended = false - min = "0.116.0" + min = "0.134.2" [[mounts]] source = 'content' target = 'content' diff --git a/exampleSite/go.mod b/exampleSite/go.mod index dfad746..c04e5d4 100644 --- a/exampleSite/go.mod +++ b/exampleSite/go.mod @@ -1,9 +1,9 @@ module github.com/canstand/compost/exampleSite -go 1.20 +go 1.22 require ( - github.com/canstand/compost v0.6.0 // indirect + github.com/canstand/compost v0.7.0 // indirect ) replace github.com/canstand/compost => ../ diff --git a/exampleSite/hugo.toml b/exampleSite/hugo.toml index ab1b69f..ee222e6 100755 --- a/exampleSite/hugo.toml +++ b/exampleSite/hugo.toml @@ -9,7 +9,8 @@ defaultContentLanguage = "en" title = "Compost" enableEmoji = true enableRobotsTXT = true -paginate = 5 + +# ignoreErrors = [ "error-remote-getjson", ] # required [build] @@ -65,6 +66,9 @@ paginate = 5 series = "series" tag = "tags" +[pagination] + pagerSize = 5 + [params] colorScheme = "auto" diff --git a/go.mod b/go.mod index 398dcb9..a8c5eaf 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module github.com/canstand/compost -go 1.20 +go 1.22 diff --git a/layouts/partials/analytics.html b/layouts/partials/analytics.html index e4f4db8..ae9160b 100644 --- a/layouts/partials/analytics.html +++ b/layouts/partials/analytics.html @@ -1,4 +1,4 @@ -{{ if not .Site.IsServer -}} +{{ if not hugo.IsServer -}} {{ with .Site.Params.fathomAnalytics.site -}} {{ if isset $.Site.Params.fathomanalytics "domain" -}}