Example Blog Post
Look, it's a blog post! This is different than the basic HTML pages that we worked on in other parts of the site.
When you edit this file, you'll see something like this at the top:
---
tags: posts
layout: layouts/post.njk
title: Example Blog Post
date: 2025-04-10
octothorpes:
- demo
---
That's called frontmatter.
It's a really basic way of adding some information about this page to the page. (It's Text About Text.)
Everything below the frontmatter is the content
. You can make templates that put the values from the frontmatter and the content wherever you want within the HTML of the template.
Take a look at the file that's referenced in the layout
value. That's the template for this page.
The thing that makes the templates work is called Eleventy. It's what's called a Static Site Generator -- basically a program that makes plain HTML files out of templates, data, and content. Check out the previous post to learn more about it.
Previous post: About Eleventy, the Thing Making This Blog