diff options
author | misumi <mismith0227@users.noreply.github.com> | 2021-07-28 06:19:57 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-28 06:19:57 +0300 |
commit | f324d00c0ace9c6716fe82aef2516865b4339c09 (patch) | |
tree | 55e182147b3c8815aed0665280ad04ec8afe3f8b | |
parent | 3e9a3c8fed75c753ad2f86facecd9c425c0ac6c2 (diff) | |
parent | 01ec66e555e8dfa3bdc70405e13bc736685ebd8a (diff) |
Merge pull request #172 from dwmkerr/fix/fix-local-hugo-serve
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", |