diff options
author | Dave Kerr <dwmkerr@gmail.com> | 2021-04-30 15:50:32 +0300 |
---|---|---|
committer | Dave Kerr <dwmkerr@gmail.com> | 2021-04-30 15:50:32 +0300 |
commit | 01ec66e555e8dfa3bdc70405e13bc736685ebd8a (patch) | |
tree | 61a6b6d3b65567101b79a1d38a05cd681d9523bc | |
parent | 0f67cd1698e3f42d6b5af6b2965c90f3593c76ad (diff) |
fix: serving the example site locally with `yarn run hugo` now works
-rw-r--r-- | README.md | 30 | ||||
-rw-r--r-- | package.json | 2 |
2 files changed, 18 insertions, 14 deletions
@@ -85,22 +85,26 @@ Please create feature branches from [develop](https://github.com/mismith0227/hug 1. Install Node modules - $ yarn +```sh +yarn +``` 1. Run gulp. You don't need to install gulp globally. - // Development - $ yarn run dev - $ // On another tab - $ hugo server - - // Production (compress) - $ yarn run prod - $ // On another tab - $ hugo server - - // Build - $ yarn run build +``` +// Development +$ yarn run dev +$ // On another tab +$ yarn run hugo + +// Production (compress) +$ yarn run prod +$ // On another tab +$ yarn run hugo + +// Build +$ yarn run build +``` ## License diff --git a/package.json b/package.json index aa9f804..71aa56c 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "", "main": "index.js", "scripts": { - "hugo": "hugo server", + "hugo": "hugo server -s exampleSite --baseUrl http://localhost --themesDir=../../ --theme=hugo_theme_pickles", "dev": "gulp", "prod": "gulp --env production", "build": "gulp build --env production", |