Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 1.39 KB

README.md

File metadata and controls

26 lines (21 loc) · 1.39 KB

eu19 Hugo development environment

This is a Hugo development environment running Hugo v. 0.51

Installation

If you are on macOS and using Homebrew, you can install Hugo with the following one-liner: brew install hugo. For any reference go to Hugo installation page

Running development server

Run the command hugo server to lunch LiveReload as local server, visit http://localhost:1313/ to see the website. Run hugo server -D to have content in draft status published, do it and enjoy the typography.md

Deployment

The command hugo renders your site into public/ dir and is ready to be deployed to your web server. For any refercence go to Hugo basic usage page

Create content

To create a new content, run the command hugo new FOLDER/FILE-NAME.md i.e. hugo new faq/what-is-rss.md. It will make a .md file stored in the relative folder under content folder. In front-matte of the new .md file, change the draft value to false to publish the post.

Test suite with Nightwatch

In order to test application you need to

  • Have Chrome installed
  • Install nodeJs
  • Install NightWatch, run: npm -g install nightwatch -g option make nightwatch available globally

Running test

lunch hugo server then lunch npm test