目次
macOS Mojave
このサイトを構築できまっせ
とにかくページを開くのが早いサイトです(雑)
newはご自身のプロジェクト名に適宜変更すべしgatsby new gatsby-starter-lumen https://github.com/alxshelepenok/gatsby-starter-lumenyarn,gatsbyコマンドはインストールしてねcd new
yarn install
gatsby developlocalhost:8000にアクセスすれば、スタータープロジェクトを見ることができる
└── content
├── pages
└── posts
└── static
├── admin
└── media
└── src
├── assets
│ └── scss
│ ├── base
│ └── mixins
├── cms
│ └── preview-templates
├── components
│ ├── Feed
│ ├── Icon
│ ├── Layout
│ ├── Page
│ ├── Pagination
│ ├── Post
│ │ ├── Author
│ │ ├── Comments
│ │ ├── Content
│ │ ├── Meta
│ │ └── Tags
│ └── Sidebar
│ ├── Author
│ ├── Contacts
│ ├── Copyright
│ └── Menu
├── constants
├── templates
└── utilspostsフォルダに新しいファイルを作っていくよ
pages/about, pages/contactsを変更するよ
coonfig.jsファイルを変更することで以下を変更できる
masterブランチにプッシュすれば自動で変更された内容が公開サイトに反映されるmasterブランチにプッシュした時に、Netlify のビルドがエラーを起こす。
npm installをしたことで生成されるpackage-lock.jsonとyarn installしたことで生成されるyarn.lockが競合していた