/metalsmith-demo

A demonstration site created using the Metalsmith static site generator

Primary LanguageHTMLMIT LicenseMIT

metalsmith-demo

A demonstration site created using the Node.js Metalsmith static site generator.

Preview the built site...

About this code

This code builds a basic HTML-only site using Metalsmith, a Node.js simple, pluggable static site generator. It is a demonstration rather than build recommendations which will be different for every site. Please use any part of the code as you wish.

Installation

Please ensure Node.js and Git are installed on your system.

Download the demonstration code and switch to directory:

git clone git@github.com:craigbuckler/metalsmith-demo.git
cd metalsmith-demo

Install dependencies:

npm install

Build the static site

To build and launch the site using Browsersync:

npm start

(Stop the server with Ctrl+C.)

To build the site for production and compress HTML files:

npm run production

The site is built in the /build folder.

Further information

The built site provides further information about site files and settings.