Giter Site home page Giter Site logo

unix.bio's Introduction

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.

Run npm init unix-bio or yarn create unix-bio to initialize.


Write & Deploy

First, Please make sure your NodeJS is in the latest version.

  1. In project, run npm i to download dependents.

  2. run npm run post to create your post.

  3. run npm run dev to browse development page.

  4. run npm i -g now && 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


Social Experience


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 = {
  author: 'Witt',               // article author, 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
  enableViews: false,           // refer to https://docs.views.show
}

How to migrate

Timely migration can help you get the latest source code, this includes bug fixes and new features.

Fortunately, we have a easy to use migrate tool, just run:

npx unix-bio migrate

Deploy only static (Not recommended)

In a few scenarios, you may want to deploy your blog on a CDN or other static server. Use the following commands to deploy:

npm run export

After running the command, the generated static file will be in the /out directory.


LICENSE

MIT

unix.bio's People

Contributors

unix avatar 0xeclair avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.