ブログをgatsbyjsで作り直す
August 11, 2017
TL;DR
- gatsbyjs でブログを立て直した
- goodbye hugo
経緯
- Hugo を使っていたが
Go Template
に勉強要素がなかった - SPA ベースのブログとして拡張可能なものを探した
-
その他に検討したもの
- nextin
- next.js ベース
-
css の扱いで苦戦
- いい加減
jsx
extension 使わせてくれ - nuxt.js
- React 優先したら後回しに
作業内容
https://github.com/9renpoto/entry
-
https://github.com/gatsbyjs/gatsby-starter-blog
- 不要な依存を削除
- SSR するために
style-loader
が使えなかったためstatic
ファイルを参照するアプローチ - https://www.gatsbyjs.org/docs/importing-assets-into-files/
Written by Keisuke Kan who lives and works in Japan building useful things. You should follow him on Twitter