An opinionated boilerplate for a Metalsmith static site.
- Add structured data globally in JSON or YAML in the
./src/globaldata/
- Add structured data to a specific Markdown file by adding in the frontmatter
model: file_name.json
, withfile_name.json
living in./src/models/
git clone https://github.com/ianrose/machinist.git
$ npm install
Edit the ./config.json
as you see fit.
{
"name": "Person or Org",
"title": "Global Title",
"titleSeperator": "|",
"domain": "blank.org",
"url": "http://blank.org",
"description": "Global Description",
"keywords": null,
"dest": "./www/",
"src": "./src/",
"assetPath": {
"development": "/",
"stage": "/",
"production": "/"
},
"googleVerification": null,
"analytics": {
"provider": false,
"google": {
"trackingId": "GA-######"
}
},
"twitter": {
"username": "@username"
},
"facebook": {
"username": null,
"appId": null,
"publisher": null
},
"openGraph": {
"image": null
},
"googleDocJson": {
"fileId": null,
"output": "./src/data/models/archieExample.json"
}
}
Runs your project locally at localhost:3000
with BrowserSync. Edit contents of ./layouts
, ./lib
, ./partials
, and ./src
.
npm run dev
Develop with Metalsmith debugging.
npm run debug
Generates your dist to be deployed in the folder ./www
.
npm run build
Lints your styles, scripts, and markup.
npm run lint
Fix lint errors in your styles and scripts.
npm run format