Skip to content

Commit 385c9ab

Browse files
committed
Translate contribute/style/content-organization into Japanese.
1 parent 3085bbd commit 385c9ab

File tree

1 file changed

+37
-52
lines changed

1 file changed

+37
-52
lines changed
Lines changed: 37 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,98 +1,89 @@
11
---
2-
title: Content organization
2+
title: コンテンツの構成
33
content_type: concept
44
weight: 40
55
---
66

7-
87
<!-- overview -->
98

10-
This site uses Hugo. In Hugo, [content organization](https://gohugo.io/content-management/organization/) is a core concept.
11-
12-
9+
このサイトではHugoを使用しています。Hugoでは、[コンテンツの構成](https://gohugo.io/content-management/organization/)がコアコンセプトとなっています。
1310

1411
<!-- body -->
1512

1613
{{% note %}}
17-
**Hugo Tip:** Start Hugo with `hugo server --navigateToChanged` for content edit-sessions.
14+
**Hugoのヒント:** コンテンツの編集を始めるときは、`hugo server --navigateToChanged`コマンドを使用してHugoを実行してください。
1815
{{% /note %}}
1916

20-
## Page Lists
17+
## ページの一覧
2118

22-
### Page Order
19+
### ページの順序
2320

24-
The documentation side menu, the documentation page browser etc. are listed using Hugo's default sort order, which sorts by weight (from 1), date (newest first), and finally by the link title.
21+
ドキュメントのサイドメニューやページブラウザーなどでは、Hugoのデフォルトのソート順序を使用して一覧を作成しています。デフォルトでは、weight(1から開始)、日付(最新のものが1番目)、最後にリンクのタイトルの順でソートされます。
2522

26-
Given that, if you want to move a page or a section up, set a weight in the page's front matter:
23+
そのため、特定のページやセッションを上に移動したい場合には、ページのフロントマター内のweightを設定します。
2724

2825
```yaml
2926
title: My Page
3027
weight: 10
3128
```
3229
33-
3430
{{% note %}}
35-
For page weights, it can be smart not to use 1, 2, 3 ..., but some other interval, say 10, 20, 30... This allows you to insert pages where you want later.
31+
ページのweightについては、1、2、3…などの値を使用せず、10、20、30…のように一定の間隔を空けた方が賢明です。こうすることで、後で別のページを間に挿入できるようになります。
3632
{{% /note %}}
3733
34+
### ドキュメントのメインメニュー
3835
39-
### Documentation Main Menu
40-
41-
The `Documentation` main menu is built from the sections below `docs/` with the `main_menu` flag set in front matter of the `_index.md` section content file:
36+
ドキュメントのメインメニューは、`docs/`以下に置かれたセクションのコンテンツファイル`_index.md`のフロントマター内に`main_menu`フラグが設定されたものから生成されます。
4237

4338
```yaml
4439
main_menu: true
4540
```
4641

47-
48-
Note that the link title is fetched from the page's `linkTitle`, so if you want it to be something different than the title, change it in the content file:
49-
42+
リンクのタイトルは、ページの`linkTitle`から取得されることに注意してください。そのため、ページのタイトルとは異なるリンクテキストにしたい場合、コンテンツファイル内の値を以下のように設定します。
5043

5144
```yaml
5245
main_menu: true
53-
title: Page Title
54-
linkTitle: Title used in links
46+
title: ページタイトル
47+
linkTitle: リンク内で使われるタイトル
5548
```
5649

57-
5850
{{% note %}}
59-
The above needs to be done per language. If you don't see your section in the menu, it is probably because it is not identified as a section by Hugo. Create a `_index.md` content file in the section folder.
51+
上記の設定は言語ごとに行う必要があります。メニュー上にセクションが表示されないときは、Hugoからセクションとして認識されていないためである可能性が高いです。セクションフォルダー内に`_index.md`コンテンツファイルを作成してください。
6052
{{% /note %}}
6153

62-
### Documentation Side Menu
54+
### ドキュメントのサイドメニュー
6355

64-
The documentation side-bar menu is built from the _current section tree_ starting below `docs/`.
56+
ドキュメントのサイドバーメニューは、`docs/`以下の*現在のセクションツリー*から生成されます。
6557

66-
It will show all sections and their pages.
58+
セクションと、そのセクション内のページがすべて表示されます。
6759

68-
If you don't want to list a section or page, set the `toc_hide` flag to `true` in front matter:
60+
特定のセクションやページをリストに表示したくない場合、フロントマター内の`toc_hide`フラグを`true`に設定してください。
6961

7062
```yaml
7163
toc_hide: true
7264
```
7365

74-
When you navigate to a section that has content, the specific section or page (e.g. `_index.md`) is shown. Else, the first page inside that section is shown.
66+
コンテンツが存在するセクションに移動すると、特定のセクションまたはページ(例:`index.md`)が表示されます。それ以外の場合、そのセクションの最初のページが表示されます。
7567

76-
### Documentation Browser
68+
### ドキュメントのブラウザー
7769

78-
The page browser on the documentation home page is built using all the sections and pages that are directly below the `docs section`.
70+
ドキュメントのホームページのページブラウザーは、`docs`セクション直下のすべてのセクションとページを使用して生成されています。
7971

80-
If you don't want to list a section or page, set the `toc_hide` flag to `true` in front matter:
72+
特定のセクションやページを表示したくない場合、フロントマターの`toc_hide`フラグを`true`に設定してください。
8173

8274
```yaml
8375
toc_hide: true
8476
```
8577

86-
### The Main Menu
78+
### メインメニュー
8779

88-
The site links in the top-right menu -- and also in the footer -- are built by page-lookups. This is to make sure that the page actually exists. So, if the `case-studies` section does not exist in a site (language), it will not be linked to.
80+
右上のメニュー(およびフッター)にあるサイトリンクは、page-lookupの機能を使用して実装されています。これにより、ページが実際に存在することを保証しています。そのため、たとえば`case-studies`のセクションが特定の言語のサイトに存在しない場合、メニューにはケーススタディのリンクが表示されません。
8981

82+
## Page Bundle
9083

91-
## Page Bundles
84+
スタンドアローンのコンテンツページ(Markdownファイル)に加えて、Hugoでは、[Page Bundles](https://gohugo.io/content-management/page-bundles/)がサポートされています。
9285

93-
In addition to standalone content pages (Markdown files), Hugo supports [Page Bundles](https://gohugo.io/content-management/page-bundles/).
94-
95-
One example is [Custom Hugo Shortcodes](/docs/contribute/style/hugo-shortcodes/). It is considered a `leaf bundle`. Everything below the directory, including the `index.md`, will be part of the bundle. This also includes page-relative links, images that can be processed etc.:
86+
Page Bundleの1つの例は、[カスタムのHugo Shortcode](/docs/contribute/style/hugo-shortcodes/)です。これは、`leaf bundle`であると見做されます。ディレクトリ内のすべてのファイルは、`index.md`を含めてバンドルの一部となります。これには、ページからの相対リンク、処理可能な画像なども含まれます。
9687

9788
```bash
9889
en/docs/home/contribute/includes
@@ -102,7 +93,7 @@ en/docs/home/contribute/includes
10293
└── podtemplate.json
10394
```
10495

105-
Another widely used example is the `includes` bundle. It sets `headless: true` in front matter, which means that it does not get its own URL. It is only used in other pages.
96+
もう1つのPage Bundleがよく使われる例は、`includes`バンドルです。フロントマターに`headless: true`を設定すると、自分自身のURLを持たなくなり、他のページ内でのみ使用されるようになります。
10697

10798
```bash
10899
en/includes
@@ -115,24 +106,18 @@ en/includes
115106
└── user-guide-migration-notice.md
116107
```
117108

118-
Some important notes to the files in the bundles:
119-
120-
* For translated bundles, any missing non-content files will be inherited from languages above. This avoids duplication.
121-
* All the files in a bundle are what Hugo calls `Resources` and you can provide metadata per language, such as parameters and title, even if it does not supports front matter (YAML files etc.). See [Page Resources Metadata](https://gohugo.io/content-management/page-resources/#page-resources-metadata).
122-
* The value you get from `.RelPermalink` of a `Resource` is page-relative. See [Permalinks](https://gohugo.io/content-management/urls/#permalinks).
123-
124-
125-
## Styles
109+
バンドル内のファイルに関して、いくつか重要な注意点があります。
126110

127-
The [SASS](https://sass-lang.com/) source of the stylesheets for this site is stored in `assets/sass` and is automatically built by Hugo.
111+
* 翻訳されたバンドルに対しては、コンテンツ以外の見つからなかったファイルは上位の言語から継承されます。これにより重複が回避できます。
112+
* バンドル内のすべてのファイルは、Hugoが`Resources`と呼ぶファイルになり、フロントマター(YAMLファイルなど)をサポートしていない場合であっても、言語ごとにパラメーターやタイトルなどのメタデータを提供できます。詳しくは、[Page Resourcesメタデータ](https://gohugo.io/content-management/page-resources/#page-resources-metadata)を参照してください。
113+
* `Resource`の`.RelPermalink`から取得した値は、ページからの相対的なものとなっています。詳しくは、[Permalinks](https://gohugo.io/content-management/urls/#permalinks)を参照してください。
128114

115+
## スタイル
129116

117+
このサイトのスタイルシートの[SASS](https://sass-lang.com/)のソースは、`assets/sass`に置かれていて、Hugoによって自動的にビルドされます。
130118

131119
## {{% heading "whatsnext" %}}
132120

133-
134-
* Learn about [custom Hugo shortcodes](/docs/contribute/style/hugo-shortcodes/)
135-
* Learn about the [Style guide](/docs/contribute/style/style-guide)
136-
* Learn about the [Content guide](/docs/contribute/style/content-guide)
137-
138-
121+
* [カスタムのHugo shortcode](/docs/contribute/style/hugo-shortcodes/)について学ぶ
122+
* [スタイルガイド](/docs/contribute/style/style-guide)について学ぶ
123+
* [コンテンツガイド](/docs/contribute/style/content-guide)について学ぶ

0 commit comments

Comments
 (0)