aboutsummaryrefslogtreecommitdiff
path: root/barf
diff options
context:
space:
mode:
authorBradley Taunt <bt@btxx.org>2024-06-10 10:12:28 -0400
committerBradley Taunt <bt@btxx.org>2024-06-10 10:12:28 -0400
commit14074019d62d98885c4c764401a9e7e1fd129f79 (patch)
treec688b288de21b5c475fa2e512be8a8418b9ba8e6 /barf
parent80eefc47a0982703e48eb9b1cf4e5180f945ef10 (diff)
Set proper timestamps for header and footer HTML templates, update some post contents
Diffstat (limited to 'barf')
-rwxr-xr-xbarf5
1 files changed, 3 insertions, 2 deletions
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
}