Skip to content
This repository has been archived by the owner on Mar 12, 2023. It is now read-only.

Changing the blog title ブログのタイトルを変更する

Hiroki Toyokawa edited this page Nov 11, 2022 · 3 revisions

Pre-requirements 事前準備

Fork easy-notion-blog.git and clone it to your local.
このリポジトリを fork し、ローカルに clone しておきます。

Edit the title タイトルを編集する

Open easy-notion-blog/src/components/document-head.tsx in the editor.
easy-notion-blog/src/components/document-head.tsx をエディタで開きます。

Edit SITE_TITLE to your own.
SITE_TITLE を好きなタイトルに変更します。

export const SITE_TITLE = 'Great Journey'

Edit SITE_DESCRIPTION in addition.
ついでに SITE_DESCRIPTION も変更しておきましょう。

export const SITE_DESCRIPTION =
  'Logs what I felt in the great journey.'

Both SITE_TITLE and SITE_DESCRIPTION are used for Google search results or social media.
SITE_TITLESITE_DESCRIPTION は Google 検索結果や SNS でシェアされたときの情報に使われます。

Try running 動作確認

Start the local server to check whether the blog can be seen or not.
ローカルサーバーを起動して動作確認します。

$ yarn dev

Open http://localhost:3000 in your browser after running the server.
サーバーが起動したらブラウザで http://localhost:3000 にアクセスします。

If you can see the title you edited, it's success.
タイトルが設定した通りになっていたら成功です。

You push the changes to GitHub, and then they will be deployed.
変更を GitHub に push して Vercel にデプロイすれば反映されます。