Hugo 5 Development of Themes

Develop

This theme relies on npm and webpack for development. The source of js and scss are placed in src directory.

Install dependencies

$ npm install

Rebuild assets

$ npm run build npm run watch rebuild assets on change.

Preview

$ cd exampleSite $ hugo server --themesDir=../../

Formating Code

$ npm run lint

install npm

brew install node


100 Words|This article has been read times