Gatsby-Starter-Aestura Gatsby UI Blog template .
Gatsby-Starter-Aestura SUIT font .
# Install dependencies
$ yarn
# Start development server
$ yarn develop
# /gatsby-meta-config.js
{
siteTitle: '', // Aesture title .
description: '', // .
author: '', // .
siteUrl: '', // URL .
siteRepo: '', // utterances .
githubId: '', // github ID .
linkedInId: '', // linkedIn URL path .
twitterId: '', // ID .
},
/content
. URL path .
markdown .
---
date: '2004-07-06' // YYYY-MM-DD
title: '' //
categories: ['Web', 'SEO', 'Optimization'] //
summary: ' .' // .
---
utterances github issue .
github , .
utterances Github utterances .
utterances install
.
, .
gatsby-meta-config.js
siteRepo
userName/repoName
. .
Repository
[username].github.io
github pages default .
github pages gh-pages
. .
$ yarn add gh-pages -D
package.json
.
"deploy": "gatsby build && gh-pages -d public -b master"
{
...,
"scripts": {
"build": "gatsby build",
"develop": "gatsby develop",
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,md}\"",
"start": "gatsby develop",
"serve": "gatsby serve",
"clean": "gatsby clean",
"test": "echo \"Write tests! -> https://gatsby.dev/unit-testing\" && exit 1",
"deploy": "gatsby build && gh-pages -d public -b master"
},
...
}
github pages URL https://[username].github.io/
gatsby-config.js
siteUrl
.
, gatsby-plugin-canonical-urls
.
module.exports = {
siteMetadata: {
...,
siteUrl: 'https://[username].github.io/',
},
plugins: [
...,
{
resolve: 'gatsby-plugin-canonical-urls',
options: {
siteUrl: 'https://[username].github.io/',
stripQueryString: true,
},
},
...
],
};
.
$ yarn deploy
Published
.
Repository
Setting .
github pages , .
.
https://[username].github.io
.