Version Update Guide

This website displays the build version in the footer automatically based on Git commit count.

How it works

The version information is stored in _data/version.yml and is automatically updated by the update_version.sh script.

Updating the version

Before committing and pushing changes, run:

./update_version.sh
git add _data/version.yml
git commit -m "Update version"
git push

Method 2: Automatic update with Git hook

You can set up a pre-push hook to automatically update the version:

# Create pre-push hook
cat > .git/hooks/pre-push <<'EOF'
#!/bin/bash
./update_version.sh
git add _data/version.yml
git commit --amend --no-edit
EOF

chmod +x .git/hooks/pre-push

What gets displayed

The footer will show:

Example: Version v451 (Build #451)

Files involved