點燈坊

失くすものさえない今が強くなるチャンスよ

Doks Theme Overview

Sam Xiao's Avatar 2022-12-20

Install Doks theme with the default configuration.

Version

Hugo 0.108

Create New Site

$ git clone https://github.com/h-enk/doks-child-theme.git my-doks-site

git clone a new site from Doks theme repository.

Install Dependencies

$ cd my-doks
$ npm install

Install Doks theme dependencies.

Development Mode

$ npm run start

Start web server under development mode.

Production Mode

$ npm run build
$ serve public
  • Build HTML/CSS/JavaScript under production mode
  • Start web server under production mode

Conclusion

  • We don’t have to use hugo new site to create a new site, just git clone from Doks theme repository

Reference

Doks, Quick Start