From bc963e2f0b6ee43796e9bbc4c16f9b273b406b6a Mon Sep 17 00:00:00 2001 From: Thibaud Lepretre Date: Mon, 4 Oct 2021 09:24:45 +0200 Subject: Release 0.5.3-BETA --- CHANGELOG.md | 4 ++ README.md | 2 +- docs/developer.md | 6 +-- docs/user.md | 2 +- exampleSite/config.toml | 2 +- .../posts/Welcome-to-the-new-Tranquilpeak.md | 4 +- layouts/partials/meta.html | 2 +- package-lock.json | 5 ++- package.json | 4 +- release.sh | 50 ++++++++++++++++++++++ 10 files changed, 68 insertions(+), 13 deletions(-) create mode 100755 release.sh diff --git a/CHANGELOG.md b/CHANGELOG.md index 50f88c4..5ebb69d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to this project will be documented in this file. +## [0.5.3-BETA](https://github.com/kakawait/hugo-tranquilpeak-theme/milestone/27) - 04 oct 2021 + +- Fix top/bottom bar behavior when scrolling ([#520](https://github.com/kakawait/hugo-tranquilpeak-theme/issues/520)) + ## [0.5.2-BETA](https://github.com/kakawait/hugo-tranquilpeak-theme/milestone/25) - 08 sep 2021 - Fix gitalk (really does not work on previous version) ([#504](https://github.com/kakawait/hugo-tranquilpeak-theme/issues/504) and [#507](https://github.com/kakawait/hugo-tranquilpeak-theme/issues/507)) (thank you @duval1024) diff --git a/README.md b/README.md index f3e9198..4abedff 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ How can I migrate my current version? Please read [CHANGELOG.md](https://github. ## General - **Authors**: [Thibaud Leprêtre (kakawait)](https://github.com/kakawait) and [Louis Barranqueiro (LouisBarranqueiro)](https://github.com/LouisBarranqueiro) -- **Version**: 0.5.2-BETA (based on Hexo version 3.1.0) +- **Version**: 0.5.3-BETA (based on Hexo version 3.1.0) - **Compatibility**: Hugo v0.53 ## Features diff --git a/docs/developer.md b/docs/developer.md index cb04139..837d13f 100644 --- a/docs/developer.md +++ b/docs/developer.md @@ -29,9 +29,9 @@ If you want to report a bug or ask a question, [create an issue](https://github. ## General ## -- **Author** : Thibaud Leprêtre -- **Version** : 0.5.2-BETA (based on Hexo version 3.1.0) -- **Compatibility** : Hugo v0.53 +- **Author**: Thibaud Leprêtre +- **Version**: 0.5.3-BETA (based on Hexo version 3.1.0) +- **Compatibility**: Hugo v0.53 ## Requirements ## diff --git a/docs/user.md b/docs/user.md index 374c417..c5bab4c 100644 --- a/docs/user.md +++ b/docs/user.md @@ -61,7 +61,7 @@ If you want to report a bug or ask a question, [create an issue](https://github. ## General - **Authors**: [Thibaud Leprêtre (kakawait)](https://github.com/kakawait) and [Louis Barranqueiro (LouisBarranqueiro)](https://github.com/LouisBarranqueiro) -- **Version**: 0.5.2-BETA (based on Hexo version 3.1.0) +- **Version**: 0.5.3-BETA (based on Hexo version 3.1.0) - **Compatibility**: Hugo v0.53 ## Features diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 0848fec..e60892d 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -1,5 +1,5 @@ # Tranquilpeak -# Version : 0.5.2-BETA +# Version : 0.5.3-BETA # Author : Thibaud Leprêtre # I STRONGLY recommend you to use a CDN to speed up loading of pages. diff --git a/exampleSite/content/posts/Welcome-to-the-new-Tranquilpeak.md b/exampleSite/content/posts/Welcome-to-the-new-Tranquilpeak.md index 6ec7a18..d64b5b8 100644 --- a/exampleSite/content/posts/Welcome-to-the-new-Tranquilpeak.md +++ b/exampleSite/content/posts/Welcome-to-the-new-Tranquilpeak.md @@ -1,5 +1,5 @@ --- -title: "Welcome to Tranquilpeak 0.5.2-BETA" +title: "Welcome to Tranquilpeak 0.5.3-BETA" date: 2015-06-15 categories: - tranquilpeak @@ -57,7 +57,7 @@ How can I migrate my current version? Please read [CHANGELOG.md](https://github. ## General - **Authors**: [Thibaud Leprêtre (kakawait)](https://github.com/kakawait) and [Louis Barranqueiro (LouisBarranqueiro)](https://github.com/LouisBarranqueiro) -- **Version**: 0.5.2-BETA (based on Hexo version 3.1.0) +- **Version**: 0.5.3-BETA (based on Hexo version 3.1.0) - **Compatibility**: Hugo v0.53 ## Features diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html index 6e668fe..0662392 100644 --- a/layouts/partials/meta.html +++ b/layouts/partials/meta.html @@ -1,7 +1,7 @@ - + diff --git a/package-lock.json b/package-lock.json index a9fd6ab..bd32da7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,12 @@ { "name": "hugo-tranquilpeak-theme", - "version": "0.5.2-BETA", + "version": "0.5.3-BETA", "lockfileVersion": 2, "requires": true, "packages": { "": { - "version": "0.5.2-BETA", + "name": "hugo-tranquilpeak-theme", + "version": "0.5.3-BETA", "license": "GPL-3.0", "devDependencies": { "eslint": "^7.32.0", diff --git a/package.json b/package.json index df3f629..e5a6173 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hugo-tranquilpeak-theme", - "version": "0.5.2-BETA", + "version": "0.5.3-BETA", "description": "A gorgeous responsive theme for Hugo blog framework", "main": "Gruntfile.js", "scripts": { @@ -33,13 +33,13 @@ "eslint-config-google": "^0.14.0", "grunt": "^1.4.1", "grunt-cli": "^1.4.3", - "grunt-exec": "^3.0.0", "grunt-contrib-clean": "^2.0.0", "grunt-contrib-concat": "^1.0.1", "grunt-contrib-copy": "^1.0.0", "grunt-contrib-cssmin": "^4.0.0", "grunt-contrib-uglify": "^5.0.1", "grunt-contrib-watch": "^1.1.0", + "grunt-exec": "^3.0.0", "grunt-sails-linker": "^1.0.4", "grunt-sass": "^3.1.0", "grunt-sync": "^0.8.2", diff --git a/release.sh b/release.sh new file mode 100755 index 0000000..63739d9 --- /dev/null +++ b/release.sh @@ -0,0 +1,50 @@ +#!/usr/bin/env bash + +if [[ "$OSTYPE" == "darwin"* ]]; then + sed() { + gsed "$@" + } + date() { + gdate "$@" + } +fi + +new_version="${1}" + +if [[ -z "${new_version}" ]]; then + echo "Missing argument: version" + exit 1 +fi + +current_version="$(node -p "require('./package.json').version")" + +echo "$current_version" + +echo "Current version is: ${current_version}" +echo "New version will be: ${new_version}" +echo +read -p "Are you sure? [y/N] " -r + +if [[ $REPLY =~ ^[Yy]$ ]]; then + # package.json + npm pkg set version=${new_version} + # package-lock.json + npm i + # meta.html + sed -i 's/\(generator" content="[^"]*\)'"${current_version}"'/\1'"${new_version}"'/' layouts/partials/meta.html + # first blog post + sed -i 's/\(title: "[^"]*'"\)${current_version}"'/\1'"${new_version}"'/' exampleSite/content/posts/Welcome-to-the-new-Tranquilpeak.md + sed -i 's/\(- \*\*Version\*\*: \)'"${current_version}"'/\1'"${new_version}"'/' exampleSite/content/posts/Welcome-to-the-new-Tranquilpeak.md + # config.toml + sed -i 's/\([#] Version : \)'"${current_version}"'/\1'"${new_version}"'/' exampleSite/config.toml + # user.md + sed -i 's/\(- \*\*Version\*\*: \)'"${current_version}"'/\1'"${new_version}"'/' docs/user.md + # developer.md + sed -i 's/\(- \*\*Version\*\*: \)'"${current_version}"'/\1'"${new_version}"'/' docs/developer.md + # README.md + sed -i 's/\(- \*\*Version\*\*: \)'"${current_version}"'/\1'"${new_version}"'/' README.md + + npm run lint + + echo "Do not forget to fill CHANGELOG.md" +fi \ No newline at end of file -- cgit v1.2.3