1
mirror of https://github.com/jakejarvis/hugo-extended.git synced 2025-04-26 16:58:26 -04:00
Bradley Bodine eae5b5dfa2 Update Hugo version to latest (#25)
Hugo latest is at .26 as of Aug 7th. This change updates the latest Hugo version.
2017-08-26 03:49:58 +09:00
2016-05-31 02:44:50 +09:00
2016-05-31 02:44:50 +09:00
2016-06-08 02:42:57 +09:00
2016-10-19 23:36:34 +09:00
2016-05-31 02:44:50 +09:00
2017-08-26 03:48:45 +09:00

hugo-bin Build Status

Binary wrapper for Hugo

Install

npm install --save-dev hugo-bin

Usage

API

const execFile = require('child_process').execFile;
const hugo = require('hugo-bin');

execFile(hugo, ['version'], (err, stdout) => {
  console.log(stdout);
});

CLI

$(npm bin)/hugo --help
npm run create -- 'post/my-new-post' # see below 'npm-run-script'

npm-run-script

{
  "scripts": {
    "build": "hugo",
    "create": "hugo new",
    "serve": "hugo server -ws"
  }
}

See the Hugo Documentation for more information.

Supported versions

hugo-bin version Hugo version
^0.13.0 v0.26
^0.12.0 v0.25.1
^0.11.0 v0.24.1
^0.10.0 v0.23
^0.9.0 v0.22.1
^0.8.0 v0.21
^0.7.0 v0.20.7
^0.6.0 v0.19
^0.5.0 v0.18.1
^0.4.0 v0.17
^0.3.0 v0.16

Full example

Super Inspired By

License

MIT © Shun Sato

Description
Plug-and-play Node.js wrapper for Hugo Extended, the awesomest static-site generator. ✏️
https://www.npmjs.com/package/hugo-extended Readme 3.4 MiB
Languages
JavaScript 100%