Skip to content

leye195/notion-blog

Repository files navigation

Notion Blog Template

How to start

Create env.local

NOTION_SECRET=
NOTION_DATABASE=
NEXT_PUBLIC_BASE_URL=

Install dependencies

pnpm install

Run Server

pnpm dev

Build

pnpm build

Run Build

pnpm start

How to configuration

Create Notion integration

Google Analytics

  • pass gtagID to GoogleAnalytics component on app/layout.tsx

SocialMedia

  • update generateKBarAction function on libs/kbarActions.ts
export const generateKBarAction = (router: AppRouterInstance) => {
  const actions = [
    {
      id: "home",
      name: "Home",
      section: "Scope",
      perform: () => router.push("/"),
    },
    {
      id: "posts",
      name: "Posts",
      section: "Scope",
      keywords: "post, article",
      perform: () => router.push("/posts"),
    },
    {
      id: "resume",
      name: "Resume",
      section: "Scope",
      perform: () => router.push("/resume"),
    },
    {
      id: "rss",
      name: "RSS",
      section: "Scope",
      perform: () => router.push("/rss.xml"),
    },
    {
      id: "github",
      name: "Github",
      subtitle: "leye195",
      section: "Social",
      perform: () =>
        window.open(
          "https://github.com/leye195",
          "_blank",
          "noopner,noreferrer"
        ),
    },
  ];

ToDo

  • 페이지 레이아웃 및 UI 설정
  • Notion Api 연동
  • Sitemap 생성
  • rss 생성
  • Resume 페이지 작업

Releases

No releases published

Packages

No packages published

Languages