From 14074019d62d98885c4c764401a9e7e1fd129f79 Mon Sep 17 00:00:00 2001 From: Bradley Taunt Date: Mon, 10 Jun 2024 10:12:28 -0400 Subject: Set proper timestamps for header and footer HTML templates, update some post contents --- barf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'barf') diff --git a/barf b/barf index c19ec94..b4ba0a5 100755 --- a/barf +++ b/barf @@ -175,10 +175,11 @@ EOF initialize_timestamps() { if [ ! -f "$timestamp_file" ] || [ ! -s "$timestamp_file" ]; then echo "Initializing timestamps..." - for f in index.md posts/*.md pages/*.md; do + touch "$timestamp_file" # Ensure the file exists + for f in index.md posts/*.md pages/*.md header.html footer.html; do update_timestamp "$f" done - echo "Timestamps initialized for all Markdown files." + echo "Timestamps initialized for all files." fi } -- cgit v1.2.3-54-g00ecf