Skip to content

Blog post template

This is a template file for blog posts in MkDocs.

In order to keep it simple to create new posts, the template file should have the following:

Page configuration

When creating a new blog post, determine the following page configuration options:

Page metadata

When creating a new blog post, determine the following page metadata:

Excerpt

An excerpt can be created by adding a <!-- more --> separator after the first few paragraphs of a post.

Putting it all together

Front-matter

The front-matter consists of YAML Style Meta-Data to define the page configuration settings:

---
# page configuration
title: Blog post template
description: >
  This is a template file for blog posts in MkDocs.
# icon: octicons/repo-template-24
# https://squidfunk.github.io/mkdocs-material/reference#setting-the-page-icon
status: new
# page metadata
draft: true
date:
  created: 2025-02-18
  updated: 2025-02-18
authors:
  - rwaight
categories:
  - MkDocs
slug: blog-post-template
tags:
  - MkDocs
  - Template
links:
  # All relative links are resolved from the docs directory.
  - references/index.md
  - resources/index.md
---

Example section

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor massa, nec semper lorem quam in massa.