From 8fdd6876407b0cac5244e31d10df3e1c19ce8d67 Mon Sep 17 00:00:00 2001 From: Andreas Deininger Date: Tue, 3 Jun 2025 23:05:17 +0200 Subject: [PATCH] Fix warning on deprecated front matter key 'build' --- exampleSite/content/docs/content-examples/index.it.md | 4 ++-- exampleSite/content/docs/content-examples/index.ja.md | 4 ++-- exampleSite/content/docs/content-examples/index.md | 4 ++-- exampleSite/content/docs/content-examples/index.zh-cn.md | 4 ++-- exampleSite/content/samples/external/index.it.md | 2 +- exampleSite/content/samples/external/index.ja.md | 2 +- exampleSite/content/samples/external/index.md | 2 +- exampleSite/content/samples/external/index.zh-cn.md | 2 +- 8 files changed, 12 insertions(+), 12 deletions(-) diff --git a/exampleSite/content/docs/content-examples/index.it.md b/exampleSite/content/docs/content-examples/index.it.md index 35270195..52d51a05 100644 --- a/exampleSite/content/docs/content-examples/index.it.md +++ b/exampleSite/content/docs/content-examples/index.it.md @@ -198,7 +198,7 @@ date: 2022-01-25 externalUrl: "https://medium.com/" summary: "I wrote a post on Medium." showReadingTime: false -_build: +build: render: "false" list: "local" --- @@ -206,7 +206,7 @@ _build: Along with the normal front matter parameters like `title` and `summary`, the `externalUrl` parameter is used to tell Blowfish that this is not an ordinary article. The URL provided here will be where visitors are directed when they select this article. -Additionally, we use a special Hugo front matter parameter `_build` to prevent a normal page for this content being generated - there's no point generating a page since we're linking to an external URL! +Additionally, we use a special Hugo front matter parameter `build` to prevent a normal page for this content being generated - there's no point generating a page since we're linking to an external URL! The theme includes an archetype to make generating these external link articles simple. Just specify `-k external` when making new content. diff --git a/exampleSite/content/docs/content-examples/index.ja.md b/exampleSite/content/docs/content-examples/index.ja.md index c986daa4..cad99da6 100644 --- a/exampleSite/content/docs/content-examples/index.ja.md +++ b/exampleSite/content/docs/content-examples/index.ja.md @@ -198,7 +198,7 @@ date: 2022-01-25 externalUrl: "https://medium.com/" summary: "Medium に記事を投稿しました。" showReadingTime: false -_build: +build: render: "false" list: "local" --- @@ -206,7 +206,7 @@ _build: `title` や `summary` などの通常の Front Matter パラメータに加えて、`externalUrl` パラメータは、これが通常の記事ではないことを Blowfish に伝えるために使用されます。ここに指定された URL は、訪問者がこの記事を選択した際にリダイレクトされる場所です。 -さらに、特別な Hugo フロントマターパラメータ `_build` を使用して、このコンテンツの通常のページが生成されないようにします。外部リンクにリダイレクトするため、ページを生成する必要はありません。 +さらに、特別な Hugo フロントマターパラメータ `build` を使用して、このコンテンツの通常のページが生成されないようにします。外部リンクにリダイレクトするため、ページを生成する必要はありません。 テーマには、外部リンク記事を簡単に作成するためのアーキタイプが含まれています。新しいコンテンツを作成する際に、`-k external` を指定するだけです。 diff --git a/exampleSite/content/docs/content-examples/index.md b/exampleSite/content/docs/content-examples/index.md index 35270195..52d51a05 100644 --- a/exampleSite/content/docs/content-examples/index.md +++ b/exampleSite/content/docs/content-examples/index.md @@ -198,7 +198,7 @@ date: 2022-01-25 externalUrl: "https://medium.com/" summary: "I wrote a post on Medium." showReadingTime: false -_build: +build: render: "false" list: "local" --- @@ -206,7 +206,7 @@ _build: Along with the normal front matter parameters like `title` and `summary`, the `externalUrl` parameter is used to tell Blowfish that this is not an ordinary article. The URL provided here will be where visitors are directed when they select this article. -Additionally, we use a special Hugo front matter parameter `_build` to prevent a normal page for this content being generated - there's no point generating a page since we're linking to an external URL! +Additionally, we use a special Hugo front matter parameter `build` to prevent a normal page for this content being generated - there's no point generating a page since we're linking to an external URL! The theme includes an archetype to make generating these external link articles simple. Just specify `-k external` when making new content. diff --git a/exampleSite/content/docs/content-examples/index.zh-cn.md b/exampleSite/content/docs/content-examples/index.zh-cn.md index 7308e3b2..befef413 100644 --- a/exampleSite/content/docs/content-examples/index.zh-cn.md +++ b/exampleSite/content/docs/content-examples/index.zh-cn.md @@ -198,7 +198,7 @@ date: 2022-01-25 externalUrl: "https://medium.com/" summary: "我在Medium上写了一篇文章。" showReadingTime: false -_build: +build: render: "false" list: "local" --- @@ -206,7 +206,7 @@ _build: 除了像 `title` 和 `summary` 这种普通的扉页参数外,需要设置 `externalUrl` 参数来告诉 Blowfish 这不是一篇普通的文章。访问者在访问后,会被重定向到这里提供的 URL。 -此外,我们使用了 `_build` 参数来避免 Hugo 生成一个普通页面。因为我们是一个连接到外部的 URL,生成页面是没有意义的。 +此外,我们使用了 `build` 参数来避免 Hugo 生成一个普通页面。因为我们是一个连接到外部的 URL,生成页面是没有意义的。 Hugo 中可以通过命令来快速生成一个外部链接的文件,在创建新的外部链接是,只需要指定 `-k external` 即可。这让生成外部链接文章变得更简单。 diff --git a/exampleSite/content/samples/external/index.it.md b/exampleSite/content/samples/external/index.it.md index 5c42d258..a4fb60b2 100755 --- a/exampleSite/content/samples/external/index.it.md +++ b/exampleSite/content/samples/external/index.it.md @@ -4,7 +4,7 @@ date: 2019-01-24 externalUrl: "https://n9o.xyz/projects/" summary: "The `externalUrl` front matter parameter can link to any URL." showReadingTime: true -_build: +build: render: "false" list: "local" type: 'sample' diff --git a/exampleSite/content/samples/external/index.ja.md b/exampleSite/content/samples/external/index.ja.md index 7a0d4149..451c24c5 100755 --- a/exampleSite/content/samples/external/index.ja.md +++ b/exampleSite/content/samples/external/index.ja.md @@ -4,7 +4,7 @@ date: 2019-01-24 externalUrl: "https://n9o.xyz/projects/" summary: "`externalUrl` 表示は任意の URL にリンクすることができます。" showReadingTime: true -_build: +build: render: "false" list: "local" type: 'sample' diff --git a/exampleSite/content/samples/external/index.md b/exampleSite/content/samples/external/index.md index 5c42d258..a4fb60b2 100755 --- a/exampleSite/content/samples/external/index.md +++ b/exampleSite/content/samples/external/index.md @@ -4,7 +4,7 @@ date: 2019-01-24 externalUrl: "https://n9o.xyz/projects/" summary: "The `externalUrl` front matter parameter can link to any URL." showReadingTime: true -_build: +build: render: "false" list: "local" type: 'sample' diff --git a/exampleSite/content/samples/external/index.zh-cn.md b/exampleSite/content/samples/external/index.zh-cn.md index 2ef4d501..ddda64be 100755 --- a/exampleSite/content/samples/external/index.zh-cn.md +++ b/exampleSite/content/samples/external/index.zh-cn.md @@ -4,7 +4,7 @@ date: 2019-01-24 externalUrl: "https://n9o.xyz/projects/" summary: "`externalUrl` front matter 参数可以链接到任何外部 URL." showReadingTime: true -_build: +build: render: "false" list: "local" type: 'sample'