Giter VIP home page Giter VIP logo

victor-hugo's Introduction

Victor Hugo

⚠️ Deprecation Notice 🏳

We are focusing our resources on building new templates that help you build a better web, because of that we're deprecating this template. We care about the community so we propose if anyone wants to maintain or take stewardship over the project please contact us at [email protected]. If you want to share anything with the team about this template, you can also fill out this form.

As an alternative to this repository, we're recommending to take a look at Hyas as a project to make use of. It is focused on latest practices with Hugo and is already completely Netlify deploy ready.


A Hugo boilerplate for creating truly epic websites

This is a boilerplate for using Hugo as a static site generator and Webpack 5 as your asset pipeline.

Victor Hugo setup to use PostCSS v8 and Babel v7 for CSS and JavaScript compiling/transpiling.

This project is released under the MIT license. Please make sure you understand its implications and guarantees.

Usage

❗ Prerequisites

This template has been tested to work with Node.js v16 and npm v6.

Next step, clone this repository and run:

npm install

This will take some time and will install all packages necessary to run Victor Hugo and its tasks.

πŸ‘· Development

While developing your website, use:

npm start

or for developing your website with hugo server --buildDrafts --buildFuture, use:

npm run preview

Then visit http://localhost:3000/ - or a new browser windows popped-up already - to preview your new website. Webpack Dev Server will automatically reload the CSS or refresh the whole page, when stylesheets or content changes.

πŸ“¦ Static build

To build a static version of the website inside the /dist folder, run:

npm run build

To get a preview of posts or articles not yet published, run:

npm run build:preview

See package.json for all tasks.

Structure

|--site                // Everything in here will be built with hugo
|  |--content          // Pages and collections - ask if you need extra pages
|  |--data             // YAML data files with any data for use in examples
|  |--layouts          // This is where all templates go
|  |  |--partials      // This is where includes live
|  |  |--index.html    // The index page
|  |--resources        // This is where all assets go
|  |--static           // Files in here ends up in the public folder
|--src                 // Files that will pass through the asset pipeline
|  |--css              // Webpack will bundle imported css separately
|  |--index.js         // index.js is the webpack entry for your css & js assets

Basic Concepts

You can read more about Hugo's template language in their documentation here:

https://gohugo.io/templates/overview/

The most useful page there is the one about the available functions:

https://gohugo.io/templates/functions/

For assets that are completely static and don't need to go through the asset pipeline, use the site/static folder. Images, font-files, etc, all go there.

Files in the static folder end up in the web root. So a file called site/static/favicon.ico will end up being available as /favicon.ico and so on...

The src/index.js file is the entrypoint for webpack and will be built to /dist/main.js

You can use ES6 and use both relative imports or import libraries from npm.

Any CSS file imported into the index.js will be run through Webpack, compiled with PostCSS Next, and minified to /dist/[name].[hash:5].css. Import statements will be resolved as part of the build.

Environment variables

To separate the development and production - aka build - stages, all tasks run with a node environment variable named either development or production.

You can access the environment variable inside the theme files with getenv "NODE_ENV". See the following example for a conditional statement:

{{ if eq (getenv "NODE_ENV") "development" }}You're in development!{{ end }}

All tasks starting with build set the environment variable to production - the other will set it to development.

Deploying to Netlify

Now Netlify will build and deploy your site whenever you push to git.

You can also click this button:

Deploy to Netlify

Enjoy!! 😸

victor-hugo's People

Contributors

atomtigerzoo avatar bdougie avatar biilmann avatar bryankang avatar burmecia avatar calavera avatar charliegerard avatar colorful-tones avatar dependabot-preview[bot] avatar dependabot[bot] avatar erquhart avatar fool avatar joshua-scott avatar kahwee avatar kalinchernev avatar kcollasarundell avatar kleink avatar leopuleo avatar mattsturgeon avatar maxcell avatar midzer avatar miguelmayo avatar renovate-bot avatar renovate[bot] avatar sibiraj-s avatar tech4him1 avatar thinlines avatar tinymachine avatar tomanistor avatar trys avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

victor-hugo's Issues

Tons of Theme errors, won't build, require Hugo .2, its using .18

- Do you want to request a feature or report a bug?
Bug
- What is the current behavior?
Fails to build
- If the current behavior is a bug, please provide the steps to reproduce.
Many themes refuse to build expect higher Hugo version
Themes such as Crab, Artists Theme, Ananke refuse to build.
- What is the expected behavior?
Build succeeds
- Please mention your node.js, NPM, Hugo and operating system version.
Hugo v0.27.1
OSX Sierra
Node v6.9.4

Compilation Failures in victor-hugo are too ambiguous

- Do you want to request a feature or report a bug?
When an error occurs in a victor-hugo project, the error message is not surfaced. In Hugo proper, you receive an error message that tells which line might have a syntax error.

- What is the current behavior?
errors in victor-hugo just let you know there is a gulp error

- If the current behavior is a bug, please provide the steps to reproduce.
A post was created in the netlify-www org with a date in the incorrect format in the front matter.

// incorrect
date: 05/18/2017
// correct
date: 2017-05-18

The error message was the following:


7:19:01 AM: [14:18:57]
7:19:01 AM: Finished 'js' after 7.87 s
7:19:01 AM:
7:19:01 AM: npm
7:19:01 AM: ERR!
7:19:01 AM: Linux 3.19.0-66-generic
npm
7:19:01 AM: ERR!
7:19:01 AM: argv "/opt/buildhome/.nvm/versions/node/v6.10.3/bin/node" "/opt/buildhome/.nvm/versions/node/v6.10.3/bin/npm" "run" "build-preview"
7:19:01 AM: npm ERR! node v6.10.3
7:19:01 AM: npm ERR!
7:19:01 AM: npm v3.10.10
7:19:01 AM: npm ERR! code
7:19:01 AM: ELIFECYCLE
npm ERR!
7:19:01 AM: [email protected] build-preview: `gulp build-preview`
npm ERR! Exit status 1
7:19:01 AM: npm
7:19:01 AM: ERR! 
npm ERR! Failed at the [email protected] build-preview script 'gulp build-preview'.
npm
7:19:01 AM: ERR! Make sure you have the latest version of node.js and npm installed.
npm
7:19:01 AM: ERR! If you do, this is most likely a problem with the hugo-gulp-boilerplate package,
npm ERR!
7:19:01 AM: not with npm itself.
npm
7:19:02 AM: ERR!
7:19:02 AM: Tell the author that this fails on your system:
npm
7:19:02 AM: ERR! gulp build-preview
npm
7:19:02 AM: ERR! You can get information on how to open an issue for this project with:
7:19:02 AM: npm ERR!
7:19:02 AM: npm bugs hugo-gulp-boilerplate
npm ERR!
7:19:02 AM: Or if that isn't available, you can get their info via:
npm ERR! npm owner ls hugo-gulp-boilerplate
7:19:02 AM: npm ERR! There is likely additional logging output above.
7:19:02 AM:
7:19:02 AM: npm
7:19:02 AM: ERR!
7:19:02 AM: Please include the following file with any support request:
7:19:02 AM: npm
7:19:02 AM: ERR!
7:19:02 AM: /opt/build/repo/npm-debug.log
7:19:02 AM: Cached NPM modules
7:19:04 AM: Finished processing build request in 1m30.765880653s

Full error can be found here

- What is the expected behavior?
It would be nice to see the exact error message in the log with the line number in question

- Please mention your node.js, NPM, Hugo and operating system version.
node 7.0.0
npm 3.10.8

Recommended way to run Hugo CLI in victor-hugo?

What's the recommended way to use the hugo cli from within a victor-hugo project?

It appears newer versions of victor-hugo switched to the hugo-bin package. I've tried running hugo cli via /node_modules/hugo-bin and hugo cli installed globally. In both cases I received errors; not being able to locate site's config, or something like that.

Apologies for such a silly question. I know this should probably be obvious.

Missing dependency: babel-core

I just did a fresh install of the project and got the following error:

ERROR in ./src/js/app.js
Module build failed: Error: Cannot find module 'babel-core'
    at Function.Module._resolveFilename (module.js:536:15)
    at Function.Module._load (module.js:466:25)
    at Module.require (module.js:579:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/victordg/Code/escorpora/node_modules/babel-loader/lib/index.js:3:13)
    at Module._compile (module.js:635:30)
    at Module._extensions..js (module.js:646:10)
    at Object.require.extensions.(anonymous function) [as .js] (/Users/victordg/Code/escorpora/node_modules/babel-register/lib/node.js:152:7)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
 @ multi ./js/app

It was fixed after running npm install babel-core --save.
Looks like it should be added to the list of dependencies.


INFO:
node version: v8.9.1
npm version: 5.5.1

Use Block Template Layout Inheritance

Hugo introduced block templates in v0.16. Unlike what's possible in Jekyll and other SSGs, block templates afford users the ability to create extensible layouts and maintain a DRY approach to creating pages. Block templates help prevent bugs, improve thematic consistency across pages, reduce the total number of lines of code as a site grows and improves developer experience.

I consider Block Templates a best practice approach in Hugo. Would love this implemented in Victor Hugo for the benefit of its users.

Documentation
https://www.gohugo.io/templates/blocks/

Example Implementation
https://github.com/comfusion/after-dark/blob/master/layouts/_default/baseof.html

Getting error while running npm start

$ npm start

> [email protected] start C:\xampp\htdocs\baljeetsingh.in
> gulp server

[12:18:49] Failed to load external module @babel/register
[12:18:49] Requiring external module babel-register
gulp[16704]: src\node_contextify.cc:631: Assertion `args[1]->IsString()' failed.
 1: node::DecodeWrite
 2: node::DecodeWrite
 3: uv_loop_fork
 4: v8::internal::interpreter::BytecodeDecoder::Decode
 5: v8::internal::RegExpImpl::Exec
 6: v8::internal::RegExpImpl::Exec
 7: v8::internal::RegExpImpl::Exec
 8: 00000201CE304281
npm ERR! code ELIFECYCLE
npm ERR! errno 134
npm ERR! [email protected] start: `gulp server`
npm ERR! Exit status 134
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\mbaljeetsingh\AppData\Roaming\npm-cache\_logs\2018-06-09T06_48_49_836Z-debug.log

- Do you want to request a feature or report a bug?
Bug

- What is the current behavior?
Not starting the server

- If the current behavior is a bug, please provide the steps to reproduce.
Clone the repo, npm install, npm start

- What is the expected behavior?
Should start the server

- Please mention your node.js, NPM, Hugo and operating system version.
NodeJS : v10.0.0
npm : 6.0.0
OS : Windows 10

using pug and stylus

I tried to add a gulp task to use pug as my templating engine.. but it looks like hugo task is above it.. is it possible ?

Unable to run npm start command

Upon cloning the project and successfully running npm install, I get the following error after running npm start:

C:\GitHub\victor-hugo>npm start

> [email protected] start C:\GitHub\victor-hugo
> gulp server

[14:20:01] Requiring external module babel-register
[14:20:04] Using gulpfile C:\GitHub\victor-hugo\gulpfile.babel.js
[14:20:04] Starting 'hugo'...
[14:20:04] Starting 'css'...
[14:20:04] Starting 'js'...
events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: spawn hugo ENOENT
    at exports._errnoException (util.js:1026:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
    at onErrorNT (internal/child_process.js:359:16)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)
    at Module.runMain (module.js:606:11)
    at run (bootstrap_node.js:394:7)
    at startup (bootstrap_node.js:149:9)
    at bootstrap_node.js:509:3

npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\dfross.AHCM\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "start"
npm ERR! node v6.9.0
npm ERR! npm  v3.10.8
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: `gulp server`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'gulp server'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the victor-hugo package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     gulp server
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs victor-hugo
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls victor-hugo
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\GitHub\victor-hugo\npm-debug.log

I am running Windows 10 (64), Node 6.9.0, NPM 3.10.8

Updated Depencies & CSS fails

- Do you want to request a feature or report a bug?
Report a bug

- What is the current behavior?
CSS doesn't live reload. Can check for errors -> doesn't inject new css live
- If the current behavior is a bug, please provide the steps to reproduce.
npm start. Change css. cntrl + s.
- What is the expected behavior?
Update live in browser
- Please mention your node.js, NPM, Hugo and operating system version.
I just updated.
npm update

Hugo Static Site Generator v0.40 windows/amd64
npm info using [email protected]
npm info using [email protected]
Win 10

Webpack externals not building

As I understand, webpack is looking for external scripts in the /vendor folder.
externals: [/^vendor\/.+\.js$/]

however, It doesn't appear to compile anything.

Can’t evaluate field Related in type hugolib.Pages

- Do you want to request a feature or report a bug?
Bug report

- What is the current behavior?
When .Related is called, as in .Site.RegularPages.Related, the message "Can’t evaluate field Related in type hugolib.Pages" The same site does not return an error when built with hugulp.

- If the current behavior is a bug, please provide the steps to reproduce.

- What is the expected behavior?
Should see a list of related posts generated at the bottom of each blog post.

- Please mention your node.js, NPM, Hugo and operating system version.

  • Node v8.9.1
  • npm: '5.5.1'
  • Hugo Static Site Generator v0.31.1
  • Ubuntu 16.04.3 LTS

Suggest to remove Babel as dependency

After going in circles trying to get Gulp to run with Babel I'm throwing in the towel. Now that Node v4+ supports a lot of ES2015 features could Babel be removed as a dependancy?
yeoman/generator-webapp#356

Bug
Executing NPM Start throws an error
Requiring external module babel-core/register

  • MacOS
  • Hugo v0.19
  • NPM 4.4.1
  • NodeJS 6.10.0
  • Gulp
    • CLI version 3.9.0
    • Local version 3.9.0

npm ERR! Error: No compatible version found: babel-plugin-transform-object-assign@'^6.8.0'

[victor-hugo-master(__git_ps1 " (%s)")]$ npm install
npm http GET https://registry.npmjs.org/babel-eslint
npm http GET https://registry.npmjs.org/babel-plugin-syntax-object-rest-spread
npm http GET https://registry.npmjs.org/babel-plugin-transform-class-properties
npm http GET https://registry.npmjs.org/babel-plugin-transform-object-assign
npm http GET https://registry.npmjs.org/babel-loader
npm http GET https://registry.npmjs.org/babel-plugin-transform-object-rest-spread
npm http GET https://registry.npmjs.org/babel-register
npm http GET https://registry.npmjs.org/css-loader
npm http GET https://registry.npmjs.org/browser-sync
npm http GET https://registry.npmjs.org/eslint
npm http GET https://registry.npmjs.org/babel-preset-es2015
npm http GET https://registry.npmjs.org/exports-loader
npm http GET https://registry.npmjs.org/file-loader
npm http GET https://registry.npmjs.org/gulp-babel
npm http GET https://registry.npmjs.org/gulp-postcss
npm http GET https://registry.npmjs.org/gulp-util
npm http GET https://registry.npmjs.org/hugo-bin
npm http GET https://registry.npmjs.org/imports-loader
npm http GET https://registry.npmjs.org/eslint-plugin-import
npm http GET https://registry.npmjs.org/gulp
npm http GET https://registry.npmjs.org/url-loader
npm http GET https://registry.npmjs.org/postcss-cssnext
npm http GET https://registry.npmjs.org/postcss-import
npm http GET https://registry.npmjs.org/whatwg-fetch
npm http GET https://registry.npmjs.org/webpack
npm http 304 https://registry.npmjs.org/babel-plugin-transform-object-assign
npm http 304 https://registry.npmjs.org/babel-plugin-syntax-object-rest-spread
npm ERR! Error: No compatible version found: babel-plugin-transform-object-assign@'^6.8.0'
npm ERR! Valid install targets:
npm ERR! ["6.0.2","6.0.14","6.1.4","6.1.17","6.1.18","6.2.4","6.3.13","6.5.0","6.5.0-1","6.8.0","6.22.0","7.0.0-alpha.1","7.0.0-alpha.3","7.0.0-alpha.7","7.0.0-alpha.8","7.0.0-alpha.9","7.0.0-alpha.10","7.0.0-alpha.11","7.0.0-alpha.12","7.0.0-alpha.14","7.0.0-alpha.15","7.0.0-alpha.16","7.0.0-alpha.17","7.0.0-alpha.18","7.0.0-alpha.19","7.0.0-alpha.20"]
npm ERR! at installTargetsError (/usr/local/lib/node_modules/npm/lib/cache.js:506:10)
npm ERR! at /usr/local/lib/node_modules/npm/lib/cache.js:386:15
npm ERR! at saved (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/get.js:136:7)
npm ERR! at /usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:230:7
npm ERR! at Object.oncomplete (fs.js:297:15)
npm ERR! [Error: No compatible version found: babel-plugin-transform-object-assign@'^6.8.0'
npm ERR! Valid install targets:
npm ERR! ["6.0.2","6.0.14","6.1.4","6.1.17","6.1.18","6.2.4","6.3.13","6.5.0","6.5.0-1","6.8.0","6.22.0","7.0.0-alpha.1","7.0.0-alpha.3","7.0.0-alpha.7","7.0.0-alpha.8","7.0.0-alpha.9","7.0.0-alpha.10","7.0.0-alpha.11","7.0.0-alpha.12","7.0.0-alpha.14","7.0.0-alpha.15","7.0.0-alpha.16","7.0.0-alpha.17","7.0.0-alpha.18","7.0.0-alpha.19","7.0.0-alpha.20"]]
npm ERR! You may report this log at:
npm ERR! http://github.com/isaacs/npm/issues
npm ERR! or email it to:
npm ERR! [email protected]

npm ERR! System Darwin 15.6.0
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/macuser/victor-hugo-master
npm ERR! node -v v0.8.0
npm ERR! npm -v 1.1.32
npm ERR! message No compatible version found: babel-plugin-transform-object-assign@'^6.8.0'
npm ERR! message Valid install targets:
npm ERR! message ["6.0.2","6.0.14","6.1.4","6.1.17","6.1.18","6.2.4","6.3.13","6.5.0","6.5.0-1","6.8.0","6.22.0","7.0.0-alpha.1","7.0.0-alpha.3","7.0.0-alpha.7","7.0.0-alpha.8","7.0.0-alpha.9","7.0.0-alpha.10","7.0.0-alpha.11","7.0.0-alpha.12","7.0.0-alpha.14","7.0.0-alpha.15","7.0.0-alpha.16","7.0.0-alpha.17","7.0.0-alpha.18","7.0.0-alpha.19","7.0.0-alpha.20"]
npm http 304 https://registry.npmjs.org/babel-eslint
npm http 304 https://registry.npmjs.org/babel-register
npm http 304 https://registry.npmjs.org/css-loader
npm http 304 https://registry.npmjs.org/eslint
npm http 304 https://registry.npmjs.org/babel-plugin-transform-class-properties
npm http 304 https://registry.npmjs.org/babel-loader
npm http 304 https://registry.npmjs.org/babel-plugin-transform-object-rest-spread
npm http 304 https://registry.npmjs.org/babel-preset-es2015
npm http 304 https://registry.npmjs.org/exports-loader
npm http 304 https://registry.npmjs.org/gulp-util
npm http 304 https://registry.npmjs.org/gulp-babel
npm http 304 https://registry.npmjs.org/browser-sync
npm http 304 https://registry.npmjs.org/hugo-bin
npm http 304 https://registry.npmjs.org/imports-loader
npm http 304 https://registry.npmjs.org/eslint-plugin-import
npm http 304 https://registry.npmjs.org/url-loader
npm http 304 https://registry.npmjs.org/postcss-cssnext
npm http 304 https://registry.npmjs.org/file-loader
npm http 304 https://registry.npmjs.org/gulp-postcss
npm http 304 https://registry.npmjs.org/postcss-import
npm http 304 https://registry.npmjs.org/webpack
npm http 304 https://registry.npmjs.org/gulp
npm http 304 https://registry.npmjs.org/whatwg-fetch
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/macuser/victor-hugo-master/npm-debug.log
npm ERR! not ok code 0

Gulp watch does not detect new layouts

For some reason the gulp watch tasks do not execute recursively – adding a new layout does not trigger the hugo task as it should according to the glob pattern.

Removing the ./ in the path of the watch tasks resolves the issue e.g:

  gulp.watch("src/js/**/*.js", ["js"]);
  gulp.watch("src/css/**/*.css", ["css"]);
  gulp.watch("site/**/*", ["hugo"]);

Running latest gulp on macOS:

$ gulp -v
[16:19:41] Requiring external module babel-register
[16:19:41] CLI version 1.4.0
[16:19:41] Local version 3.9.1

failed to load external module

I don't what i did but now
[email protected] start /home/greenseek/Desktop/hugo-restaurant-tutorial

gulp server

[20:59:02] Failed to load external module
[20:59:02] Requiring external module babel-register
assert.js:42
throw new errors.AssertionError({
^

AssertionError [ERR_ASSERTION]: Task function must be specified
at Gulp.set [as _setTask] (/home/greenseek/Desktop/hugo-restaurant-tutorial/node_modules/undertaker/lib/set-task.js:10:3)
at Gulp.task (/home/greenseek/Desktop/hugo-restaurant-tutorial/node_modules/undertaker/lib/task.js:13:8)
at Object. (/home/greenseek/Desktop/hugo-restaurant-tutorial/gulpfile.babel.js:22:6)
at Module._compile (module.js:652:30)
at loader (/home/greenseek/Desktop/hugo-restaurant-tutorial/node_modules/babel-register/lib/node.js:144:5)
at Object.require.extensions.(anonymous function) [as .js] (/home/greenseek/Desktop/hugo-restaurant-tutorial/node_modules/babel-register/lib/node.js:154:7)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at execute (/home/greenseek/Desktop/hugo-restaurant-tutorial/node_modules/gulp/node_modules/gulp-cli/lib/versioned/^4.0.0/index.js:36:18)
at Liftoff.handleArguments (/home/greenseek/Desktop/hugo-restaurant-tutorial/node_modules/gulp/node_modules/gulp-cli/index.js:175:63)
at Liftoff.execute (/home/greenseek/Desktop/hugo-restaurant-tutorial/node_modules/liftoff/index.js:203:12)
at module.exports (/home/greenseek/Desktop/hugo-restaurant-tutorial/node_modules/flagged-respawn/index.js:51:3)
at Liftoff. (/home/greenseek/Desktop/hugo-restaurant-tutorial/node_modules/liftoff/index.js:195:5)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: gulp server
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

Build fails, when deploying to Netlify

So I just build a site using Victor Hugo and if I try to deploy a version where I am rendering {{ .Content }} on the index.html I am getting an error:

ERROR: 2017/01/09 23:55:08 template.go:132: template: partials/text.html:4:3: executing "partials/text.html" at <.Content>: can't evaluate field Content in type *hugolib.Node in partials/text.htm

So my guess is that, since including {{ .Content }} on the index.html file is a feature only implemented in Hugo v0.18 that there is an old version running on Netlify?

Trouble with installing and running project locally

- Do you want to request a feature or report a bug?
Bug

- What is the current behavior?
npm install throws warnings
npm start throws SyntaxError: Unexpected token import

Ξ» npm install

> [email protected] install C:\Users\jaegz\test_netlifycms\victor-hugo\node
_modules\fsevents
> node install


> [email protected] postinstall C:\Users\jaegz\test_netlifyc
ms\victor-hugo\node_modules\uglifyjs-webpack-plugin
> node lib/post_install.js


> [email protected] postinstall C:\Users\jaegz\test_netlifycms\victor-hugo
\node_modules\hugo-bin
> del-cli vendor && node lib/install

  √ Hugo binary is installed successfully
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (no
de_modules\postcss-cssnext\node_modules\caniuse-db):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Invalid tar header. Maybe t
he tar is corrupted or it needs to be gunzipped?
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: core-js@https://registry.np
mjs.org/core-js/-/core-js-2.5.0.tgz (node_modules\core-js):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Invalid tar header. Maybe t
he tar is corrupted or it needs to be gunzipped?
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: es5-ext@https://registry.np
mjs.org/es5-ext/-/es5-ext-0.10.26.tgz (node_modules\es5-ext):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Invalid tar header. Maybe t
he tar is corrupted or it needs to be gunzipped?
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (
node_modules\caniuse-lite):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Invalid tar header. Maybe t
he tar is corrupted or it needs to be gunzipped?

added 1474 packages in 290.84s
Ξ» npm start

> [email protected] start C:\Users\jaegz\test_netlifycms\victor-hugo
> gulp server

[13:10:01] Failed to load external module babel-register
[13:10:01] Failed to load external module babel-core/register
[13:10:01] Failed to load external module babel/register
C:\Users\jaegz\test_netlifycms\victor-hugo\gulpfile.babel.js:1
(function (exports, require, module, __filename, __dirname) { import gulp f
rom "gulp";
                                                              ^^^^^^

SyntaxError: Unexpected token import
    at createScript (vm.js:80:10)
    at Object.runInThisContext (vm.js:139:10)
    at Module._compile (module.js:599:28)
    at Object.Module._extensions..js (module.js:646:10)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)
    at Module.require (module.js:579:17)
    at require (internal/module.js:11:18)
    at Liftoff.handleArguments (C:\Users\jaegz\test_netlifycms\victor-hu
go\node_modules\gulp\bin\gulp.js:116:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `gulp server`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additiona
l logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\jaegz\AppData\Roaming\npm-cache\_logs\2017-11-15T1
8_10_01_982Z-debug.log

2017-11-15T18_10_01_982Z-debug.log

0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Users\\jaegz\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle [email protected]~prestart: [email protected]
6 silly lifecycle [email protected]~prestart: no script for prestart, continuing
7 info lifecycle [email protected]~start: [email protected]
8 verbose lifecycle [email protected]~start: unsafe-perm in lifecycle true
9 verbose lifecycle [email protected]~start: PATH: C:\Users\jaegz\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin;C:\Users\jaegz\test_netlifycms\victor-hugo\node_modules\.bin;C:\Users\jaegz\Downloads\cmder\bin;C:\Users\jaegz\Downloads\cmder\vendor\conemu-maximus5\ConEmu\Scripts;C:\Users\jaegz\Downloads\cmder\vendor\conemu-maximus5;C:\Users\jaegz\Downloads\cmder\vendor\conemu-maximus5\ConEmu;C:\Program Files (x86)\RSA SecurID Token Common;C:\Program Files\RSA SecurID Token Common;C:\Windows\System32;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Common Files\Lenovo;C:\SWTOOLS\ReadyApps;C:\Ruby193\bin;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\WebEx\Productivity Tools;C:\Program Files\Amazon\AWSCLI\;C:\Go\bin;C:\Users\jaegz\AppData\Roaming\nvm;C:\Program Files\nodejs;C:\Program Files\Git\cmd;C:\php;C:\curl;C:\Program Files\nodejs\;C:\Program Files (x86)\Yarn\bin;C:\Windows\System32;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Python34;C:\Python34\Scripts;C:\Users\jaegz\AppData\Roaming\Python\Scripts;C:\Hugo\bin;C:\Users\jaegz\AppData\Roaming\nvm;C:\Program Files\nodejs;C:\Program Files\Microsoft VS Code\bin;C:\Users\jaegz\AppData\Roaming\npm;C:\Users\jaegz\bash-scripts;C:\Users\jaegz\AppData\Local\Yarn\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\usr\share\vim\vim74;C:\Users\jaegz\Downloads\cmder\
10 verbose lifecycle [email protected]~start: CWD: C:\Users\jaegz\test_netlifycms\victor-hugo
11 silly lifecycle [email protected]~start: Args: [ '/d /s /c', 'gulp server' ]
12 silly lifecycle [email protected]~start: Returned: code: 1  signal: null
13 info lifecycle [email protected]~start: Failed to exec start script
14 verbose stack Error: [email protected] start: `gulp server`
14 verbose stack Exit status 1
14 verbose stack     at EventEmitter.<anonymous> (C:\Users\jaegz\AppData\Roaming\npm\node_modules\npm\lib\utils\lifecycle.js:283:16)
14 verbose stack     at emitTwo (events.js:126:13)
14 verbose stack     at EventEmitter.emit (events.js:214:7)
14 verbose stack     at ChildProcess.<anonymous> (C:\Users\jaegz\AppData\Roaming\npm\node_modules\npm\lib\utils\spawn.js:40:14)
14 verbose stack     at emitTwo (events.js:126:13)
14 verbose stack     at ChildProcess.emit (events.js:214:7)
14 verbose stack     at maybeClose (internal/child_process.js:925:16)
14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
15 verbose pkgid [email protected]
16 verbose cwd C:\Users\jaegz\test_netlifycms\victor-hugo
17 verbose Windows_NT 6.1.7601
18 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\jaegz\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "start"
19 verbose node v8.9.1
20 verbose npm  v5.0.3
21 error code ELIFECYCLE
22 error errno 1
23 error [email protected] start: `gulp server`
23 error Exit status 1
24 error Failed at the [email protected] start script.
24 error This is probably not a problem with npm. There is likely additional logging output above.
25 verbose exit [ 1, true ]

- If the current behavior is a bug, please provide the steps to reproduce.

  1. clone repo
  2. npm install
  3. npm start

- What is the expected behavior?

For npm start to fire up a local dev server

- Please mention your node.js, NPM, Hugo and operating system version.
node.js 8.9.1
NPM 5.0.3
Hugo Static Site Generator v0.30.2 windows/amd64 BuildDate: 2017-11-15T13:23:42-05:00
Windows 7 64bit

Add Docker Support

Spinning this off a docker image will ease a lot of setup and deployment efforts. I don't have to install node and npm stuff on my host machine. Would help hugely with teams when it comes to development collaboration. Alas, but it's working on my machine!

server task takes 2-7min to complete

Is it normal to have the server task take 2 to 7 minutes to complete (depends on the machine I use)?

Consider that running hugo server directly from the site dir takes less than a second.

[15:39:29] Finished 'hugo' after 4.65 s
[15:39:29] Starting 'server'...
[15:41:40] Finished 'server' after 2.17 min
[Browsersync] Access URLs:
 -------------------------------------
       Local: http://localhost:3000
    External: http://10.10.40.129:3000
 -------------------------------------
          UI: http://localhost:3001
 UI External: http://10.10.40.129:3001
 -------------------------------------
[Browsersync] Serving files from: ./dist

[Edit]
tested by commenting out the 'watch' subtasks, it looks like the bottleneck is the gulp watch hugo task.

npm audit found 7 vulnerabilities (2 low, 1 moderate, 4 high)

$npm audit

                       === npm audit security report ===

# Run  npm install [email protected]  to resolve 5 vulnerabilities
SEMVER WARNING: Recommended action is a potentially breaking change
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Low           β”‚ Prototype Pollution                                          β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Package       β”‚ lodash                                                       β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Dependency of β”‚ gulp                                                         β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Path          β”‚ gulp > vinyl-fs > glob-watcher > gaze > globule > lodash     β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ More info     β”‚ https://nodesecurity.io/advisories/577                       β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜


β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ High          β”‚ Regular Expression Denial of Service                         β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Package       β”‚ minimatch                                                    β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Dependency of β”‚ gulp                                                         β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Path          β”‚ gulp > vinyl-fs > glob-stream > glob > minimatch             β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ More info     β”‚ https://nodesecurity.io/advisories/118                       β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜


β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ High          β”‚ Regular Expression Denial of Service                         β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Package       β”‚ minimatch                                                    β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Dependency of β”‚ gulp                                                         β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Path          β”‚ gulp > vinyl-fs > glob-stream > minimatch                    β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ More info     β”‚ https://nodesecurity.io/advisories/118                       β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜


β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ High          β”‚ Regular Expression Denial of Service                         β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Package       β”‚ minimatch                                                    β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Dependency of β”‚ gulp                                                         β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Path          β”‚ gulp > vinyl-fs > glob-watcher > gaze > globule > glob >     β”‚
β”‚               β”‚ minimatch                                                    β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ More info     β”‚ https://nodesecurity.io/advisories/118                       β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜


β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ High          β”‚ Regular Expression Denial of Service                         β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Package       β”‚ minimatch                                                    β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Dependency of β”‚ gulp                                                         β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Path          β”‚ gulp > vinyl-fs > glob-watcher > gaze > globule > minimatch  β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ More info     β”‚ https://nodesecurity.io/advisories/118                       β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜


β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                                Manual Review                                 β”‚
β”‚            Some vulnerabilities require your attention to resolve            β”‚
β”‚                                                                              β”‚
β”‚         Visit https://go.npm.me/audit-guide for additional guidance          β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Moderate      β”‚ Memory Exposure                                              β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Package       β”‚ tunnel-agent                                                 β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Patched in    β”‚ >=0.6.0                                                      β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Dependency of β”‚ hugo-bin                                                     β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Path          β”‚ hugo-bin > bin-wrapper > download > caw > tunnel-agent       β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ More info     β”‚ https://nodesecurity.io/advisories/598                       β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Low           β”‚ Regular Expression Denial of Service                         β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Package       β”‚ debug                                                        β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Patched in    β”‚ >= 2.6.9 < 3.0.0 || >= 3.1.0                                 β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Dependency of β”‚ browser-sync                                                 β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Path          β”‚ browser-sync > localtunnel > debug                           β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ More info     β”‚ https://nodesecurity.io/advisories/534                       β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
found 7 vulnerabilities (2 low, 1 moderate, 4 high) in 15236 scanned packages
  5 vulnerabilities require semver-major dependency updates.
  2 vulnerabilities require manual review. See the full report for details.

Syntax highlighting not working with victor-hugo's build script?

- Do you want to request a feature or report a bug?

Bug

- What is the current behavior?

When I try to build my victor-hugo site with npm run build, it doesn't seem to use Hugo's built-in syntax highlighting for code blocks in markdown.

I've tried with back ticks:

```html
<div></div>
\```

as well as Hugo's highlight shortcode:

{{< hightlight html >}}
<div></div>
{{< /highlight >}}

However, when I build the site with the hugo command and take a look at the generated html, syntax highlighting works just fine.

- If the current behavior is a bug, please provide the steps to reproduce.

Add a code block to a markdown file and build the site with npm run build

- What is the expected behavior?

Code syntax should be highlighted

- Please mention your node.js, NPM, Hugo and operating system version.

Node v6.9.2, NPM v5.6.0, and Hugo v0.31.1 on MacOS Sierra.

Many Packages outdated and depreciated

NPM complains about depreciated packages and Github compains about a vurnerability in the site. I have included a table of the outdated packages.

(fixed - @erquhart)

PackageΒ  Current Wanted Latest Location
array-differ 1.0.0 1.0.0 2.0.3 victor-hugo > gulp > gulp-util
asyncΒ  1.5.2 1.5.2 2.6.0 victor-hugo > browser-sync > portscanner
async-each-series 0.1.1 0.1.1 1.1.0 victor-hugo > browser-sync > browser-sync-ui
autoprefixer 6.7.7 6.7.7 8.2.0 victor-hugo
babel-eslint 6.1.2 6.1.2 8.2.2 victor-hugo
jsescΒ  1.3.0 1.3.0 2.5.1 victor-hugo > babel-register > babel-core > babel-generator
babel-loader 6.4.1 6.4.1 7.1.4 victor-hugo
chalkΒ  1.1.3 1.1.3 2.3.2 victor-hugo > gulp-util
chokidar 1.7.0 1.7.0 2.0.3 victor-hugo > browser-sync
connectΒ  3.5.0 3.5.0 3.6.6 victor-hugo > browser-sync
css-loaderΒ  0.23.1 0.23.1 0.28.11 victor-hugo
dateformat 2.2.0 2.2.0 3.0.3 victor-hugo > gulp-util
debugΒ  2.6.9 2.6.9 3.1.0 victor-hugo > babel-plugin-transform-class-properties > babel-template > babel-traverse
deprecated 0.0.1 0.0.1 0.0.2 victor-hugo > gulp
detect-indent 4.0.0 4.0.0 5.0.0 victor-hugo > babel-register > babel-core > babel-generator
lodashΒ  3.10.1 3.10.1 4.17.5 victor-hugo > browser-sync > easy-extender
end-of-stream 0.1.5 0.1.5 1.4.1 victor-hugo > gulp > orchestrator
eslintΒ  3.19.0 3.19.0 4.19.1 victor-hugo
eslint-plugin-import 1.16.0 1.16.0 2.10.0 victor-hugo
exports-loader 0.6.4 0.6.4 0.7.0 victor-hugo
file-loaderΒ  0.9.0 0.9.0 1.1.11 victor-hugo
is-globΒ  3.1.0 3.1.0 4.0.0 victor-hugo > gulp > liftoff > findup-sync
fs-extra 3.0.1 3.0.1 5.0.0 victor-hugo > browser-sync
globals 9.18.0 9.18.0 11.4.0 victor-hugo > babel-plugin-transform-class-properties > babel-template > babel-traverse
gulp-babel 6.1.3 6.1.3 7.0.1 victor-hugo
gulp-postcss 6.4.0 6.4.0 7.0.1 victor-hugo
object-assign 3.0.0 3.0.0 4.1.1 victor-hugo > gulp > gulp-util
semver 4.3.6 4.3.6 5.5.0 victor-hugo > gulp
home-or-tmpΒ  2.0.0 2.0.0 3.0.0 victor-hugo > babel-register > babel-core > babel-register
http-proxyΒ  1.15.2 1.15.2 1.16.2 victor-hugo > browser-sync
imports-loader 0.6.5 0.6.5 0.8.0 victor-hugo
js-tokensΒ  3.0.2 3.0.2 4.0.0 victor-hugo > babel-register > babel-core > babel-code-frame
json5Β  0.5.1 0.5.1 1.0.1 victor-hugo > babel-register > babel-core
localtunnelΒ  1.8.3 1.8.3 1.9.0 victor-hugo > browser-sync
lodash.template 3.6.2 3.6.2 4.4.0 victor-hugo > gulp-util
make-iterator 1.0.1 1.0.1 2.0.0 victor-hugo > gulp > liftoff > object.map
micromatchΒ  2.3.11 2.3.11 3.1.10 victor-hugo > browser-sync
minimist 0.0.8 0.0.8 1.2.0 victor-hugo > babel-register > mkdirp
multipipeΒ  0.1.2 0.1.2 2.0.3 victor-hugo > gulp > gulp-util
object-pathΒ  0.9.2 0.9.2 0.11.4 victor-hugo > browser-sync > eazy-logger > tfunk
opnΒ  4.0.2 4.0.2 5.3.0 victor-hugo > browser-sync
postcss-cssnext 2.11.0 2.11.0 3.1.0 victor-hugo
postcss-import 8.2.0 8.2.0 11.1.0 victor-hugo
postcss-loader 0.9.1 0.9.1 2.1.3 victor-hugo
qs 6.2.1 6.2.1 6.5.1 victor-hugo > browser-sync
isarrayΒ  1.0.0 1.0.0 2.0.4 victor-hugo > gulp-util > through2 > readable-stream
regenerator-transform 0.10.1 0.10.1 0.12.3 victor-hugo > babel-preset-es2015 > babel-plugin-transform-regenerator
regexpu-core 2.0.0 2.0.0 4.1.3 victor-hugo > babel-preset-es2015 > babel-plugin-transform-es2015-unicode-regex
replace-extΒ  0.0.1 0.0.1 1.0.0 victor-hugo > gulp > gulp-util
serve-indexΒ  1.8.0 1.8.0 1.9.1 victor-hugo > browser-sync
serve-static 1.12.2 1.12.2 1.13.2 victor-hugo > browser-sync
slashΒ  1.0.0 1.0.0 2.0.0 victor-hugo > babel-register > babel-core
socket.ioΒ  2.0.4 2.0.4 2.1.0 victor-hugo > browser-sync
socket.io-client 2.0.4 2.0.4 2.1.0 victor-hugo > browser-sync > browser-sync-ui
source-map 0.5.7 0.5.7 0.7.2 victor-hugo > babel-register > babel-core
source-map-support 0.4.18 0.4.18 0.5.4 victor-hugo > babel-register > babel-core > babel-register
time-stamp 1.1.0 1.1.0 2.0.0 victor-hugo > gulp > gulp-util > fancy-log
to-fast-properties 1.0.3 1.0.3 2.0.0 victor-hugo > babel-register > babel-core > babel-types
ua-parser-js 0.7.12 0.7.12 0.7.17 victor-hugo > browser-sync
url-loader 0.5.9 0.5.9 1.0.1 victor-hugo
v8flagsΒ  2.1.1 2.1.1 3.0.2 victor-hugo > gulp
vinylΒ  0.5.3 0.5.3 2.1.0 victor-hugo > gulp > gulp-util
vinyl-fsΒ  0.3.14 0.3.14 3.0.2 victor-hugo > gulp
webpack 1.15.0 1.15.0 4.5.0 victor-hugo
whatwg-fetch 1.1.1 1.1.1 2.0.4 victor-hugo
yargsΒ  6.4.0 6.4.0 11.0.0 victor-hugo > browser-sync

NPM task does not exist

- Do you want to request a feature or report a bug?
bug

- What is the current behavior?
Run npm run webpack targeting "webpack": "gulp webpack"

- If the current behavior is a bug, please provide the steps to reproduce.
Use the force and the CLI.

- What is the expected behavior?
I don't know really - having both gulp and webpack at the same time for achieving similar things, I don't know what were your objectives with this task.

- Please mention your node.js, NPM, Hugo and operating system version.
Irrelevant, it's just a non-existent gulp task.

Cloning and changing name

Thank you, for creating this πŸ‘

Just a quick issue I am having with NPM:

  • I cloned the repo (actually tried both ZIP and git clone)
  • Renamed the repo to something else for my project
  • Ran npm install and got following error:
    "npm WARN [email protected] No repository field."

Basically, unless I leave the name of the folder the repo is in the same as 'victor-hugo' I cannot build anything.

npm issue

I don't believe this is an issue with the theme but with my own setup. Any advice going forward?
npm start


> [email protected] start /Users/charliesouthard/Sites/hugo/victor-hugo
> gulp server

[19:47:23] Requiring external module babel-register
[19:47:24] Using gulpfile ~/Sites/hugo/victor-hugo/gulpfile.babel.js
[19:47:24] Starting 'hugo'...
[19:47:24] Starting 'css'...
[19:47:25] Starting 'js'...
events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: spawn hugo ENOENT
    at exports._errnoException (util.js:1022:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
    at onErrorNT (internal/child_process.js:359:16)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)

npm ERR! Darwin 16.1.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v6.9.2
npm ERR! npm  v3.10.9
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: `gulp server`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] start script 'gulp server'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the victor-hugo package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     gulp server
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs victor-hugo
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls victor-hugo
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/charliesouthard/Sites/hugo/victor-hugo/npm-debug.log

log: https://www.dropbox.com/s/jxfjoe7na4qzjit/npm-debug.log?dl=0

Update dependencies

It's been several months since dependencies were last updated. Have you audited recently?

newbie questions – β€œCannot GET /post/” error.

Hi all,
I have started to work with the blackburn theme via victor-hugo.
I have couple of newbie questions.

I have added about.md by the command hugo new about.md to the folder
site/content/about.md.

Similar, I have added a new post by the command hugo new post/first.md to the folder site/content/post/first.md.

I have added the following to the config.toml file:

[[menu.main]]
    name = "Posts"
    ...
    identifier = "post"
    url = "/post/"
  [[menu.main]]
    name = "About"
   ...
    identifier = "about"
    url = "/about/"

Unfortunately, when I click on the about link I’ve the following error:

Cannot GET /about/

Similar, when I click on the posts link I’ve the following error:

Cannot GET /post/

What is missed in my configuration?

I will appreciate any help,

Best regards,
Michael

How to add hash to static assets?

It seems currently this template doesn't add a hash to static assets automatically. Not sure whether this feature has been shipped already.

Environment variables and some other small extensions

Hello!
I have done some local adjustments, like adding an environmental variable for easier development/deployment as gulp task and some tweaks in the default theme. Would you like me create some PRs so you can have a look and maybe pull it in?

postcss: @apply rules won't find @imported css

There's an ordering error with postcss-next and postcss-import.

Behaviour

If you have custom properties sets on a individual @imported file, postcss-apply will fail to find them.
The following message will appear on console:

...
postcss-apply: ...src/css/main.css:24:3: No custom properties set declared for `hero-font`.
...

How to fix

Thankfully, it's an easy fix.
Just swap the order, they're processed in your gulpfile.babel.js, letting cssImport first.

gulp.task("css", () => (
  gulp.src("./src/css/*.css")
    .pipe(postcss([cssImport({from: "./src/css/main.css"}), cssnext()]))
    .pipe(gulp.dest("./dist/css"))
    .pipe(browserSync.stream())
));

Test example:

File: src/css/imports/rules.css

:root {
   --hero-font: {
    font-family: 'Antic', sans-serif;
    font-size: 2em;
  };
}

File: src/css/main.css

@import "imports/rules.css";

h1 {
   @apply --hero-font;
}

Can't run local development for Ubuntu on Windows.

- Do you want to request a feature or report a bug?
Bug

- What is the current behavior?
Crash when running npm install.

- If the current behavior is a bug, please provide the steps to reproduce.
Download and setup Ubuntu on Windows, install latest npm and nodejs (apt get install npm && apt get install nodejs), download repository onto linux, and run npm install.
- What is the expected behavior?
The process completes without any errors.
Error:

loadDep:webpack β†’ resolve β–„ β•’β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β•Ÿ
loadDep:yargs β†’ 304       β–„ β•’β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β•Ÿ
WARN engine [email protected]: wanted: {"node":">=4.3.0 <5.0.0 || >=5.10"} (current: {"node":"4.2.6","npm":"
> [email protected] postinstall /home/chosen/site/victor-hugo/node_modules/uglifyjs-webpack-plugin
> node lib/post_install.js

sh: 1: node: not found
[email protected] /home/chosen/site/victor-hugo
β”œβ”€β”¬ [email protected]
β”‚ └─┬ [email protected]
β”‚   └─┬ [email protected]
β”‚     └─┬ [email protected]
β”‚       β”œβ”€β”¬ [email protected]
β”‚       β”‚ └── [email protected]
β”‚       └─┬ [email protected]
β”‚         └── [email protected]
β”œβ”€β”¬ [email protected]
β”‚ β”œβ”€β”€ [email protected]
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ └─┬ [email protected]
β”‚ β”‚   └─┬ [email protected]
β”‚ β”‚     β”œβ”€β”¬ [email protected]
β”‚ β”‚     β”‚ └── [email protected]
β”‚ β”‚     └── [email protected]
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ └── [email protected]
β”‚ β”‚ └─┬ [email protected]
β”‚ β”‚   └── [email protected]
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ └── [email protected]
β”‚ └─┬ [email protected]
β”‚   β”œβ”€β”€ UNMET PEER DEPENDENCY [email protected]
β”‚   β”œβ”€β”¬ [email protected]
β”‚   β”‚ └── [email protected]
β”‚   └─┬ [email protected]
β”‚     β”œβ”€β”€ [email protected]
β”‚     └─┬ [email protected]
β”‚       └── [email protected]
β”œβ”€β”¬ [email protected]
β”‚ └─┬ [email protected]
β”‚   └─┬ [email protected]
β”‚     β”œβ”€β”¬ [email protected]
β”‚     β”‚ β”œβ”€β”€ [email protected]
β”‚     β”‚ └── [email protected]
β”‚     └── [email protected]
β”œβ”€β”¬ [email protected]
β”‚ └─┬ [email protected]
β”‚   └── [email protected]
β”œβ”€β”¬ [email protected]
β”‚ └─┬ [email protected]
β”‚   β”œβ”€β”¬ [email protected]
β”‚   β”‚ └─┬ [email protected]
β”‚   β”‚   └── [email protected]
β”‚   └─┬ [email protected]
β”‚     └─┬ [email protected]
β”‚       β”œβ”€β”¬ [email protected]
β”‚       β”‚ └─┬ [email protected]
β”‚       β”‚   β”œβ”€β”€ [email protected]
β”‚       β”‚   └─┬ [email protected]
β”‚       β”‚     └── [email protected]
β”‚       β”œβ”€β”€ [email protected]
β”‚       β”œβ”€β”¬ [email protected]
β”‚       β”‚ β”œβ”€β”€ [email protected]
β”‚       β”‚ └─┬ [email protected]
β”‚       β”‚   └── [email protected]
β”‚       └─┬ [email protected]
β”‚         └─┬ [email protected]
β”‚           β”œβ”€β”€ [email protected]
β”‚           └─┬ [email protected]
β”‚             └── [email protected]
β”œβ”€β”¬ [email protected]
β”‚ └─┬ [email protected]
β”‚   └── [email protected]
β”œβ”€β”¬ [email protected]
β”‚ └─┬ [email protected]
β”‚   └── [email protected]
└── UNMET DEPENDENCY [email protected]

npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]
npm WARN optional Skipping failed optional dependency /gulp-watch/chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]
npm WARN [email protected] requires a peer of ajv@^6.0.0 but none was installed.
npm ERR! Linux 4.4.0-43-Microsoft
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v4.2.6
npm ERR! npm  v3.5.2
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn

npm ERR! [email protected] postinstall: `node lib/post_install.js`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'node lib/post_install.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the uglifyjs-webpack-plugin package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node lib/post_install.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs uglifyjs-webpack-plugin
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls uglifyjs-webpack-plugin
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/chosen/site/victor-hugo/npm-debug.log

If you need the log, give me a place or email to send it to.

not an issue at all ..

... i just came by to say that's an f*** sweet solution you build there with js.
never thought about to use npm in a way to drop some binaries or similar but for what we are doing here perfect. so thanks, nice for the good idea. now lets hack something !

How can i use victor-hugo with hugo multilingual

Hello,

Thank you for this great repo.
When i use it with hugo multilangual in the dist folder i have css, en, de, es and in netlify i created a domain for each language folder. Is there a way to use the css, js, images folders without a symlink/copy in each language folder?

A solution will be to copy the css folder in the site/static/ and let hugo handle the duplication for each lang, but it doesn't feel right.

All the best,
Erol

Unable to import three.js in app.js

When trying to load the three.js npm module in app.js I am getting the following error:

ERROR in ./node_modules/three/build/three.module.js
Module not found: Error: Can't resolve 'exports' in '/Users/ojs/Sites/last-spike/node_modules/three/build'
BREAKING CHANGE: It's no longer allowed to omit the '-loader' suffix when using loaders.
                 You need to specify 'exports-loader' instead of 'exports',
                 see https://webpack.js.org/guides/migrating/#automatic-loader-module-name-extension-removed
 @ ./node_modules/three/build/three.module.js 1:0-72
 @ ./src/js/app.js
 @ multi ./js/app

I got this error after adding an import statement for three to the top of my app.js file using the latest victor-hugo updated 6 days ago.

import $ from "jquery";
import { WebGLRenderer, PerspectiveCamera, Scene, Vector3 } from 'three';
import Rellax from "rellax";
import {TweenMax, TimelineMax} from "gsap";
import ScrollMagic from "scrollmagic";
import 'imports-loader?define=>false!scrollmagic/scrollmagic/uncompressed/plugins/animation.gsap';
// import 'imports-loader?define=>false!scrollmagic/scrollmagic/uncompressed/plugins/debug.addIndicators';
import dat from "dat.gui";

All other modules seem to import just fine. And I have no problem using three.js as part of this webpack 3 starter https://github.com/edwinwebb/three-seed/

I'm not too familiar with diagnosing webpack issues and why specifically importing the three.js module is throwing an exception in victor-hugo but not the three-seed starter. Both seem to be using the same major versions of the required dependancies. I don't see anything wrong in webpack.conf.js with how the loaders are called. And the latest version of the three.js module appears to be installed just fine to my local victor-hugo project.

Any help greatly appreciated.

Project install fails

- Do you want to request a feature or report a bug?
bug

- If the current behavior is a bug, please provide the steps to reproduce.

Clone the repo from GitHub, run npm install, then start the dev server npm start.

using [email protected]
using [email protected]

$ npm start

> [email protected] start /usr/local/var/www/rordorf
> gulp server

[22:38:00] Requiring external module babel-register
/usr/local/var/www/rordorf/gulpfile.babel.js:1
(function (exports, require, module, __filename, __dirname) { import gulp from "gulp";
                                                              ^^^^^^

SyntaxError: Unexpected token import
    at createScript (vm.js:80:10)
    at Object.runInThisContext (vm.js:139:10)
    at Module._compile (module.js:599:28)
    at loader (/usr/local/var/www/rordorf/node_modules/babel-register/lib/node.js:144:5)
    at Object.require.extensions.(anonymous function) [as .js] (/usr/local/var/www/rordorf/node_modules/babel-register/lib/node.js:154:7)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)
    at Module.require (module.js:579:17)
    at require (internal/module.js:11:18)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `gulp server`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

[[FEATURE]] change source organization so that "victorhugo" is a theme...

Not including bug report since this is more of a "feature" request.

I think there is value in making "victorhugo" the theme in the site directory. I appreciate the conflation of webpack and hugo's typical source organization since it gives a one-liner to get up and running from the command line, but Hugo's baked-in theming is awfully handy, and I can see people using Victor Hugo from the get go as a theme that can repurposed or shared rather than a standalone site. In other words...

/site/
    content/
    themes/
        victorhugo/
         All the VH goodies netlify has put together with webpack, etc.

As an aside, netlify is f*(&(*& awesome. Thanks!

How to start 'hugo server --buildDrafts'?

Sorry for simple question, but I don't find it in readme.

For development, I usually use hugo server --buildDrafts but I don't know how to do it with victor-hugo. Could you help me? Thanks.

Adding new pages

Im using hugo boiler plate for my new website. I do not need to use a theme, im happy to use the boilerplate setup.

One thing that is very unclear to me is how to setup and add new pages. I have built a components page within my index.html, I would like to now split up the pages,

Can anyone please point me in the right direction

Cheers

PostCSS errors stops Gulp watch

- Do you want to request a feature or report a bug?
Bug

- What is the current behavior?
When post-css detects errors on css file, gulp watch stops working.

- What is the expected behavior?
Just display the error on console without stoping gulp watch.

- Please mention your node.js, NPM, Hugo and operating system version.
node 6.10.0
npm 6.0.0
hugo 0.37

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.