You need to have the latest/LTS node and npm versions installed in order to use Victor Hugo.
Next step, clone this repository and run:
npm installThis will take some time and will install all packages necessary to run Victor Hugo and its tasks.
While developing your website, use:
npm startor
gulp serverThen visit http://localhost:3000/- or a new browser windows popped-up already - to preview your new website. BrowserSync will automatically reload the CSS or refresh the whole page, when stylesheets or content changes.
To build a static version of the website inside the /dist folder, run:
npm run buildTo get a preview of posts or articles not yet published, run:
npm run build-previewSee package.json or the included gulp file for all tasks.
|--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 | |--static // Files in here ends up in the public folder |--src // Files that will pass through the asset pipeline | |--css // CSS files in the root of this folder will end up in /css/... | |--js // app.js will be compiled to /app.js with babel