Contribute to this site
Run locally
- Clone or fork this repository.
- Open the repository in your code editor and in the terminal, navigate to the root of the repository.
- Run
pip install mkdocs-material
to install MkDocs Material. -
Run each of the following to install the plugins that are being used:
-
Run
mkdocs serve
to start the live-reloading docs server.
For common commands that you can use, see this page.
For the project layout, see this page.
Make a blog post
- Create a new file in the
docs/blog/posts
folder. - You will need to add metadata to the top of the file. See the documentation here for more information.
- The
author
field must match thename
field in the.authors.yml
file. - The
categories
field can include anything, but it would be better to stay consistent with the other posts. - The
date
field should be in the formatYYYY-MM-DD
. - The
draft
field should befalse
if you want the post to be published. - The
slug
field should be a unique identifier for the post. It will appear in the URL for the post.
- The
- Write your post in Markdown below the metadata. Be sure to include a title (
# Title
) and the<!-- more -->
tag to indicate where the preview should end.
Optional Metadata
- The
links
field can be used to link to other pages, but I couldn't get it to work. - The
readtime
field can be used to override the default calculation. It shouldn't be necessary since the site should calculate it automatically.
Example
This is an example how to structure a blog post file.
---
authors:
- john
- jane
- jessica
- james
categories:
- Updates
- 2024
date: 2024-01-25
draft: false
slug: sample-blog-post
---
# This is the title of the blog post
This is the body of the blog post. It is written in Markdown.
<!-- more -->
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed euismod, nisl...