Kinoana is a personal wiki and blog based on Next.js. It uses Markdown / MDX as source files, and generating website content through the folder structure.
Please clone the repository to start using.
Local development:
pnpm install
pnpm dev
http://localhost:3000
Deployment:
Deploy with Vercel is the simplest way.
You can also deploy to other platforms that support Next.js.
Use the content
folder to store website content. The folder structure will be converted into website routes;
The index.md
or index.mdx
in the folder will be converted into the content of the folder page.
All the pages can be configured in frontmatter
.
Frontmatter configuration items:
title
Page titledate
Page date, such as 2024-03-19
preview
Page content descriptionchildrenDisplay
Display method of subpages, optional values: list
, post
, content
, expand
, none
, the default is list
, see example page.All the frontmatter configuration items are optional, and can also be without frontmatter.
You can use a separated git repository to store content, and push changes directly to the content repository. The contents on the website will update automatically without the need to redeploy.
content
folder.GIT_URL = <content-repo-url>
GIT_USERNAME = <git-username>
GIT_TOKEN = <github-token-or-password>
Then the content will be fetched from the content repository instead of the content
folder.
Note:
This feature currently only supports Vercel runtime. Please do not run the development server with the git related environment variables set in .env.local
.