unix.bio
Modern static blog template.
How to use
This is the source code of my blog.
You can also use this project to build your own blog.
Click Use this template button on GitHub.
Write & Deploy
-
In project, run
yarn post
to create your post. -
run
yarn dev
to browse development page. -
run
now
to deploy. (Default deployment to now)
Features
High optimization
- High performance optimization thanks to next.js
- Perfect SEO support
- High readability
- Your just need to
write
English & Chinese
You can switch languages in the configuration file
Write on MDXJS
- Full markdown support
- React Components support
- More customization possibilities
Dark mode
Mobile
Configuration
First, do not rename any directories! You can start your writing in the posts
folder.
In the root directory of the project, you can change the configuration for your blog:
const BLOG = {
anthor: 'Witt', // article anthor, used on `Meta`
title: 'Witt - unix.bio', // website title
description: 'Witt\'s blog', // used on `Meta`
summary: '', // one sentence introduction, show on home page
language: 'en-us', // 'en-us' or 'zh-cn'
latestLimit: 5, // number of home display lists
labels: { // label text
default: 'default',
latest: 'latest',
list: 'all list',
},
email: '', // about social
github: 'unix',
twitter: 'echo_witt',
domain: 'unix.bio', // your domain name
googleAnalytics: 'UA-x',
cn: true, // chinese translation of some characters
}
How to migrate
- click Use this template button on GitHub
- create new project
- copy folder
posts
&fixed
to your new project