mirror of https://github.com/rwf2/Rocket.git
Keep release info in site's 'index.toml'.
This commit is contained in:
parent
7b2b6aba81
commit
34c76dd0a9
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
###############################################################################
|
||||
|
|
Loading…
Reference in New Issue