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-materialto install MkDocs Material. -
Run each of the following to install the plugins that are being used:
-
Run
mkdocs serveto 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/postsfolder. - You will need to add metadata to the top of the file. See the documentation here for more information.
- The
authorfield must match thenamefield in the.authors.ymlfile. - The
categoriesfield can include anything, but it would be better to stay consistent with the other posts. - The
datefield should be in the formatYYYY-MM-DD. - The
draftfield should befalseif you want the post to be published. - The
slugfield 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
linksfield can be used to link to other pages, but I couldn't get it to work. - The
readtimefield 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...