This website displays the build version in the footer automatically based on Git commit count.
The version information is stored in _data/version.yml and is automatically updated by the update_version.sh script.
Before committing and pushing changes, run:
./update_version.sh
git add _data/version.yml
git commit -m "Update version"
git push
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
The footer will show:
Example: Version v451 (Build #451)
_data/version.yml - Stores version informationupdate_version.sh - Script to update version from Git_includes/footer.html - Displays version in footer_plugins/git_version.rb - Legacy plugin (not used, kept for reference)