Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Commit fd71ae7

Browse files
authored
Merge pull request #212 from gentksb/docs/creating-a-sitemap
Docs/creating a sitemap
2 parents 11e248c + 630c8e4 commit fd71ae7

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

docs/docs/creating-a-sitemap.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
---
2-
title: Creating a Sitemap
2+
title: サイトマップを生成する
33
---
44

5-
## What is a sitemap?
5+
## サイトマップとは
66

7-
An [XML sitemap](https://support.google.com/webmasters/answer/156184?hl=en) lists a website’s important pages, making sure search engines (such as Google) can find and crawl them all. In effect, a sitemap helps a search engine understand your website structure.
7+
[XML sitemap](https://support.google.com/webmasters/answer/156184?hl=ja) は、ウェブサイトの重要なページのリストで、Google のような検索エンジンがこれらのページをすべてクロールできるように用いられます。サイトマップは、検索エンジンがあなたのウェブサイトの構造を理解することを助けます。
88

9-
Think of it as a map for your website. It shows what all of the pages are on your website.
9+
これは、あなたのウェブサイトの地図であると考えてください。あなたのウェブサイトの全ページが何であるかを示します。
1010

11-
## Using [gatsby-plugin-sitemap](/packages/gatsby-plugin-sitemap/)
11+
## [gatsby-plugin-sitemap](/packages/gatsby-plugin-sitemap/) を使う
1212

13-
To generate an XML sitemap, you will use the [`gatsby-plugin-sitemap`](/packages/gatsby-plugin-sitemap/) package.
13+
XML サイトマップを生成するために、[`gatsby-plugin-sitemap`](/packages/gatsby-plugin-sitemap/) プラグインを利用します。
1414

15-
Install the package by running the following command:
15+
下記のコマンドでプラグインをインストールします。
1616
`npm install --save gatsby-plugin-sitemap`
1717

18-
### How to configure
18+
### 設定方法
1919

20-
Once installation is complete, you can now add this plugin to your `gatsby-config.js`, like so:
20+
プラグインのインストールが終了したら、`gatsby-config.js` に、下記のような設定を追加します。
2121

2222
```javascript:title=gatsby-config.js
2323
module.exports = {
@@ -28,14 +28,14 @@ module.exports = {
2828
}
2929
```
3030

31-
**Note:** The siteUrl property must be defined and not left empty.
31+
**ヒント:** `siteUrl` は必須項目です、空白のままにしないでください。
3232

33-
Next run a build (`npm run build`) since the sitemap generation will only happen for production builds. This is all that's required to get a working sitemap with Gatsby! By default, the generated sitemap path is /sitemap.xml and will include all of your site’s pages, but of course the plugin exposes options to configure this default functionality.
33+
サイトマップの生成は、本番環境のビルド時のみ行われるため、まずはビルドコマンド (`npm run build`)を実行します。Gatsby でサイトマップを生成する作業はこれだけです!既定では、/sitemap.xml にサイトマップが生成され、ウェブサイトの全ページがサイトマップに含まれています。もちろん、プラグインでこのデフォルト設定を変更することも可能です。
3434

35-
### Additional modifications
35+
### 追加設定
3636

37-
Additional modification steps are available in the [`gatsby-plugin-sitemap` documentation](/packages/gatsby-plugin-sitemap)
37+
追加の設定を行いたい場合は、[`gatsby-plugin-sitemap` のドキュメント](/packages/gatsby-plugin-sitemap)を確認してください。
3838

39-
## More information
39+
## 追加情報
4040

41-
- Also check out a post on [gatsby-plugin-advanced-sitemap](/blog/2019-05-07-advanced-sitemap-plugin-for-seo/) from the Gatsby blog
41+
- サイトマップの生成に関する、さらに詳しい情報を知りたい場合、Gatsby ブログの [gatsby-plugin-advanced-sitemap](/blog/2019-05-07-advanced-sitemap-plugin-for-seo/) の確認をおすすめします。

0 commit comments

Comments
 (0)