From 8b7ce9995c596f7519d212bc87ebdffb4a6020e9 Mon Sep 17 00:00:00 2001 From: canstand Date: Thu, 19 Sep 2024 23:52:48 +0800 Subject: [PATCH] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20=20update=20deps?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit BREAKING CHANGE: require hugo version 0.134.2 --- config/_default/module.toml | 2 +- exampleSite/go.mod | 4 +- exampleSite/hugo.toml | 6 +- go.mod | 2 +- layouts/partials/analytics.html | 2 +- layouts/partials/css.html | 2 +- layouts/partials/dev-parameters.html | 2 +- layouts/partials/dev-size-indicator.html | 2 +- netlify.toml | 2 +- package-lock.json | 208 +++++++++++++---------- package.hugo.json | 16 +- package.json | 16 +- tailwind.config.js | 17 -- 13 files changed, 147 insertions(+), 134 deletions(-) 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" -}}