jekyll-theme-chirpy 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/404.html +20 -0
- data/LICENSE +21 -0
- data/README.md +223 -0
- data/_config.yml +204 -0
- data/_data/contact.yml +30 -0
- data/_data/date_format.yml +7 -0
- data/_data/label.yml +19 -0
- data/_data/rights.yml +11 -0
- data/_data/share.yml +27 -0
- data/_includes/css-selector.html +10 -0
- data/_includes/disqus.html +25 -0
- data/_includes/favicons.html +32 -0
- data/_includes/footer.html +29 -0
- data/_includes/google-analytics.html +14 -0
- data/_includes/head.html +80 -0
- data/_includes/js-selector.html +39 -0
- data/_includes/lozad.html +10 -0
- data/_includes/mermaid.html +29 -0
- data/_includes/mode-toggle.html +145 -0
- data/_includes/no-linenos.html +10 -0
- data/_includes/panel.html +57 -0
- data/_includes/post-nav.html +28 -0
- data/_includes/post-paginator.html +80 -0
- data/_includes/post-sharing.html +23 -0
- data/_includes/read-time.html +19 -0
- data/_includes/refactor-content.html +66 -0
- data/_includes/related-posts.html +106 -0
- data/_includes/search-loader.html +28 -0
- data/_includes/search-results.html +19 -0
- data/_includes/sidebar.html +91 -0
- data/_includes/timeago.html +27 -0
- data/_includes/topbar.html +48 -0
- data/_includes/trending-tags.html +36 -0
- data/_includes/update-list.html +24 -0
- data/_layouts/archives.html +36 -0
- data/_layouts/categories.html +100 -0
- data/_layouts/category.html +24 -0
- data/_layouts/compress.html +10 -0
- data/_layouts/default.html +51 -0
- data/_layouts/home.html +96 -0
- data/_layouts/page.html +34 -0
- data/_layouts/post.html +130 -0
- data/_layouts/tag.html +24 -0
- data/_layouts/tags.html +21 -0
- data/_plugins/posts-lastmod-hook.rb +14 -0
- data/_sass/addon/commons.scss +1629 -0
- data/_sass/addon/module.scss +118 -0
- data/_sass/addon/syntax.scss +176 -0
- data/_sass/addon/variables.scss +27 -0
- data/_sass/colors/dark-syntax.scss +84 -0
- data/_sass/colors/dark-typography.scss +135 -0
- data/_sass/colors/light-syntax.scss +75 -0
- data/_sass/colors/light-typography.scss +76 -0
- data/_sass/jekyll-theme-chirpy.scss +22 -0
- data/_sass/layout/archives.scss +137 -0
- data/_sass/layout/categories.scss +64 -0
- data/_sass/layout/category-tag.scss +66 -0
- data/_sass/layout/home.scss +156 -0
- data/_sass/layout/post.scss +349 -0
- data/_sass/layout/tags.scss +18 -0
- data/_tabs/about.md +8 -0
- data/_tabs/archives.md +7 -0
- data/_tabs/categories.md +6 -0
- data/_tabs/tags.md +6 -0
- data/app.js +8 -0
- data/assets/css/style.scss +7 -0
- data/assets/img/favicons/android-icon-144x144.png +0 -0
- data/assets/img/favicons/android-icon-192x192.png +0 -0
- data/assets/img/favicons/android-icon-36x36.png +0 -0
- data/assets/img/favicons/android-icon-48x48.png +0 -0
- data/assets/img/favicons/android-icon-72x72.png +0 -0
- data/assets/img/favicons/android-icon-96x96.png +0 -0
- data/assets/img/favicons/apple-icon-114x114.png +0 -0
- data/assets/img/favicons/apple-icon-120x120.png +0 -0
- data/assets/img/favicons/apple-icon-144x144.png +0 -0
- data/assets/img/favicons/apple-icon-152x152.png +0 -0
- data/assets/img/favicons/apple-icon-180x180.png +0 -0
- data/assets/img/favicons/apple-icon-57x57.png +0 -0
- data/assets/img/favicons/apple-icon-60x60.png +0 -0
- data/assets/img/favicons/apple-icon-72x72.png +0 -0
- data/assets/img/favicons/apple-icon-76x76.png +0 -0
- data/assets/img/favicons/apple-icon-precomposed.png +0 -0
- data/assets/img/favicons/apple-icon.png +0 -0
- data/assets/img/favicons/browserconfig.xml +20 -0
- data/assets/img/favicons/favicon-16x16.png +0 -0
- data/assets/img/favicons/favicon-32x32.png +0 -0
- data/assets/img/favicons/favicon-96x96.png +0 -0
- data/assets/img/favicons/favicon.ico +0 -0
- data/assets/img/favicons/manifest.json +58 -0
- data/assets/img/favicons/ms-icon-144x144.png +0 -0
- data/assets/img/favicons/ms-icon-150x150.png +0 -0
- data/assets/img/favicons/ms-icon-310x310.png +0 -0
- data/assets/img/favicons/ms-icon-70x70.png +0 -0
- data/assets/js/data/cache-list.js +69 -0
- data/assets/js/data/search.json +17 -0
- data/assets/js/dist/categories.min.js +6 -0
- data/assets/js/dist/home.min.js +6 -0
- data/assets/js/dist/page.min.js +6 -0
- data/assets/js/dist/post.min.js +6 -0
- data/assets/js/dist/pvreport.min.js +6 -0
- data/assets/js/lib/jquery.disqusloader.min.js +8 -0
- data/feed.xml +60 -0
- data/index.html +4 -0
- data/robots.txt +10 -0
- data/sw.js +61 -0
- metadata +247 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ecd06628a10c9eb5d0dee7c918bc289f49da6755d530812676072a9ca28abbf6
|
4
|
+
data.tar.gz: '0670685262ea8556adf3054ece889396100b85d7a967bd45f3218b9e84f5bf89'
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a90a2ea6d74c88cc2c2a066d25c3987ca54535fa9a26b2157de81fb521dbe0490583af4584003a2cfbab0f2d7a12219eeded96fb5555d23788bdf64cb9654649
|
7
|
+
data.tar.gz: 52fc86fd2307e5ff592c00eb6540f6db987385b14da13b90e12101aee6cea7145ec92b850c960122ee5dc1988b2c05c5c8235985460b23623ccfc9f705ac457a
|
data/404.html
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
---
|
2
|
+
layout: page
|
3
|
+
title: "404: Page not found"
|
4
|
+
permalink: /404.html
|
5
|
+
|
6
|
+
redirect_from:
|
7
|
+
- /norobots/
|
8
|
+
- /assets/
|
9
|
+
- /tabs/
|
10
|
+
- /categories/
|
11
|
+
- /tags/
|
12
|
+
- /posts/
|
13
|
+
|
14
|
+
dynamic_title: true
|
15
|
+
---
|
16
|
+
|
17
|
+
<div class="lead">
|
18
|
+
<p>Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. </p>
|
19
|
+
<p><a href="{{ site.baseurl }}/">Head back Home</a> to try finding it again, or search for it on the <a href="{{ site.baseurl }}/tabs/archives">Archives page</a>.</p>
|
20
|
+
</div>
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2019 Cotes Chung
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,223 @@
|
|
1
|
+
# Chirpy
|
2
|
+
|
3
|
+
Language: English | [简体中文](https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/docs/README.zh-CN.md)
|
4
|
+
|
5
|
+
[![Build Status](https://github.com/cotes2020/jekyll-theme-chirpy/workflows/build/badge.svg?branch=master&event=push)](https://github.com/cotes2020/jekyll-theme-chirpy/actions?query=branch%3Amaster+event%3Apush)
|
6
|
+
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/8220b926db514f13afc3f02b7f884f4b)](https://app.codacy.com/manual/cotes2020/jekyll-theme-chirpy?utm_source=github.com&utm_medium=referral&utm_content=cotes2020/jekyll-theme-chirpy&utm_campaign=Badge_Grade_Dashboard)
|
7
|
+
[![GitHub license](https://img.shields.io/github/license/cotes2020/jekyll-theme-chirpy.svg)](https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/LICENSE)
|
8
|
+
[![996.icu](https://img.shields.io/badge/link-996.icu-%23FF4D5B.svg)](https://996.icu)
|
9
|
+
|
10
|
+
A minimal, sidebar, responsive web design Jekyll theme that focuses on text presentation. Designed to help you record and share your knowledge easily. [Live Demo »](https://chirpy.cotes.info)
|
11
|
+
|
12
|
+
[![Devices Mockup](https://cdn.jsdelivr.net/gh/cotes2020/chirpy-images/commons/devices-mockup.png)](https://chirpy.cotes.info)
|
13
|
+
|
14
|
+
## Table of Contents
|
15
|
+
|
16
|
+
- [Features](#features)
|
17
|
+
- [Installation](#installation)
|
18
|
+
- [Prerequisites](#prerequisites)
|
19
|
+
- [Usage](#usage)
|
20
|
+
- [Contributing](#contributing)
|
21
|
+
- [Credits](#credits)
|
22
|
+
- [Supporting](#supporting)
|
23
|
+
- [License](#license)
|
24
|
+
|
25
|
+
## Features
|
26
|
+
|
27
|
+
- Pinned Posts
|
28
|
+
- Configurable theme mode
|
29
|
+
- Double-level Categories
|
30
|
+
- Last modified date for posts
|
31
|
+
- Table of Contents
|
32
|
+
- Automatically recommend related posts
|
33
|
+
- Syntax highlighting
|
34
|
+
- Mathematical expressions
|
35
|
+
- Mermaid diagram & flowchart
|
36
|
+
- Search
|
37
|
+
- Atom Feeds
|
38
|
+
- Disqus Comments
|
39
|
+
- Google Analytics
|
40
|
+
- GA Pageviews reporting (Advanced)
|
41
|
+
- SEO and Performance Optimization
|
42
|
+
|
43
|
+
|
44
|
+
## Prerequisites
|
45
|
+
|
46
|
+
Follow the [Jekyll Docs](https://jekyllrb.com/docs/installation/) to complete the installation of `Ruby`, `RubyGems`, `Jekyll` and `Bundler`.
|
47
|
+
|
48
|
+
## Installation
|
49
|
+
|
50
|
+
There are two ways to get the theme:
|
51
|
+
|
52
|
+
- Install from [RubyGems](https://rubygems.org/gems/jekyll-theme-chirpy)
|
53
|
+
- Fork from GitHub
|
54
|
+
|
55
|
+
### Install From Rubygems
|
56
|
+
|
57
|
+
Add this line to your Jekyll site's `Gemfile`:
|
58
|
+
|
59
|
+
```ruby
|
60
|
+
gem "jekyll-theme-chirpy"
|
61
|
+
```
|
62
|
+
|
63
|
+
And add this line to your Jekyll site's `_config.yml`:
|
64
|
+
|
65
|
+
```yaml
|
66
|
+
theme: jekyll-theme-chirpy
|
67
|
+
```
|
68
|
+
|
69
|
+
And then execute:
|
70
|
+
|
71
|
+
```console
|
72
|
+
$ bundle
|
73
|
+
```
|
74
|
+
|
75
|
+
Finally, copy the missing files (refer to the [starter project][starter] for the detailed file directory structure) from the theme's gem to your Jekyll site, and append all the variables of the theme's `_config.yml` to your Jekyll site.
|
76
|
+
|
77
|
+
> **Hint**: To locate the theme’s gem, execute:
|
78
|
+
>
|
79
|
+
```console
|
80
|
+
$ bundle info --path jekyll-theme-chirpy
|
81
|
+
```
|
82
|
+
|
83
|
+
Or you can [use the starter template][use-starter] to create a Jekyll site to save time copying contents from theme's gem.
|
84
|
+
|
85
|
+
[starter]: https://github.com/cotes2020/chirpy-starter
|
86
|
+
[use-starter]: https://github.com/cotes2020/chirpy-starter/generate
|
87
|
+
|
88
|
+
### Fork From GitHub
|
89
|
+
|
90
|
+
[Fork **Chirpy**](https://github.com/cotes2020/jekyll-theme-chirpy/fork) from GitHub and clone your fork to local.
|
91
|
+
|
92
|
+
Install gem dependencies by:
|
93
|
+
|
94
|
+
```console
|
95
|
+
$ bundle
|
96
|
+
```
|
97
|
+
|
98
|
+
And then execute:
|
99
|
+
|
100
|
+
```console
|
101
|
+
$ bash tools/init.sh
|
102
|
+
```
|
103
|
+
|
104
|
+
> **Note**: If you don't plan to deploy your site on GitHub Pages, append parameter option `--no-gh` at the end of the above command.
|
105
|
+
|
106
|
+
What it does is:
|
107
|
+
|
108
|
+
1. Remove some files or directories from your repository:
|
109
|
+
|
110
|
+
- `.travis.yml`
|
111
|
+
- files under `_posts`
|
112
|
+
- folder `docs`
|
113
|
+
|
114
|
+
2. If you use the `--no-gh` option, the directory `.github` will be deleted. Otherwise, setup the GitHub Action workflow by removing extension `.hook` of `.github/workflows/pages-deploy.yml.hook`, and then remove the other files and directories in folder `.github`.
|
115
|
+
|
116
|
+
3. Automatically create a commit to save the changes.
|
117
|
+
|
118
|
+
## Usage
|
119
|
+
|
120
|
+
### Configuration
|
121
|
+
|
122
|
+
Update the variables of `_config.yml` as needed. Some of them are typical options:
|
123
|
+
|
124
|
+
- `url`
|
125
|
+
- `avatar`
|
126
|
+
- `timezone`
|
127
|
+
- `theme_mode`
|
128
|
+
|
129
|
+
### Running Local Server
|
130
|
+
|
131
|
+
You may want to preview the site contents before publishing, so just run it by:
|
132
|
+
|
133
|
+
```console
|
134
|
+
$ bundle exec jekyll s
|
135
|
+
```
|
136
|
+
|
137
|
+
Or run the site on Docker with the following command:
|
138
|
+
|
139
|
+
```terminal
|
140
|
+
$ docker run -it --rm \
|
141
|
+
--volume="$PWD:/srv/jekyll" \
|
142
|
+
-p 4000:4000 jekyll/jekyll \
|
143
|
+
jekyll serve
|
144
|
+
```
|
145
|
+
|
146
|
+
Open a browser and visit to _<http://localhost:4000>_.
|
147
|
+
|
148
|
+
### Deployment
|
149
|
+
|
150
|
+
Before the deployment begins, checkout the file `_config.yml` and make sure the `url` is configured correctly. Furthermore, if you prefer the [**project site**](https://help.github.com/en/github/working-with-github-pages/about-github-pages#types-of-github-pages-sites) and don't use a custom domain, or you want to visit your website with a base url on a web server other than **GitHub Pages**, remember to change the `baseurl` to your project name that starting with a slash, e.g, `/project-name`.
|
151
|
+
|
152
|
+
Now you can now choose ONE of the following methods to deploy your website.
|
153
|
+
|
154
|
+
#### Deploy on GitHub Pages
|
155
|
+
|
156
|
+
For security reasons, GitHub Pages build runs on `safe` mode, which restricts us from using plugins to generate additional page files. Therefore, we can use **GitHub Actions** to build the site, store the built site files on a new branch, and use that branch as the source of the GH Pages service.
|
157
|
+
|
158
|
+
Ensure your Jekyll site has the file `/.github/workflows/pages-deploy.yml`.
|
159
|
+
Otherwise, create a new one and fill in the contents of the [workflow file][workflow], and the value of the `on.push.branches` should be the same as your repo's default branch name.
|
160
|
+
|
161
|
+
[workflow]:https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/.github/workflows/pages-deploy.yml.hook
|
162
|
+
|
163
|
+
Rename your repoistory to `<GH-USERNAME>.github.io` on GitHub.
|
164
|
+
|
165
|
+
And then publish your site by:
|
166
|
+
|
167
|
+
1. Push any commit to remote to trigger the GitHub Actions workflow. Once the build is complete and successful, a new remote branch named `gh-pages` will appear to store the built site files.
|
168
|
+
|
169
|
+
2. Browse to your repo's landing page on GitHub and select the branch `gh-pages` as the [publishing source](https://docs.github.com/en/github/working-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site) throught _Settings_ → _Options_ → _GitHub Pages_:
|
170
|
+
|
171
|
+
![gh-pages-sources](https://cdn.jsdelivr.net/gh/cotes2020/chirpy-images/posts/20190809/gh-pages-sources.png)
|
172
|
+
|
173
|
+
3. Visit your website at the address indicated by GitHub.
|
174
|
+
|
175
|
+
#### Deploy on Other Platforms
|
176
|
+
|
177
|
+
On platforms other than GitHub, we cannot enjoy the convenience of **GitHub Actions**. Therefore, we should build the site locally (or on some other 3rd-party CI platform) and then put the site files on the server.
|
178
|
+
|
179
|
+
Go to the root of the source project, build your site by:
|
180
|
+
|
181
|
+
```console
|
182
|
+
$ JEKYLL_ENV=production bundle exec jekyll b
|
183
|
+
```
|
184
|
+
|
185
|
+
Or build the site with Docker by:
|
186
|
+
|
187
|
+
```terminal
|
188
|
+
$ docker run -it --rm \
|
189
|
+
--env JEKYLL_ENV=production \
|
190
|
+
--volume="$PWD:/srv/jekyll" \
|
191
|
+
jekyll/jekyll \
|
192
|
+
jekyll build
|
193
|
+
```
|
194
|
+
|
195
|
+
Unless you specified the output path, the generated site files will be placed in folder `_site` of the project's root directory. Now you should upload those files to your web server.
|
196
|
+
|
197
|
+
## Documentation
|
198
|
+
|
199
|
+
For more details and the better reading experience, please check out the [tutorials on demo site](https://chirpy.cotes.info/categories/tutorial/). In the meanwhile, a copy of the tutorial is also available on the [Wiki](https://github.com/cotes2020/jekyll-theme-chirpy/wiki).
|
200
|
+
|
201
|
+
## Contributing
|
202
|
+
|
203
|
+
The old saying, "Two heads are better than one." Consequently, welcome to report bugs, improve code quality or submit a new feature. For more information, see [contributing guidelines](.github/CONTRIBUTING.md).
|
204
|
+
|
205
|
+
## Credits
|
206
|
+
|
207
|
+
This theme is mainly built with [Jekyll](https://jekyllrb.com/) ecosystem, [Bootstrap](https://getbootstrap.com/), [Font Awesome](https://fontawesome.com/) and some other wonderful tools (their copyright information can be found in the relevant files).
|
208
|
+
|
209
|
+
:tada: Thanks to all the volunteers who contributed to this project, their GitHub IDs are on [this list](https://github.com/cotes2020/jekyll-theme-chirpy/graphs/contributors). Also, I won't forget those guys who submitted the issues or unmerged PR because they reported bugs, shared ideas or inspired me to write more readable documentation.
|
210
|
+
|
211
|
+
Also, thank [JetBrains][JB] for providing the open source license.
|
212
|
+
|
213
|
+
[![JB-logo](https://cdn.jsdelivr.net/gh/cotes2020/chirpy-images/commons/jetbrains.svg)][JB]
|
214
|
+
|
215
|
+
[JB]:https://www.jetbrains.com/?from=jekyll-theme-chirpy
|
216
|
+
|
217
|
+
## Supporting
|
218
|
+
|
219
|
+
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.
|
220
|
+
|
221
|
+
## License
|
222
|
+
|
223
|
+
This work is published under [MIT](https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/LICENSE) License.
|
data/_config.yml
ADDED
@@ -0,0 +1,204 @@
|
|
1
|
+
# The Site Configuration
|
2
|
+
|
3
|
+
# jekyll-seo-tag settings › https://github.com/jekyll/jekyll-seo-tag/blob/master/docs/usage.md
|
4
|
+
# --------------------------
|
5
|
+
title: Chirpy # the main title
|
6
|
+
|
7
|
+
tagline: A text-focused Jekyll theme # it will display as the sub-title
|
8
|
+
|
9
|
+
description: >- # used by seo meta and the atom feed
|
10
|
+
A minimal, portfolio, sidebar,
|
11
|
+
bootstrap Jekyll theme with responsive web design
|
12
|
+
and focuses on text presentation.
|
13
|
+
|
14
|
+
# fill in the protocol & hostname for your site, e.g., 'https://username.github.io'
|
15
|
+
url: ''
|
16
|
+
|
17
|
+
author: your_full_name # change to your full name
|
18
|
+
|
19
|
+
github:
|
20
|
+
username: github_username # change to your github username
|
21
|
+
|
22
|
+
twitter:
|
23
|
+
username: twitter_username # change to your twitter username
|
24
|
+
|
25
|
+
social:
|
26
|
+
name: your_full_name # it will shows as the copyright owner in Footer
|
27
|
+
email: example@doamin.com # change to your email address
|
28
|
+
links:
|
29
|
+
# The first element serves as the copyright owner's link
|
30
|
+
- https://twitter.com/username # change to your twitter homepage
|
31
|
+
- https://github.com/username # change to your github homepage
|
32
|
+
# Uncomment below to add more social links
|
33
|
+
# - https://www.facebook.com/username
|
34
|
+
# - https://www.linkedin.com/in/username
|
35
|
+
|
36
|
+
google_site_verification: google_meta_tag_verification # change to your verification string
|
37
|
+
# --------------------------
|
38
|
+
|
39
|
+
|
40
|
+
# Only if your site type is GitHub Project sites and doesn't have a custom domain,
|
41
|
+
# change below value to '/projectname'.
|
42
|
+
baseurl: ''
|
43
|
+
|
44
|
+
# Change to your timezone › http://www.timezoneconverter.com/cgi-bin/findzone/findzone
|
45
|
+
timezone: Asia/Shanghai
|
46
|
+
|
47
|
+
google_analytics:
|
48
|
+
id: '' # Fill with your Google Analytics ID
|
49
|
+
pv:
|
50
|
+
# The Google Analytics pageviews switch.
|
51
|
+
# DO NOT enable it unless you know how to deploy the Google Analytics superProxy.
|
52
|
+
enabled: false
|
53
|
+
# the next options only valid when `google_analytics.pv` is enabled.
|
54
|
+
proxy_url: ''
|
55
|
+
proxy_endpoint: ''
|
56
|
+
cache: false # pv data local cache, good for the users from GFW area.
|
57
|
+
|
58
|
+
disqus:
|
59
|
+
comments: false # boolean type, the global switch for posts comments.
|
60
|
+
shortname: '' # Fill with your Disqus shortname. › https://help.disqus.com/en/articles/1717111-what-s-a-shortname
|
61
|
+
|
62
|
+
|
63
|
+
# Prefer color scheme setting.
|
64
|
+
#
|
65
|
+
# Note: Keep empty will follow the system prefer color by default,
|
66
|
+
# and there will be a toggle to switch the theme between dark and light
|
67
|
+
# on the bottom left of the sidebar.
|
68
|
+
#
|
69
|
+
# Available options:
|
70
|
+
#
|
71
|
+
# light - Use the light color scheme
|
72
|
+
#
|
73
|
+
# dark - Use the dark color scheme
|
74
|
+
#
|
75
|
+
theme_mode: # [light|dark]
|
76
|
+
|
77
|
+
# The CDN endpoint for images.
|
78
|
+
# Notice that once it is assigned, the CDN url
|
79
|
+
# will be added to all image (site avatar & posts' images) paths starting with '/'
|
80
|
+
#
|
81
|
+
# e.g. 'https://cdn.com'
|
82
|
+
img_cdn: ''
|
83
|
+
|
84
|
+
# the avatar on sidebar, support local or CORS resources
|
85
|
+
avatar: https://cdn.jsdelivr.net/gh/cotes2020/chirpy-images/commons/avatar.jpg
|
86
|
+
|
87
|
+
# boolean type, the global switch for ToC in posts.
|
88
|
+
toc: true
|
89
|
+
|
90
|
+
paginate: 10
|
91
|
+
|
92
|
+
kramdown:
|
93
|
+
syntax_highlighter: rouge
|
94
|
+
syntax_highlighter_opts: # Rouge Options › https://github.com/jneen/rouge#full-options
|
95
|
+
css_class: highlight
|
96
|
+
# default_lang: console
|
97
|
+
span:
|
98
|
+
line_numbers: false
|
99
|
+
block:
|
100
|
+
line_numbers: true
|
101
|
+
start_line: 1
|
102
|
+
|
103
|
+
# DO NOT change this unless you're a Pro user on Jekyll and Web development,
|
104
|
+
# or you think you're smart enough to change other relevant URLs within this template.
|
105
|
+
permalink: /posts/:title/
|
106
|
+
|
107
|
+
collections:
|
108
|
+
tabs:
|
109
|
+
output: true
|
110
|
+
sort_by: order
|
111
|
+
|
112
|
+
|
113
|
+
defaults:
|
114
|
+
-
|
115
|
+
scope:
|
116
|
+
path: '' # An empty string here means all files in the project
|
117
|
+
type: posts
|
118
|
+
values:
|
119
|
+
layout: post
|
120
|
+
comments: true # Enable comments in posts.
|
121
|
+
toc: true # Display TOC column in posts.
|
122
|
+
breadcrumb:
|
123
|
+
-
|
124
|
+
label: Posts
|
125
|
+
url: /
|
126
|
+
-
|
127
|
+
scope:
|
128
|
+
path: _drafts
|
129
|
+
values:
|
130
|
+
comments: false
|
131
|
+
-
|
132
|
+
scope:
|
133
|
+
path: index.html
|
134
|
+
values:
|
135
|
+
breadcrumb:
|
136
|
+
-
|
137
|
+
label: Posts
|
138
|
+
-
|
139
|
+
scope:
|
140
|
+
path: tags
|
141
|
+
values:
|
142
|
+
breadcrumb:
|
143
|
+
-
|
144
|
+
label: Home
|
145
|
+
url: /
|
146
|
+
-
|
147
|
+
label: Tags
|
148
|
+
url: /tabs/tags/
|
149
|
+
-
|
150
|
+
scope:
|
151
|
+
path: categories
|
152
|
+
values:
|
153
|
+
breadcrumb:
|
154
|
+
-
|
155
|
+
label: Home
|
156
|
+
url: /
|
157
|
+
-
|
158
|
+
label: Categories
|
159
|
+
url: /tabs/categories/
|
160
|
+
-
|
161
|
+
scope:
|
162
|
+
path: ''
|
163
|
+
type: tabs # see `site.collections`
|
164
|
+
values:
|
165
|
+
layout: page
|
166
|
+
dynamic_title: true # Hide title in mobile screens.
|
167
|
+
breadcrumb:
|
168
|
+
-
|
169
|
+
label: Home
|
170
|
+
url: /
|
171
|
+
|
172
|
+
sass:
|
173
|
+
style: compressed
|
174
|
+
|
175
|
+
compress_html:
|
176
|
+
clippings: all
|
177
|
+
comments: all
|
178
|
+
endings: all
|
179
|
+
profile: false
|
180
|
+
blanklines: false
|
181
|
+
ignore:
|
182
|
+
envs: [development]
|
183
|
+
|
184
|
+
exclude:
|
185
|
+
- vendor
|
186
|
+
- Gemfile.lock
|
187
|
+
- Gemfile
|
188
|
+
- tools
|
189
|
+
- docs
|
190
|
+
- README.md
|
191
|
+
- LICENSE
|
192
|
+
- gulpfile.js
|
193
|
+
- node_modules
|
194
|
+
- package.json
|
195
|
+
- package-lock.json
|
196
|
+
|
197
|
+
jekyll-archives:
|
198
|
+
enabled: [categories, tags]
|
199
|
+
layouts:
|
200
|
+
category: category
|
201
|
+
tag: tag
|
202
|
+
permalinks:
|
203
|
+
tag: /tags/:name/
|
204
|
+
category: /categories/:name/
|
data/_data/contact.yml
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# The contact options.
|
2
|
+
|
3
|
+
-
|
4
|
+
type: github
|
5
|
+
icon: 'fab fa-github-alt'
|
6
|
+
-
|
7
|
+
type: twitter
|
8
|
+
icon: 'fab fa-twitter'
|
9
|
+
-
|
10
|
+
type: email
|
11
|
+
icon: 'fas fa-envelope'
|
12
|
+
noblank: true # open link in current tab
|
13
|
+
-
|
14
|
+
type: rss
|
15
|
+
icon: 'fas fa-rss'
|
16
|
+
noblank: true
|
17
|
+
|
18
|
+
# Uncomment and complete the url below to enable more contact options
|
19
|
+
# -
|
20
|
+
# type: mastodon
|
21
|
+
# icon: 'fab fa-mastodon' # icons powered by <https://fontawesome.com/>
|
22
|
+
# url: '' # Fill with your mastodon account page
|
23
|
+
# -
|
24
|
+
# type: linkedin
|
25
|
+
# icon: 'fab fa-linkedin' # icons powered by <https://fontawesome.com/>
|
26
|
+
# url: '' # Fill with your Linkedin homepage
|
27
|
+
# -
|
28
|
+
# type: stack-overflow
|
29
|
+
# icon: 'fab fa-stack-overflow'
|
30
|
+
# url: '' # Fill with your stackoverflow homepage
|
data/_data/label.yml
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# The label text of site.
|
2
|
+
|
3
|
+
panel:
|
4
|
+
lastmod: Recent Update
|
5
|
+
trending_tags: Trending Tags
|
6
|
+
toc: Contents
|
7
|
+
|
8
|
+
post:
|
9
|
+
relate_posts: Further Reading
|
10
|
+
share: Share
|
11
|
+
button:
|
12
|
+
next: Newer
|
13
|
+
previous: Older
|
14
|
+
|
15
|
+
search_hint: Search # text show on search bar
|
16
|
+
|
17
|
+
pin_prompt: Pinned # pinned prompt
|
18
|
+
|
19
|
+
read_time_unit: min # see posts' time to read
|
data/_data/rights.yml
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
# License data
|
2
|
+
|
3
|
+
license:
|
4
|
+
name: CC BY 4.0
|
5
|
+
link: "https://creativecommons.org/licenses/by/4.0/"
|
6
|
+
|
7
|
+
brief: Some rights reserved.
|
8
|
+
|
9
|
+
verbose: >-
|
10
|
+
Except where otherwise noted, the blog posts on this site are licensed
|
11
|
+
under the Creative Commons Attribution 4.0 International (CC BY 4.0) License by the author.
|
data/_data/share.yml
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
# Sharing options at the bottom of the post.
|
2
|
+
# Icons from <https://fontawesome.com/>
|
3
|
+
|
4
|
+
platforms:
|
5
|
+
-
|
6
|
+
type: Twitter
|
7
|
+
icon: "fab fa-twitter"
|
8
|
+
link: "https://twitter.com/intent/tweet?text=TITLE&url=URL"
|
9
|
+
-
|
10
|
+
type: Facebook
|
11
|
+
icon: "fab fa-facebook-square"
|
12
|
+
link: "https://www.facebook.com/sharer/sharer.php?title=TITLE&u=URL"
|
13
|
+
-
|
14
|
+
type: Telegram
|
15
|
+
icon: "fab fa-telegram"
|
16
|
+
link: "https://telegram.me/share?text=TITLE&url=URL"
|
17
|
+
|
18
|
+
# Uncomment below if you need to.
|
19
|
+
# -
|
20
|
+
# type: Linkedin
|
21
|
+
# icon: "fab fa-linkedin"
|
22
|
+
# link: "https://www.linkedin.com/sharing/share-offsite/?url=URL"
|
23
|
+
#
|
24
|
+
# -
|
25
|
+
# type: Weibo
|
26
|
+
# icon: "fab fa-weibo"
|
27
|
+
# link: "http://service.weibo.com/share/share.php?title=TITLE&url=URL"
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<!--
|
2
|
+
CSS selector for site.
|
3
|
+
-->
|
4
|
+
|
5
|
+
<link rel="stylesheet" href="{{ '/assets/css/style.css' | relative_url }}">
|
6
|
+
|
7
|
+
{% if site.toc and page.toc %}
|
8
|
+
<link rel="stylesheet"
|
9
|
+
href="https://cdn.jsdelivr.net/gh/afeld/bootstrap-toc@1.0.1/dist/bootstrap-toc.min.css">
|
10
|
+
{% endif %}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<!--
|
2
|
+
The Disqus lazy loading.
|
3
|
+
Powered by: <https://github.com/osvaldasvalutis/disqusLoader.js>
|
4
|
+
-->
|
5
|
+
|
6
|
+
<div id="disqus" class="pt-2 pb-2">
|
7
|
+
<p class="text-center text-muted pb-5">
|
8
|
+
Loading comments from <a href="https://disqus.com/">Disqus</a> ...
|
9
|
+
</p>
|
10
|
+
</div>
|
11
|
+
|
12
|
+
<script src="{{ '/assets/js/lib/jquery.disqusloader.min.js' | relative_url }}"></script>
|
13
|
+
<script>
|
14
|
+
const options = {
|
15
|
+
scriptUrl: '//{{ site.disqus.shortname }}.disqus.com/embed.js',
|
16
|
+
|
17
|
+
disqusConfig: function() {
|
18
|
+
this.page.title = '{{ page.title }}';
|
19
|
+
this.page.url = '{{ page.url | absolute_url }}';
|
20
|
+
this.page.identifier = '{{ page.url }}';
|
21
|
+
}
|
22
|
+
};
|
23
|
+
|
24
|
+
$.disqusLoader('#disqus', options);
|
25
|
+
</script>
|
@@ -0,0 +1,32 @@
|
|
1
|
+
<!--
|
2
|
+
The Favicons for Web, Android, Microsoft, and iOS (iPhone and iPad) Apps
|
3
|
+
Generated by: https://www.favicon-generator.org/
|
4
|
+
-->
|
5
|
+
|
6
|
+
{% capture icon_url %}{{ site.baseurl }}/assets/img/favicons{% endcapture %}
|
7
|
+
|
8
|
+
<link rel="shortcut icon" href="{{ icon_url }}/favicon.ico" type="image/x-icon">
|
9
|
+
<link rel="icon" href="{{ icon_url }}/favicon.ico" type="image/x-icon">
|
10
|
+
|
11
|
+
<link rel="apple-touch-icon" href="{{ icon_url }}/apple-icon.png">
|
12
|
+
<link rel="apple-touch-icon" href="{{ icon_url }}/apple-icon-precomposed.png">
|
13
|
+
<link rel="apple-touch-icon" sizes="57x57" href="{{ icon_url }}/apple-icon-57x57.png">
|
14
|
+
<link rel="apple-touch-icon" sizes="60x60" href="{{ icon_url }}/apple-icon-60x60.png">
|
15
|
+
<link rel="apple-touch-icon" sizes="72x72" href="{{ icon_url }}/apple-icon-72x72.png">
|
16
|
+
<link rel="apple-touch-icon" sizes="76x76" href="{{ icon_url }}/apple-icon-76x76.png">
|
17
|
+
<link rel="apple-touch-icon" sizes="114x114" href="{{ icon_url }}/apple-icon-114x114.png">
|
18
|
+
<link rel="apple-touch-icon" sizes="120x120" href="{{ icon_url }}/apple-icon-120x120.png">
|
19
|
+
<link rel="apple-touch-icon" sizes="144x144" href="{{ icon_url }}/apple-icon-144x144.png">
|
20
|
+
<link rel="apple-touch-icon" sizes="152x152" href="{{ icon_url }}/apple-icon-152x152.png">
|
21
|
+
<link rel="apple-touch-icon" sizes="180x180" href="{{ icon_url }}/apple-icon-180x180.png">
|
22
|
+
|
23
|
+
<link rel="icon" type="image/png" sizes="192x192" href="{{ icon_url }}/android-icon-192x192.png">
|
24
|
+
<link rel="icon" type="image/png" sizes="32x32" href="{{ icon_url }}/favicon-32x32.png">
|
25
|
+
<link rel="icon" type="image/png" sizes="96x96" href="{{ icon_url }}/favicon-96x96.png">
|
26
|
+
<link rel="icon" type="image/png" sizes="16x16" href="{{ icon_url }}/favicon-16x16.png">
|
27
|
+
|
28
|
+
<link rel="manifest" href="{{ icon_url }}/manifest.json">
|
29
|
+
<meta name='msapplication-config' content='{{ icon_url }}/browserconfig.xml'>
|
30
|
+
<meta name="msapplication-TileColor" content="#ffffff">
|
31
|
+
<meta name="msapplication-TileImage" content="{{ icon_url }}/ms-icon-144x144.png">
|
32
|
+
<meta name="theme-color" content="#ffffff">
|
@@ -0,0 +1,29 @@
|
|
1
|
+
<!--
|
2
|
+
The Footer
|
3
|
+
-->
|
4
|
+
|
5
|
+
<footer class="d-flex w-100 justify-content-center">
|
6
|
+
<div class="d-flex justify-content-between align-items-center">
|
7
|
+
<div class="footer-left">
|
8
|
+
<p class="mb-0">
|
9
|
+
© {{ 'now' | date: "%Y" }}
|
10
|
+
<a href="{{ site.social.links[0] }}">{{ site.social.name }}</a>.
|
11
|
+
{% if site.data.rights.brief %}
|
12
|
+
<span data-toggle="tooltip" data-placement="top"
|
13
|
+
title="{{ site.data.rights.verbose }}">{{ site.data.rights.brief }}</span>
|
14
|
+
{% endif %}
|
15
|
+
</p>
|
16
|
+
</div>
|
17
|
+
|
18
|
+
<div class="footer-right">
|
19
|
+
<p class="mb-0">
|
20
|
+
Powered by
|
21
|
+
<a href="https://jekyllrb.com" target="_blank" rel="noopener">Jekyll</a>
|
22
|
+
with
|
23
|
+
<a href="{{ site.data.meta.homepage }}" target="_blank" rel="noopener">{{ site.data.meta.name }}</a>
|
24
|
+
theme.
|
25
|
+
</p>
|
26
|
+
</div>
|
27
|
+
|
28
|
+
</div> <!-- div.d-flex -->
|
29
|
+
</footer>
|