From fc226c618910070206d0d4f28d5ac2cd5766c2e3 Mon Sep 17 00:00:00 2001 From: leafee98 Date: Wed, 1 Jan 2025 23:56:03 +0800 Subject: [PATCH] Fix deprecated warning and update hugo version 1. Fix the warning like the follow: ERROR deprecated: site config key paginate was deprecated in Hugo v0.128.0 and will be removed in Hugo 0.141.0. Use pagination.pagerSize instead. 2. Update hugo in GitHub Action from 0.105.0 to 0.140.2 --- .github/workflows/hugo.yml | 2 +- exampleSite/config.toml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/hugo.yml b/.github/workflows/hugo.yml index 3be5f6e..b820752 100644 --- a/.github/workflows/hugo.yml +++ b/.github/workflows/hugo.yml @@ -30,7 +30,7 @@ jobs: build: runs-on: ubuntu-latest env: - HUGO_VERSION: 0.105.0 + HUGO_VERSION: 0.140.2 steps: - name: Install Hugo CLI run: | diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 9a9a13c..6634d4c 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -3,9 +3,11 @@ theme = "hugo-theme-flat" themesDir = "../.." enableRobotsTXT = true hasCJKLanguage = true -paginate = 4 baseURL = "" +[pagination] +pagerSize = 4 + # these values are hugo built in markup config [markup.highlight] anchorLineNos = false