diff --git a/CHANGELOG.md b/CHANGELOG.md index e82a598..85c3a5f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,8 +8,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ### Changed -- ⚠️ Required Hugo version is now 0.124.0 or later +- ⚠️ Required Hugo version is now 0.128.0 or later - Adopted new `hugo.IsMultilingual` parameter ([#921](https://github.com/jpanther/congo/pull/921)) +- Adopted new `pagination.pagerSize` config parameter ([#945](https://github.com/jpanther/congo/issues/945)) - Upgrade to Tailwind v3.4.11 ([#934](https://github.com/jpanther/congo/pull/934)) - Upgrade to Mermaid v11.1.0 ([#931](https://github.com/jpanther/congo/pull/931)) diff --git a/config/_default/config.toml b/config/_default/config.toml index 812d611..e1aa49d 100644 --- a/config/_default/config.toml +++ b/config/_default/config.toml @@ -6,8 +6,10 @@ defaultContentLanguage = "en" enableRobotsTXT = true -paginate = 10 summaryLength = 0 +[pagination] + pagerSize = 10 + [outputs] home = ["HTML", "RSS", "JSON"] diff --git a/exampleSite/config/_default/config.toml b/exampleSite/config/_default/config.toml index 6c8e9a8..b4564f1 100644 --- a/exampleSite/config/_default/config.toml +++ b/exampleSite/config/_default/config.toml @@ -6,8 +6,10 @@ theme = "congo" defaultContentLanguage = "en" enableRobotsTXT = true -paginate = 15 summaryLength = 0 +[pagination] + pagerSize = 15 + [outputs] home = ["HTML", "RSS", "JSON"] diff --git a/exampleSite/content/docs/configuration/index.md b/exampleSite/content/docs/configuration/index.md index 6bd58d4..fb0e3e6 100644 --- a/exampleSite/content/docs/configuration/index.md +++ b/exampleSite/content/docs/configuration/index.md @@ -35,7 +35,7 @@ Note that the variable names provided in this table use dot notation to simplify |`baseURL`|_Not set_|The URL to the root of the website.| |`defaultContentLanguage`|`"en"`|This value determines the default language of theme components and content. Refer to the [language and i18n](#language-and-i18n) section below for supported language codes.| |`enableRobotsTXT`|`true`|When enabled, a `robots.txt` file will be created in the site root that allows search engines to crawl the entire site. If you prefer to provide your own pre-made `robots.txt`, set to `false` and place your file in the `static` directory. For complete control, you may provide a [custom layout]({{< ref "content-examples#custom-layouts" >}}) to generate this file.| -|`paginate`|`10`|The number of articles listed on each page of the article listing.| +|`pagination.pagerSize`|`10`|The number of articles listed on each page of the article listing.| |`summaryLength`|`0`|The number of words that are used to generate the article summary when one is not provided in the [front matter]({{< ref "front-matter" >}}). A value of `0` will use the first sentence. This value has no effect when summaries are hidden.| |`outputs.home`|`["HTML", "RSS", "JSON"]`|The output formats that are generated for the site. Congo requires HTML, RSS and JSON for all theme components to work correctly.| |`permalinks`|_Not set_|Refer to the [Hugo docs](https://gohugo.io/content-management/urls/#permalinks) for permalink configuration.|