A demonstration site created using the Node.js Metalsmith static site generator.
Read the tutorial on SitePoint.
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.
Please ensure Node.js and Git are installed on your system.
Download the demonstration code and switch to directory:
git clone [email protected]:craigbuckler/metalsmith-demo.git
cd metalsmith-demo
Install dependencies:
npm install
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.
The built site provides further information about site files and settings.