Dr. Greg Bernstein
Updated March 12th, 2020
A static web page is a web page that is delivered to the user exactly as stored, in contrast to dynamic web pages which are generated by a web application.
Read: 6 Reasons Why You Should Go for a Static Website
JavaScript/Node.js very general generators with no framework dependencies
Metalsmith Home Page: “An extremely simple, pluggable static site generator.”
Eleventy: “Eleventy is a simpler static site generator.”
From Metalsmith:
The task of a static site generator is to produce static build files that can be deployed to a web server. These files are built from source files.
From Metalsmith basic processing flow:
YAML frontmatter
---
title: About the Windsurf Foiling Club
author: Dr. B.
description: The Bay area windsurf foiling club is my club!
moreStuff: This is a front matter in YAML
---
# The Bay Area Windsurf Foiling Club
## Windsurf Foiling
What is *foiling*? This is the practice and art of adding an
underwater **wing** to a water craft which under appropriate
conditions will raise the bulk of the water craft out of the
water thus reducing drag.
Yes *foiling* literally gets you *high*. Foils have
been applied to watercraft as diverse as Americas cup
yachts to kite surfers . Our club, however,
is non-exclusively concerned with *foiling* **windsurfers**.
Both metalsmith and eleventy use the gray-matter to separate the metadata from the content.
gray-matter takes something like this
---
title: Hello
slug: home
---
<h1>Hello world!</h1>
gray-matter separates content and data
{
content: '<h1>Hello world!</h1>',
data: {
title: 'Hello',
slug: 'home'
}
}
For content that is Markdown run content through a Markdown processor.
Send processed content and metadata to template engine for processing
Write output to files in appropriate directories.