Skip to content

ianrose/machinist

Repository files navigation

GitHub license

Machinist

An opinionated boilerplate for a Metalsmith static site.

Features

  • 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, with file_name.json living in ./src/models/

Requirements

node.js

How to Setup

1. Clone

git clone https://github.com/ianrose/machinist.git

2. Install Dependencies

$ npm install

3. Configure Project

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"
  }
}

How to use

Develop

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

Build

Generates your dist to be deployed in the folder ./www.

npm run build

Lint

Lints your styles, scripts, and markup.

npm run lint

Format

Fix lint errors in your styles and scripts.

npm run format

About

An opinionated boilerplate for Metalsmith.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published