🐛 Adopt pagination.pagerSize config parameter

Fixes: #945
This commit is contained in:
James Panther
2024-10-07 10:39:17 +11:00
parent 923243f28a
commit e6825a4736
4 changed files with 9 additions and 4 deletions
+3 -1
View File
@@ -6,8 +6,10 @@ theme = "congo"
defaultContentLanguage = "en"
enableRobotsTXT = true
paginate = 15
summaryLength = 0
[pagination]
pagerSize = 15
[outputs]
home = ["HTML", "RSS", "JSON"]
@@ -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.|