Skip to content

This is a boilerplate for building static websites with metalsmith

Notifications You must be signed in to change notification settings

MathiasTim/metalsmith-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

metalsmith boilerplate

This is a boilerplate for building static websites with metalsmith.io/.

Setup:

Just clone the repo and npm install.

Run:

Build: for a single build just use this command

$ npm start

Serve: a live-reload webserver will start (use this for dev)

$ npm run serve

Build & Deploy: builds the website and deploys it to your server (needs configuration)

./jenkins.sh -ur

Features

Important Hint: The order of the metalsmith-plugins in the index.js is on purpose and important. Some plugins have to run before others, because they change the folder structure or move files

Styling

  • sass Just the famous css preprocessor
  • sass asset functions Use the asset functions for e.g. inlining images in scss
  • autoprefixer Never write vender prefixes or alternate synatx again

Layout/Links

  • metalsmith-layouts The Plugin for metalsmith layouting (supports multiple template languages)
  • handlebars One of the most popular Template languages for js
  • rootPath With this plugin relative urls are easy to use
  • permalinks Don't like the *.html in the url, get red of it, with this plugin

i18n

  • i18n Use jsons with simple key - value for translations
  • multi language This plugin will render multiple versions of your website

Other

About

This is a boilerplate for building static websites with metalsmith

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published