Skip to content

Commit 8f4a1d9

Browse files
authored
fix: variables/git (#30)
* fix: front matter * small fix for .GitInfo の必須要件 * fix: .Lastmod * fix: Markdown emphasis
1 parent 3c50b10 commit 8f4a1d9

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

variables/git.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: Git情報変数
3-
linktitle: Git Variables
4-
description: コンテンツファイル毎の最新Gitリビジョンの情報を取得します
2+
title: Git 情報変数
3+
linktitle: Git 変数
4+
description: コンテンツファイル毎の最新 Git リビジョン情報を取得します
55
date: 2017-03-12
66
publishdate: 2017-03-12
77
lastmod: 2017-03-12
@@ -20,14 +20,14 @@ wip: false
2020
---
2121

2222
{{% note "`.GitInfo` Performance Considerations" %}}
23-
Hugo の Git 統合はかなりパフォーマンスが良いはずですが、ビルド時間が長くなる*かも*しれません。これは Git の履歴サイズによります。
23+
Hugo の Git 統合はかなりパフォーマンスが良いはずですが、ビルド時間が長くなる *かも* しれません。これは Git の履歴サイズによります。
2424
{{% /note %}}
2525

26-
## `.GitInfo` の必須要件
26+
## `.GitInfo` の必要条件
2727

28-
1. Hugo サイトが Git が有効化されたディレクトリー内にあること
29-
2. Git がインストールされており、システムの `PATH` が通っていること
30-
3. Hugo プロジェクトの`.GitInfo` が有効になっていること。コマンドラインで`--enableGitInfo` フラグをつけるか、[サイトの設定ファイル][configuration] `enableGitInfo` `true` で設定することで有効にできます
28+
1. Hugo サイトが Git の有効化されたディレクトリー内にあること。
29+
2. Git がインストールされており、システムの `PATH` が通っていること
30+
3. Hugo プロジェクトにおいて `.GitInfo` が有効になっていること。コマンドラインで `--enableGitInfo` フラグをつけるか、[サイトの設定ファイル][configuration]において `enableGitInfo` `true` を指定することで有効にできます。
3131

3232
## `.GitInfo` オブジェクト
3333

@@ -53,6 +53,6 @@ Hugo の Git 統合はかなりパフォーマンスが良いはずですが、
5353

5454
## `.Lastmod`
5555

56-
`.GitInfo` 機能が有効になっている場合、(`Page` の)`.Lastmod` は Git の、例えば`.GitInfo.AuthorDate` から取得されます。この挙動は[日付のフロントマター設定](/getting-started/configuration/#configure-front-matter)を追加することで変更できます。
56+
`.GitInfo` 機能が有効になっている場合、(`Page` の)`.Lastmod` は Git の、例えば `.GitInfo.AuthorDate` から取得されます。この挙動は[日付の front matter 設定](/getting-started/configuration/#configure-front-matter)を追加することで変更できます。
5757

5858
[configuration]: /getting-started/configuration/

0 commit comments

Comments
 (0)