Adding Dates to Frontmatter in Increments with Python

Introduction This script is for adding dates to frontmatter of multiple .md files in a directory. The script will read the contents of each .md file in the directory, look for the frontmatter, and add a date field in iso format. The date field will be in incremental order, meaning the first file processed will have the earliest date and the last file processed will have the latest date. This is useful for file management when you need to keep track of when files were added or processed....

February 7, 2023 · 1 min