Compare commits

..

4 Commits

Author SHA1 Message Date
d84dd10ca5 Update critical file(s) according to Chirpy v4.0.2 2021-06-23 16:55:07 +00:00
14988e3c10 Update README 2021-06-23 23:26:23 +08:00
53ccb821cb Improve the gitignore 2021-06-04 19:42:36 +08:00
81cfa313af fix usage on Customing Stylesheet 2021-05-11 21:46:25 +08:00
3 changed files with 9 additions and 7 deletions

4
.gitignore vendored
View File

@ -1,6 +1,8 @@
# hidden files
.*
!.github
!.git*
!.editorconfig
!.nojekyll
# bundler cache
_site

View File

@ -1,6 +1,6 @@
source "https://rubygems.org"
gem "jekyll-theme-chirpy", "~> 4.0", ">= 4.0.1"
gem "jekyll-theme-chirpy", "~> 4.0", ">= 4.0.2"
group :jekyll_plugins do
# If you have any plugins, put them here!

View File

@ -7,7 +7,7 @@ The startup template for [**Jekyll Theme Chirpy**][chirpy].
When installing the **Chirpy** theme through [RubyGems][gem], Jekyll can only read files in the folders `_includes`, `_layout`, `_sass` and `assets`, as well as a small part of options of the `_config.yml` file from the theme's gem. (You can find the gem files by using the command `bundle info --path jekyll-theme-chirpy`). To fully use all the features of **Chirpy**, you need to copy the other critical files/directories from the theme's gem to your Jekyll site.
The key files/directories to run/build the **Chirpy** theme are as follows:
The critical files/directories to run or build the **Chirpy** theme are as follows:
```shell
.
@ -42,7 +42,7 @@ And then add the following content:
---
---
@import {{ site.theme }}
@import "{{ site.theme }}";
// add your style below
```
@ -59,11 +59,11 @@ $tab-count: {{ site.tabs | size | plus: 1 }};
See the [deployment instructions](https://github.com/cotes2020/jekyll-theme-chirpy#deployment) of `jekyll-theme-chirpy`.
### Updating
### Upgrading
Please note that files and directories in this project may change as the [`jekyll-theme-chirpy`][chirpy] is updated. When updating, please ensure that the file directory structure of your Jekyll site is the same as that of this project.
First, please modify the target version number of `jekyll-theme-chirpy` in the `Gemfile` (e.g., `gem "jekyll-theme-chirpy", "~> 4.0", ">= 4.0.1"`). In addition, if the major version number is updated, you need to update the critical files to keep them the same as this project.
And then execute:
After that, execute the following command:
```console
$ bundle update jekyll-theme-chirpy