2016, September 7th
index.html and sends it back out over the wire. No modification, footer date stamps, or hit counters added!
However, there's a ton of processing that goes into building the site before deploying the static version to the server. Every time the site changes locally while developing (or, while deploying the site to production), the changed files and assets need to be run through a big long Metalsmith processing pipeline to produce a new version of the site.
The Metalsmith file processing pipeline can do a ton of different things, but can basically be reduced to three steps:
Step 2 is the fun part. For
metalsmith-markdown, it'll grab all Markdown files (files with the
*.md extension) in your
src directory, convert them into HTML files, and write them to the
Things get a bit more complicated when you start chaining plugins together. If you wanted to generate your HTML files with heading permalinks, you'd run it through
metalsmith-markdown, then take all of those generated HTML files and add anchor tags to each heading, and then write the results to
I actually ended up building my own Metalsmith plugin just for hoff.tech! I needed to automatically resize all of the mega images that I got from Unsplash to decrease my page's load time, so I built metalsmith-image-resizer.
Because I'm a Node person, and I don't really want to be a Ruby person. Sorry :(
Static sites are the fixies of the Internet.— Paul Graham (@paulg) November 17, 2013
Disclaimer: I ride a shiny black-and-gold fixie to work every day.