Skip to content

3CSTech/WebsiteSource

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

This is the 3CS company homepage

Requirements

Contributing

For first time use, run npm install -g grunt-cli

Then install project build dependencies: npm install

Run grunt --help for a list of available tasks.

For first time use, you should run grunt-curl to fetch third party dependencies.

Generating Pages

Run grunt clean staticHandlebars replace, the pages will appear in the gen directory.

Pages live in templates/html and each page has context data provided by a .json file of the same name. Data common to all pages belongs in base.json.

Pages are made up of Handlebars partials. These live in the templates/html/partials directory.

Copy

You can copy to your GitHub IO pages directory using the command make copy

Local

To serve the web pages locally:

grunt connect watch

Navigate to the following URL: http://localhost:8000

Generated pages are in /gen

Making changes to the files automatically rebuilds the site and if you are using a browser with the livereload extension the changes will automatically be seen in the pages.

Links