Skip to content

Commit 806fa3a

Browse files
committed
refactor: simplify meta info
1 parent ec69bea commit 806fa3a

File tree

5 files changed

+5
-36
lines changed

5 files changed

+5
-36
lines changed

_includes/head.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
<!-- Font Awesome -->
7575
<link rel="stylesheet" href="{{ site.data.origin[type].fontawesome.css | relative_url }}">
7676

77-
<link rel="stylesheet" href="{{ '/assets/css/style.css' | relative_url }}">
77+
<link rel="stylesheet" href="{{ '/assets/css/:THEME.css' | replace: ':THEME', site.theme | relative_url }}">
7878

7979
{% if site.toc and page.toc %}
8080
<link rel="stylesheet" href="{{ site.data.origin[type].toc.css | relative_url }}">

_javascript/_copyright

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
Chirpy v<%= pkg.version %> (<%= pkg.homepage %>)
2-
© 2019 <%= pkg.author %>
3-
<%= pkg.license %> Licensed
1+
Chirpy v<%= pkg.version %> | © 2019 <%= pkg.author %> | <%= pkg.license %> Licensed | <%= pkg.homepage %>
Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
/*!
2-
* Chirpy v6.1.0 (https://github.com/cotes2020/jekyll-theme-chirpy)
3-
* © 2019 Cotes Chung
4-
* MIT Licensed
5-
*/
6-
71
@import 'colors/typography-light';
82
@import 'colors/typography-dark';
93
@import 'addon/variables';
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
---
33

4-
@import '{{ site.theme }}';
4+
@import 'main';
55

66
/* append your custom style below */

tools/release

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ JS_DIST="assets/js/dist"
3131
BACKUP_PATH="$(mktemp -d)"
3232

3333
FILES=(
34-
"_sass/jekyll-theme-chirpy.scss"
3534
"$GEM_SPEC"
3635
"$NODE_CONFIG"
3736
)
@@ -104,31 +103,9 @@ check() {
104103
_check_node_packages
105104
}
106105

107-
_bump_files() {
108-
for i in "${!FILES[@]}"; do
109-
if [[ ${FILES[$i]} == "$NODE_CONFIG" ]]; then
110-
continue
111-
fi
112-
113-
sed -i "s/v[[:digit:]]\+\.[[:digit:]]\+\.[[:digit:]]\+/v$1/" "${FILES[$i]}"
114-
done
115-
}
116-
117-
_bump_gemspec() {
118-
sed -i "s/[[:digit:]]\+\.[[:digit:]]\+\.[[:digit:]]\+/$1/" "$GEM_SPEC"
119-
}
120-
121-
# 1. Bump latest version number to the following files:
122-
#
123-
# - _sass/jekyll-theme-chirpy.scss
124-
# - _javascript/copyright
125-
# - assets/js/dist/*.js (will be built by gulp later)
126-
# - jekyll-theme-chirpy.gemspec
127-
#
128-
# 2. Create a commit to save the changes.
106+
## Bump latest version number and create a commit to save the changes
129107
bump() {
130-
_bump_files "$1"
131-
_bump_gemspec "$1"
108+
sed -i "s/[[:digit:]]\+\.[[:digit:]]\+\.[[:digit:]]\+/$1/" "$GEM_SPEC"
132109

133110
if [[ $opt_pre = false && -n $(git status . -s) ]]; then
134111
git add .

0 commit comments

Comments
 (0)