From 264a765a3f9c13abf400850ee4a8d8e16076e44b Mon Sep 17 00:00:00 2001 From: Andreas Deininger Date: Thu, 6 Feb 2025 21:27:17 +0100 Subject: [PATCH] Fix error when running example site with latest hugo version 0.143.1 --- config/_default/config.toml | 4 +++- exampleSite/config/_default/config.toml | 4 +++- exampleSite/content/docs/configuration/index.ja.md | 2 +- exampleSite/content/docs/configuration/index.md | 2 +- exampleSite/content/docs/version-2/upgrade/index.ja.md | 4 +++- exampleSite/content/docs/version-2/upgrade/index.md | 4 +++- 6 files changed, 14 insertions(+), 6 deletions(-) diff --git a/config/_default/config.toml b/config/_default/config.toml index 812d611b6..e1aa49d1d 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 6c8e9a84e..b4564f1d7 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.ja.md b/exampleSite/content/docs/configuration/index.ja.md index 2225c2f81..d9f4d48d0 100644 --- a/exampleSite/content/docs/configuration/index.ja.md +++ b/exampleSite/content/docs/configuration/index.ja.md @@ -35,7 +35,7 @@ Hugoの標準的な設定変数はテーマ全体を通して尊重されます |`baseURL`|_Not set_|ウェブサイトのルートへのURL。| |`defaultContentLanguage`|`"en"`|この値はテーマコンポーネントとコンテンツのデフォルト言語を決定します。サポートされる言語コードについては、下記の[言語と国際化](#言語と国際化)セクションを参照してください。| |`enableRobotsTXT`|`true`|有効にすると、サイトルートに `robots.txt` ファイルが作成され、検索エンジンがサイト全体をクロールできるようになります。あらかじめ用意されている `robots.txt` を利用したい場合は、`false` に設定して `static` ディレクトリにファイルを置いてください。完全にコントロールしたい場合は、[カスタムレイアウト]({{< ref "content-examples" >}})を指定してこのファイルを生成することができます。| -|`paginate`|`10`|記事一覧の各ページに掲載される記事の数。| +|`pagination.pagerSize`|`10`|記事一覧の各ページに掲載される記事の数。| |`summaryLength`|`0`|記事の要約が[フロントマター]({{< ref "front-matter" >}})で提供されていない場合に、記事の要約を生成するために使われる単語の数。デフォルト値 `0` は最初の文章を使用します。この値は要約が非表示の場合には影響しません。| |`outputs.home`|`["HTML", "RSS", "JSON"]`|生成される出力フォーマット。Congoでは、すべてのテーマコンポーネントが正しく動作するために、HTML、RSS、JSONが必要です。| |`permalinks`|_Not set_|パーマリンクの設定は[Hugo docs](https://gohugo.io/content-management/urls/#permalinks)を参照してください。| diff --git a/exampleSite/content/docs/configuration/index.md b/exampleSite/content/docs/configuration/index.md index 94b687a57..a8f6b2963 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.| diff --git a/exampleSite/content/docs/version-2/upgrade/index.ja.md b/exampleSite/content/docs/version-2/upgrade/index.ja.md index e2c770e1c..a139db6fb 100644 --- a/exampleSite/content/docs/version-2/upgrade/index.ja.md +++ b/exampleSite/content/docs/version-2/upgrade/index.ja.md @@ -125,9 +125,11 @@ config.toml`ファイルには、Hugoの基本設定値のみが含まれるよ defaultContentLanguage = "en" enableRobotsTXT = true -paginate = 10 summaryLength = 0 +[pagination] + pagerSize = 10 + [outputs] home = ["HTML", "RSS", "JSON"] ``` diff --git a/exampleSite/content/docs/version-2/upgrade/index.md b/exampleSite/content/docs/version-2/upgrade/index.md index cb681f3ef..4766fd5ad 100644 --- a/exampleSite/content/docs/version-2/upgrade/index.md +++ b/exampleSite/content/docs/version-2/upgrade/index.md @@ -125,9 +125,11 @@ If you're using a language other than English, provide a `defaultContentLanguage defaultContentLanguage = "en" enableRobotsTXT = true -paginate = 10 summaryLength = 0 +[pagination] + pagerSize = 10 + [outputs] home = ["HTML", "RSS", "JSON"] ```