WEB
(All Topics)
Pre-Commit Hook
I added an update:
variable to _config.yml
and a pre-commit hook at /git/hooks/precommit
. The update:
variable is modified/updated with each commit in the _config.yml
file and, also, wherever it appears in the “front-matter” of my site files.
The date can then be placed and formatted as desired in content of site pages by embedding jekyll-ruby code variables in html such as: page.update | date: "%b %-d, %Y"
.