Adding dates to markdown files with Python

A Collection of Python Scripts for Adding Dates to Markdown Files

Problem: Adding Dates to Markdown Files Keeping track of when a markdown file was created or updated can be important for various reasons such as historical reference, version control, or organizing files by date. However, adding the date manually to each file can be time-consuming and prone to errors. Solution: Automating the Process with Python We present a collection of four Python scripts that automate the process of adding dates to your markdown files....

February 7, 2023 · 2 min

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