-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
43 additions
and
12 deletions.
There are no files selected for viewing
1 change: 0 additions & 1 deletion
1
content/blog/start-blog/index.md → content/blog/2019/2019-02-09___start-blog.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
--- | ||
title: Hexo と gh-pages でブログを作った | ||
date: 2019-02-09 19:10:20 | ||
id: start-blog | ||
tags: | ||
- hexo | ||
- GitHub Pages | ||
|
1 change: 0 additions & 1 deletion
1
content/blog/build-radio/index.md → ...ent/blog/2019/2019-03-04___build-radio.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
--- | ||
title: akispace.fm をはじめました | ||
date: 2019-03-04 11:28:00 | ||
id: build-radio | ||
tags: | ||
- yattecast | ||
- github-pages | ||
|
1 change: 0 additions & 1 deletion
1
content/blog/gatsby-blog/index.md → ...ent/blog/2019/2019-03-06___gatsby-blog.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
--- | ||
title: はやくもブログを Hexo から Gatsby に切り替えた | ||
date: 2019-03-06 11:58:50 | ||
id: start-blog | ||
tags: | ||
- Gatsby | ||
- React | ||
|
1 change: 0 additions & 1 deletion
1
content/blog/gatsby-skill-twitter/index.md → ...2019/2019-03-12___gatsby-skill-twitter.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
--- | ||
title: Gatsby で Twitter 埋め込みする | ||
date: 2019-03-12 20:47:00 | ||
id: gatsby-skill | ||
tags: | ||
- Gatsby | ||
- GitHub Pages | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
title: GatsbyJSで記事のURLをカスタマイズする | ||
date: 2020-01-04 23:03:38 | ||
tags: | ||
- Gatsby | ||
category: | ||
- Tech | ||
--- | ||
|
||
この記事では GatsbyJS で作るブログの **slug(URL のパス部分)** のカスタマイズ方法を紹介します。 | ||
|
||
## URL(記事のパス)の変更方法 | ||
|
||
(`gatsby-source-filesystem`)[https://www.gatsbyjs.org/packages/gatsby-source-filesystem/] を使用しています。 | ||
|
||
## 実装例 | ||
|
||
今回このブログを例にカスタマイズします。 | ||
|
||
プロジェクトのブログポストのディレクトリ構造はここに位置しています。 | ||
`/content/blog/{year}/{year}-{month}-{day}_{slug}.md` | ||
|
||
変更前の記事 URL は以下で、 | ||
→ `https://blog.anozon.me/2020/2020-01-04_gatsby-customize-slug` | ||
|
||
slug に当たる部分のみを URL に含める形にしたいです。 | ||
→ `https://blog.anozon.me/gatsby-customize-slug` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters