Adding Dates to Frontmatter - script 3: date-adder-now.py

Introduction This script is designed to add the current date to the frontmatter of each markdown file in the /add-dates directory and then move the processed files to the /dates-added directory. It uses the datetime and os modules to accomplish this. Key Features Adds the current date in ISO format to the frontmatter of each .md file in the /add-dates directory. Moves the processed files to the /dates-added directory. Requirements Python 3 installed on your system....

February 7, 2023 · 1 min

Adding a Set Date to the Frontmatter of Markdown Files

Introduction This script is designed to add a specific date to the frontmatter of markdown files. The user provides the date in the format dd/mm/yyyy and the script will convert it to the ISO format and add it to the frontmatter of each markdown file in the /add-dates directory. After the date is added, the file will be moved to the /dates-added directory. Unique Features What sets this script apart from the other date-adding scripts is its ability to allow the user to set a specific date for the frontmatter....

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

Increment Date Adder - Step by Step

Introduction This Python script is designed to add incremental dates to the frontmatter of multiple markdown files. The script will iterate through the files in a specified directory, incrementing the date in the frontmatter by a specified step (in days). The script will then rename the file to indicate that the dates have been added. How to Use Copy the markdown files you want to add incremental dates to into a directory called /add-dates/....

November 7, 2022 · 2 min