Keep release info in site's 'index.toml'.

This commit is contained in:
Sergio Benitez 2018-10-28 20:12:46 -07:00
parent 7b2b6aba81
commit 34c76dd0a9
2 changed files with 11 additions and 2 deletions

View File

@ -34,6 +34,7 @@ function do_replace() {
do_replace "v$(major ${1})" "v$(major ${2})"
do_replace "${1}" "${2}"
# today=$(date "+%b %d, %Y")
# sed -i.bak "s/^date.*/date = \"$today\"/" "${SITE_ROOT}/index.toml"
today=$(date "+%b %d, %Y")
sed -i.bak "s/^date.*/date = \"$today\"/" "${SITE_ROOT}/index.toml"
find ${PROJECT_ROOT} -name "*.bak" | xargs rm

View File

@ -1,3 +1,11 @@
###############################################################################
# Release info: displayed between bars in the header
###############################################################################
[release]
version = "0.4.0-dev"
date = "Oct 28, 2018"
###############################################################################
# Top features: displayed in the header under the introductory text.
###############################################################################