# 日本語

**URL:** https://discourse.gohugo.io/c/japanese/41.md

[Latest](https://discourse.gohugo.io/latest.md) · [Categories](https://discourse.gohugo.io/categories.md) · [Tags](https://discourse.gohugo.io/tags.md)

---

## [Hugo日本語フォーラムについて (About Hugo’s Japanese forum)](https://discourse.gohugo.io/t/hugo-about-hugo-s-japanese-forum/2263)

<div class="topic-metadata">

**Author:** [@spf13](https://discourse.gohugo.io/u/spf13)\
**Replies:** 2\
**Last updated:** [December 11, 2015, 5:28am UTC](https://discourse.gohugo.io/t/hugo-about-hugo-s-japanese-forum/2263 "2015-12-11T05:28:45Z")

</div>

静的サイトジェネレーター Hugoの日本語フォーラムです。ここでは自由に日本語でHugoに関することを書き込むことができます！ 日本のユーザにもHugoをたくさん使っていただけているようで嬉しく思っています。気軽に質問やバグ報告などをしてくださいね。 (This subforum is for Japanese speakers to discuss Hugo in Japanese.)

---

## [Hugoを利用した日本語サイト](https://discourse.gohugo.io/t/hugo/2264)

<div class="topic-metadata">

**Author:** [@RickCogley](https://discourse.gohugo.io/u/RickCogley)\
**Replies:** 9\
**Last updated:** [August 12, 2022, 5:46am UTC](https://discourse.gohugo.io/t/hugo/2264 "2022-08-12T05:46:51Z")

</div>

ここで、Hugoで利用して作成した日本語サイトをリストアップしましょう。追加してね。

---

## [Macでファイル名に濁音を含むとhugo server での自動反映に失敗する](https://discourse.gohugo.io/t/mac-hugo-server/32100)

<div class="topic-metadata">

**Author:** [@ironsand](https://discourse.gohugo.io/u/ironsand)\
**Replies:** 7\
**Last updated:** [April 22, 2021, 4:25pm UTC](https://discourse.gohugo.io/t/mac-hugo-server/32100 "2021-04-22T16:25:52Z")

</div>

おそらくMacの特殊な濁点の取り扱いが原因だと思うのですが、ファイル名が濁音を含んでいて、かつファイルがhugo serverコマンドよりも先に生成されているとファイル更新を検知しての自動反映が失敗します。 hugo server -D --disableFastRender # 別タブで hugo new カ.md hugo new ガ.md # この時点では両方とも自動更新が行われる # ctrl+c で hugo serve を…

---

## [コードブロックにファイル名を埋め込む方法](https://discourse.gohugo.io/t/topic/31065)

<div class="topic-metadata">

**Author:** [@ironsand](https://discourse.gohugo.io/u/ironsand)\
**Replies:** 2\
**Last updated:** [February 6, 2021, 8:06am UTC](https://discourse.gohugo.io/t/topic/31065 "2021-02-06T08:06:25Z")

</div>

トリプルバッククォートを使いコードブロックを記述するときにQiitaですと言語名:ファイル名をトリプルバッククォートの直後に書くことで、そのコードのファイル名とすることができますが、同様の事をHugoでするにはどうすればいでしょうか？ 以下の記事にあるこの画像のような機能です。 https://qiita.com/Qiita/items/c686397e4a0f4f11683d#code—%E3%82%B3%E3%83%BC%E…

---

## [Hugo + Netlify で独自ブログ開設を試みたが、ビルドでエラーが発生する](https://discourse.gohugo.io/t/hugo-netlify/27778)

<div class="topic-metadata">

**Author:** [@Capr1](https://discourse.gohugo.io/u/Capr1)\
**Replies:** 4\
**Last updated:** [August 23, 2020, 5:14pm UTC](https://discourse.gohugo.io/t/hugo-netlify/27778 "2020-08-23T17:14:45Z")

</div>

困ったこと Hugo + Netlifyで独自ブログ開設を試みたが、ビルドでエラーが発生する エラー内容 11:54:55 PM: │ Netlify Build │ 11:54:55 PM: └─────────────────────────────┘ 11:54:55 PM: ​ 11:54:55 PM: ❯ Version 11:54:55 PM: @netlify/buil…

---

## [サイトマップが相対リンクで生成されてしまう](https://discourse.gohugo.io/t/topic/26217)

<div class="topic-metadata">

**Author:** [@2001Y](https://discourse.gohugo.io/u/2001Y)\
**Replies:** 2\
**Last updated:** [June 13, 2020, 8:39am UTC](https://discourse.gohugo.io/t/topic/26217 "2020-06-13T08:39:31Z")

</div>

現在、Hugoテンプレートのサイトマップを利用しています。 しかし、久しぶりにSearchConsoleを確認したところ全くインデックスされていませんでした。 解決策が分かる方がいらっしゃいましたら、教えていただければ幸いです。

---

## [ショートコードのサブディレクトリ化](https://discourse.gohugo.io/t/topic/25583)

<div class="topic-metadata">

**Author:** [@ada](https://discourse.gohugo.io/u/ada)\
**Replies:** 2\
**Last updated:** [May 17, 2020, 6:45am UTC](https://discourse.gohugo.io/t/topic/25583 "2020-05-17T06:45:14Z")

</div>

Hugoでショートコードを利用する際、こんな感じで使用すると思うのですが、 ├─ layouts │ └── shortcodes │ ├── 1.html │ └── 2.html 下記のようにやると当然ながら読み込めません… ├─ layouts │ └── shortcodes │ │── hugo │ …

---

## [Sectionリストページと\_index.mdについて。](https://discourse.gohugo.io/t/section-index-md/25214)

<div class="topic-metadata">

**Author:** [@lion29](https://discourse.gohugo.io/u/lion29)\
**Replies:** 8\
**Last updated:** [May 5, 2020, 1:10pm UTC](https://discourse.gohugo.io/t/section-index-md/25214 "2020-05-05T13:10:28Z")

</div>

AAAセクションの全ページをリスト化しつつ、中身の\_index.mdリストも作りたい。 AAA – A1 ---- \_index.md ---- 123.md ---- 456.md – A2 ---- \_index.md ---- 123.md ---- 456.md A1とA2の中に沢山のページがあるため、それぞれを\_index.mdでリスト化しました。 \_index.mdが無ければAAAセクションの全ページリ…

---

## [画像一覧ページについて。](https://discourse.gohugo.io/t/topic/24964)

<div class="topic-metadata">

**Author:** [@lion29](https://discourse.gohugo.io/u/lion29)\
**Replies:** 3\
**Last updated:** [April 23, 2020, 8:38am UTC](https://discourse.gohugo.io/t/topic/24964 "2020-04-23T08:38:20Z")

</div>

とあるlistページにて画像を一覧表示し、クリックorタップすると、そのページに飛ぶ・・・古いHugoのverにて作ったことがあるのですが、 Hugoのverを新しくしたら画像が表示されなくなったと言われてしまい・・・。 Front Matterは、image: \<img src="{{ .Params.image }}" こちらで表示は問題無かった。 verは、3年位前のもの。0.2x? どのような可能性があるでしょうか？

---

## [Mdbookみたいなテーマを作りたい](https://discourse.gohugo.io/t/mdbook/24569)

<div class="topic-metadata">

**Author:** [@xcd0](https://discourse.gohugo.io/u/xcd0)\
**Replies:** 1\
**Last updated:** [April 9, 2020, 8:13am UTC](https://discourse.gohugo.io/t/mdbook/24569 "2020-04-09T08:13:53Z")

</div>

既にhttps://themes.gohugo.io/hugo-book/のようなテーマがありますが、 もっとmdbookに寄せたものが欲しく作ろうと思っています。 例えば左の目次を折りたたみたいです。 ある程度はmdbookのcssやjavascriptをこぴって来たらいけるかなと想像してます。（試してはない 右にあるtocを左の目次に入れたいです。 これはmdbookにないのでできるとアドバンテージになるかなと思い…

---

## [ローカルでのプレビューとGitpagesが合わない](https://discourse.gohugo.io/t/gitpages/24481)

<div class="topic-metadata">

**Author:** [@jahad](https://discourse.gohugo.io/u/jahad)\
**Replies:** 4\
**Last updated:** [April 5, 2020, 10:30pm UTC](https://discourse.gohugo.io/t/gitpages/24481 "2020-04-05T22:30:13Z")

</div>

いつもお世話になっております． 今回質問させていただきたいのは以下のような現象はなぜ起きたのか，およびその対策についてお聞きしたいと思い，質問させていただきました． https://github.com/jahad9819jjj/jahad9819jjj.github.ioをSubmoduleとして登録し，https://github.com/jahad9819jjj/jahad9819jjjSiteにて作成したブログを以下のように…

---

## [日本語ソートについて。](https://discourse.gohugo.io/t/topic/24262)

<div class="topic-metadata">

**Author:** [@lion29](https://discourse.gohugo.io/u/lion29)\
**Replies:** 2\
**Last updated:** [March 28, 2020, 7:01am UTC](https://discourse.gohugo.io/t/topic/24262 "2020-03-28T07:01:26Z")

</div>

私は、archetypesでtitleをひらがなにしてソートをし、 .mdファイル名を.TranslationBaseNameでタイトル表示させています。 50音順に並べる良い方法は、他にないでしょうか？

---

## [Section一覧について。](https://discourse.gohugo.io/t/section/24238)

<div class="topic-metadata">

**Author:** [@lion29](https://discourse.gohugo.io/u/lion29)\
**Replies:** 5\
**Last updated:** [March 25, 2020, 7:29am UTC](https://discourse.gohugo.io/t/section/24238 "2020-03-25T07:29:00Z")

</div>

{{ range .Pages.GroupBy “Section” }}を使って、Sectionを一覧化することが出来ました。 a b c d その際、Section名も付与することは出来ないでしょうか？ 2019 a b 2020 c d のように。 よろしくお願いします。

---

## [初心者向け勉強会開催について](https://discourse.gohugo.io/t/topic/22994)

<div class="topic-metadata">

**Author:** [@tao-s](https://discourse.gohugo.io/u/tao-s)\
**Replies:** 14\
**Last updated:** [February 15, 2020, 1:12pm UTC](https://discourse.gohugo.io/t/topic/22994 "2020-02-15T13:12:02Z")

</div>

東京で初心者向け勉強会を企画しています。 参加されたい方、講師やっても良いよ〜という方がいらっしゃいましたらぜひコメントお願いします。

---

## [軽量のテーマを紹介してください！](https://discourse.gohugo.io/t/topic/16499)

<div class="topic-metadata">

**Author:** [@xcd0](https://discourse.gohugo.io/u/xcd0)\
**Replies:** 13\
**Last updated:** [February 5, 2020, 5:47am UTC](https://discourse.gohugo.io/t/topic/16499 "2020-02-05T05:47:59Z")

</div>

HUGOは静的サイトを生成できて、せっかく早いサイトが作れるのに、 テーマが遅いともったいないですね。 おすすめの軽量テーマを教えてください！ 例えば Hugo Nuo ← PageSpeed Insights このテーマだと98点とすばらしいですね Code Editor このテーマは93点でした ちょっと見た目くらいですが色とかいじることができればいいかもですね DocuAPI このテーマはいろいろ機能がついてる…

---

## [セクション内で使われているカテゴリのリストを表示したい](https://discourse.gohugo.io/t/topic/23092)

<div class="topic-metadata">

**Author:** [@anocco](https://discourse.gohugo.io/u/anocco)\
**Replies:** 2\
**Last updated:** [February 5, 2020, 5:03am UTC](https://discourse.gohugo.io/t/topic/23092 "2020-02-05T05:03:52Z")

</div>

teratail でも質問しましたが、こちらでも質問させていただきます。 前提・実現したいこと セクション内にある記事で使われているカテゴリのリストを表示したい (以下をご参照ください) 現状・問題点 静的サイトジェネレーターHUGOを触り始めた初心者です。 セクション内にある記事で使われているカテゴリだけのリストを表示する方法も探しています。 現状は、【All・カテゴリA・カテゴリB・カテゴリC・カテゴリD】になっています…

---

## [If in について](https://discourse.gohugo.io/t/if-in/23065)

<div class="topic-metadata">

**Author:** [@2001Y](https://discourse.gohugo.io/u/2001Y)\
**Replies:** 2\
**Last updated:** [January 28, 2020, 7:24am UTC](https://discourse.gohugo.io/t/if-in/23065 "2020-01-28T07:24:11Z")

</div>

本文中にTwitterの埋め込みがあった場合に（.Content に twitter-tweet が含まれていた時に）、jsを読み込みたい時に以下のようにしたのですが動作しませんでした。 解決策を教えていただけると助かります。 {{ if in .Content "twitter-tweet" }} \<script async src="https://platform.twitter.com/widgets.js"\>\</…

---

## [{{ range}}を使用した、複数のparamsのループ処理](https://discourse.gohugo.io/t/range-params/22826)

<div class="topic-metadata">

**Author:** [@ada](https://discourse.gohugo.io/u/ada)\
**Replies:** 3\
**Last updated:** [January 15, 2020, 12:48pm UTC](https://discourse.gohugo.io/t/range-params/22826 "2020-01-15T12:48:37Z")

</div>

現在、ポートフォリオのWebサイトを制作しており、クレジット表記の{{ range}}を使用した、複数のparamsのループ処理がうまく出来なく困っております。 例えば、フロントマターのparamsに、 (-を使用すると、listとして認識してしまうので省略しています。) (yaml) position: Art Direction Photography Web Director name: John Doe1 J…

---

## [Content内のhtmlファイルのtypeを指定する方法](https://discourse.gohugo.io/t/content-html-type/22735)

<div class="topic-metadata">

**Author:** [@2001Y](https://discourse.gohugo.io/u/2001Y)\
**Replies:** 2\
**Last updated:** [January 9, 2020, 5:52pm UTC](https://discourse.gohugo.io/t/content-html-type/22735 "2020-01-09T17:52:12Z")

</div>

content内の記事をMarkdownではなく、HTMLで書いた場合、どのようにPageTypeを指定すれば良いのでしょうか。 無理やり以下のようにしたのですが、それでは動作しませんでした。 わかる範囲で構いませんので、教えていただけると幸いです。 \<!--content/contact/index.html --\> --- type: "page" --- \<!DOCTYPE html\> …

---

## [親セッションに子セッションの一覧を表示したい](https://discourse.gohugo.io/t/topic/22675)

<div class="topic-metadata">

**Author:** [@2001Y](https://discourse.gohugo.io/u/2001Y)\
**Replies:** 7\
**Last updated:** [January 8, 2020, 4:01pm UTC](https://discourse.gohugo.io/t/topic/22675 "2020-01-08T16:01:59Z")

</div>

現在、セッションをカテゴリ分けのようにして利用しています。 各カテゴリのトップではリストを表示することができているのですが、blogのlist表示ができません。 条件わけでblogセッション指定でlistを表示しようとしたのですが、ページネーションがうまく表示できず（カテゴリの方はうまく動いている）。 どうぞよろしくお願いします。 /content /blog /\_index.md × /1.md /catego…

---

## [{{ if eq . "" }}を使用したメニューの条件分岐](https://discourse.gohugo.io/t/if-eq/22670)

<div class="topic-metadata">

**Author:** [@ada](https://discourse.gohugo.io/u/ada)\
**Replies:** 8\
**Last updated:** [January 6, 2020, 8:22am UTC](https://discourse.gohugo.io/t/if-eq/22670 "2020-01-06T08:22:12Z")

</div>

現在 ~.com ~.com/en 上記のようにパーマリンクを分けて、２カ国対応のWebサイトを作成してあります。各言語のページは全て作成してあるのですが、メニューとフッターの部分だけ日本語のままで、~.com/en/から始まる時だけ英語のメニューを表示したいと考えています。 (~.com/en/hugo などにアクセスの場合も、英語のメニューを表示させたいです) 簡単な方法はあるとは思いますが、現在メニューやフッターはHTM…

---

## [特定のカテゴリー 一覧の記述方法](https://discourse.gohugo.io/t/topic/22483)

<div class="topic-metadata">

**Author:** [@ada](https://discourse.gohugo.io/u/ada)\
**Replies:** 5\
**Last updated:** [December 27, 2019, 6:28am UTC](https://discourse.gohugo.io/t/topic/22483 "2019-12-27T06:28:18Z")

</div>

現在Novelaというテーマを使用しています。 config.yamlでタクソノミーとして登録している"categories"について、記事であるmdファイルに現在"hugo"、“mac”、"windows"とカテゴリーを割り振っているのですが、URL: /categories/mac/などを開くと、/parttials/articles/list.htmlが表示されてしまいます。(ホームページと一緒のhtmlが出力されます。) m…

---

## [サイト内リンクを相対パスで生成したい](https://discourse.gohugo.io/t/topic/19193)

<div class="topic-metadata">

**Author:** [@xcd0](https://discourse.gohugo.io/u/xcd0)\
**Replies:** 5\
**Last updated:** [June 18, 2019, 9:08am UTC](https://discourse.gohugo.io/t/topic/19193 "2019-06-18T09:08:08Z")

</div>

hugoを使って社内向けのオフラインドキュメントを作成しようとしています。 ドキュメントが常に同じパスに置かれる場合、何も問題なく使用できます。 しかし、オフラインドキュメントとしてzip等でまとめて再配布した際に、当然ですが展開によりルートディレクトリが変わることで、リンクの参照ができなくなる問題が発生しています。 これはテーマの中でリンクに{{ .Site.BaseURL }}が用いられてるためです。 再配布後も正しく表示さ…

---

## [Hugo Documentation 和訳・日本語訳プロジェクト](https://discourse.gohugo.io/t/hugo-documentation/18105)

<div class="topic-metadata">

**Author:** [@peaceiris](https://discourse.gohugo.io/u/peaceiris)\
**Replies:** 0\
**Last updated:** [April 14, 2019, 10:23am UTC](https://discourse.gohugo.io/t/hugo-documentation/18105 "2019-04-14T10:23:41Z")

</div>

Hugo documentation を日本語に翻訳中です。日本語ドキュメントは gohugo.io で公開される予定です。 ご参加お待ちしております。 このプロジェクトに関する質問をここで受け付けます。 Links プロジェクトの概要を知りたいのであれば、まずはこちらをお読みください :point\_down: hugojapan/hugojapan.github.io: :jp: Hugo Documentation 和訳・…

---

## [背景色や文字色の変え方](https://discourse.gohugo.io/t/topic/18114)

<div class="topic-metadata">

**Author:** [@111](https://discourse.gohugo.io/u/111)\
**Replies:** 8\
**Last updated:** [April 15, 2019, 12:43pm UTC](https://discourse.gohugo.io/t/topic/18114 "2019-04-15T12:43:39Z")

</div>

https://jahad9819jjj.github.io における背景色と文字色を変えたいです srcは以下です

---

## [Taxonomyについて](https://discourse.gohugo.io/t/taxonomy/16082)

<div class="topic-metadata">

**Author:** [@jp-satou](https://discourse.gohugo.io/u/jp-satou)\
**Replies:** 1\
**Last updated:** [January 2, 2019, 7:40pm UTC](https://discourse.gohugo.io/t/taxonomy/16082 "2019-01-02T19:40:37Z")

</div>

DocsのTaxonomiesで、taxonomy term page permalinks are not.とありますが、今後もtermには、パーマリンク設定ができないのでしょうか？ 私は、日本語termを英語URLにしたいです。 config.tomlで対応できるような、アップデートを期待しています。

---

## [Is there a possibility to use Range on .Paginate?](https://discourse.gohugo.io/t/is-there-a-possibility-to-use-range-on-paginate/10292)

<div class="topic-metadata">

**Author:** [@syui](https://discourse.gohugo.io/u/syui)\
**Replies:** 0\
**Last updated:** [February 1, 2018, 12:55am UTC](https://discourse.gohugo.io/t/is-there-a-possibility-to-use-range-on-paginate/10292 "2018-02-01T00:55:00Z")

</div>

ref : Is there a possibility to use Sort on .Paginate? .Paginate をpublishdate順に並び替えて適用することってできるんでしょうか? 例えば、下記は、分割された枠内では並び替えができているように見えますが、全体として順番通りではありません。 {{ $paginator := .Paginate (.Data.Pages) }} {{ range ($pagin…
