You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-8
Original file line number
Diff line number
Diff line change
@@ -6,9 +6,9 @@
6
6
7
7
Language: English | [简体中文](docs/README_zh-CN.md)
8
8
9
-
A minimal, portfolio, sidebar, bootstrap Jekyll theme with responsive web design and focuses on text exhibition. It will help you easily record, manage and share your knowledge and experience.
9
+
A minimal, portfolio, sidebar, bootstrap Jekyll theme with responsive web design and focuses on text exhibition. It will help you easily recordand share your knowledge.
10
10
11
-
You will get the following features:
11
+
**Features**
12
12
13
13
* Auto Dark Mode
14
14
* Posts' Last Modified Date
@@ -24,9 +24,7 @@ You will get the following features:
@@ -124,7 +122,7 @@ Basically, go to `_config.yml` and customize the variables as needed, some of th
124
122
125
123
*`url`
126
124
127
-
Set to your website domain and there should be no slash symbol at the tail.
125
+
Set to your website url and there should be no slash symbol at the tail. Format: `<protocol>://<domain>`.
128
126
129
127
130
128
*`avatar`
@@ -242,7 +240,7 @@ For more details and the better reading experience, please check out the [tutori
242
240
243
241
## Contributing
244
242
245
-
The old saying: "Tow heads are better than one. Five heads are better than two." So, welcome to report bugs, improve code quality or submit a new feature. For more information, see [contributing guidelines](.github/CONTRIBUTING.md).
243
+
The old saying: "Two heads are better than one. Five heads are better than two." So, welcome to report bugs, improve code quality or submit a new feature. For more information, see [contributing guidelines](.github/CONTRIBUTING.md).
246
244
247
245
248
246
## Credits
@@ -254,7 +252,7 @@ This theme is mainly built with [Jekyll](https://jekyllrb.com/) ecosystem, [Boot
254
252
255
253
## Support
256
254
257
-
If you enjoy this theme or find it helpful, please consider becoming my sponsor, I'd really appreciate it! Click the button <kbd>:heart:Sponsor</kbd> at the top of the [Home Page](https://github.com/cotes2020/jekyll-theme-chirpy) and choose a link that suits you to donate. This will encourage me and help me maintain this project.
255
+
If you enjoy this theme or find it helpful, please consider becoming my sponsor, I'd really appreciate it! Click the button <kbd>:heart:Sponsor</kbd> at the top of the [Home Page](https://github.com/cotes2020/jekyll-theme-chirpy) and choose a link that suits you to donate; this will encourage and help me better maintain the project.
Copy file name to clipboardExpand all lines: _posts/2019-08-08-write-a-new-post.md
+17-4
Original file line number
Diff line number
Diff line change
@@ -46,8 +46,8 @@ jekyll-theme-chirpy
46
46
├── categories
47
47
│ ├── animal.html
48
48
│ └── tutorial.html
49
-
├── tags
50
-
│ └── bee.html
49
+
└── tags
50
+
└── bee.html
51
51
```
52
52
53
53
and the content of a *category* type page is
@@ -64,11 +64,24 @@ category: CATEGORY_NAME # e.g. Insect
64
64
---
65
65
layout: tag
66
66
title: TAG_NAME # e.g. bee
67
-
category: TAG_NAME # e.g. bee
67
+
tag: TAG_NAME # e.g. bee
68
68
---
69
69
```
70
70
71
-
With the increasing number of posts, the number of categories and tags will increase several times! If we still manually create these *category*/*tag* type files, it will obviously be a super time-consuming job, and it is very likely to miss some of them(i.e. when you click on the missing `category` or `tag` link from a post or somewhere, it will complain to you '404'). The good news is that we got a lovely script tool to finish the pages creation stuff: `tools/init.sh`. See its usage [here]({{ "/posts/getting-started/#option-1-built-by-github-pages" | relative_url }}).
71
+
With the increasing number of posts, the number of categories and tags will increase several times! If we still manually create these *category*/*tag* type files, it will obviously be a super time-consuming job, and it is very likely to miss some of them(i.e. when you click on the missing `category` or `tag` link from a post or somewhere, it will complain to you '404'). The good news is that we got a lovely script tool `_scripts/py/pages_generator.py` to finish the boring task. Basically we will use it via `tools/init.sh` instead of running it separately. Check out its use case [here]({{ "/posts/getting-started/#option-1-built-by-github-pages" | relative_url }}).
72
+
73
+
- **Last modified date**
74
+
75
+
The last modified date of the posts is recorded as `seo.date_modified`, for example:
76
+
```yaml
77
+
---
78
+
seo:
79
+
date_modified: 2020-01-04 17:05:41 +0800
80
+
---
81
+
```
82
+
83
+
This date is equal to the lastest git-commit date of the post file and can be automatically generated by the tool script `_scripts/py/update_posts_lastmod.py`. Similar to the other script `pages_generator.py` mentioned above, it is also be called from `tools/init.sh`, so it doesn't have to be used separately.
0 commit comments