1
mirror of https://github.com/jakejarvis/hugo-extended.git synced 2025-04-26 09:05:20 -04:00

Update README.md (#100)

Add a Windows example and improve the other ones
This commit is contained in:
XhmikosR 2019-08-15 09:24:31 +03:00 committed by GitHub
parent 20bbbe4212
commit c33d5a7346
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,7 +31,15 @@ execFile(hugo, ['version'], (error, stdout) => {
```sh
$(npm bin)/hugo --help
npm run create -- 'post/my-new-post' # see below 'npm run-script'
npm run create -- post/my-new-post.md # see below 'npm run-script'
```
or on Windows:
```bat
for /f "delims=" %F in ('npm bin') do call "%F\hugo" help
rem see below 'npm run-script'
npm run create -- post/my-new-post.md
```
### npm run-script
@ -41,7 +49,7 @@ npm run create -- 'post/my-new-post' # see below 'npm run-script'
"scripts": {
"build": "hugo",
"create": "hugo new",
"serve": "hugo server -ws"
"serve": "hugo server"
}
}
```