Skip to content

sitepoint-editors/metalsmith-demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Metalsmith Demo

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

Preview the built site...

Read the tutorial on SitePoint.

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.

About

A demonstration site created using the Metalsmith static site generator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 73.3%
  • JavaScript 14.1%
  • CSS 12.6%