Skip to content

Commit

Permalink
Fix error when running example site with latest hugo version 0.143.1
Browse files Browse the repository at this point in the history
  • Loading branch information
deining committed Feb 6, 2025
1 parent 0600b96 commit 264a765
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 6 deletions.
4 changes: 3 additions & 1 deletion config/_default/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
defaultContentLanguage = "en"

enableRobotsTXT = true
paginate = 10
summaryLength = 0

[pagination]
pagerSize = 10

[outputs]
home = ["HTML", "RSS", "JSON"]
4 changes: 3 additions & 1 deletion exampleSite/config/_default/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ theme = "congo"
defaultContentLanguage = "en"

enableRobotsTXT = true
paginate = 15
summaryLength = 0

[pagination]
pagerSize = 15

[outputs]
home = ["HTML", "RSS", "JSON"]
2 changes: 1 addition & 1 deletion exampleSite/content/docs/configuration/index.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)を参照してください。|
Expand Down
2 changes: 1 addition & 1 deletion exampleSite/content/docs/configuration/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.|
Expand Down
4 changes: 3 additions & 1 deletion exampleSite/content/docs/version-2/upgrade/index.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,11 @@ config.toml`ファイルには、Hugoの基本設定値のみが含まれるよ
defaultContentLanguage = "en"

enableRobotsTXT = true
paginate = 10
summaryLength = 0

[pagination]
pagerSize = 10

[outputs]
home = ["HTML", "RSS", "JSON"]
```
Expand Down
4 changes: 3 additions & 1 deletion exampleSite/content/docs/version-2/upgrade/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
```
Expand Down

0 comments on commit 264a765

Please sign in to comment.