jekyll-theme-chirpy-customized-upe 0.0.6 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +59 -57
- data/_data/locales/en.yml +21 -2
- data/_data/locales/ko-KR.yml +29 -9
- data/_data/locales/zh-CN.yml +22 -3
- data/_data/locales/zh-TW.yml +27 -6
- data/_data/origin/cors.yml +1 -3
- data/_layouts/compress.html +1 -0
- data/_layouts/default.html +7 -1
- data/_sass/addon/commons.scss +5 -6
- data/_sass/colors/typography-dark.scss +24 -17
- data/_sass/colors/typography-light.scss +7 -0
- data/_sass/layout/post.scss +2 -2
- data/_sass/main.scss +2 -0
- data/assets/.DS_Store +0 -0
- data/assets/js/dist/app.min.js +1 -0
- data/assets/js/dist/categories.min.js +4 -0
- data/assets/js/dist/commons.min.js +4 -0
- data/assets/js/dist/home.min.js +4 -0
- data/assets/js/dist/misc.min.js +4 -0
- data/assets/js/dist/page.min.js +4 -0
- data/assets/js/dist/post.min.js +4 -0
- metadata +10 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d11cfa94e88b60b009f85a8c72729e9f007ab43ff6349913697f8586d735e17
|
4
|
+
data.tar.gz: 2debc999f79e8595f13ab21be3947c1ecbdd9aa61a54ca96e3b7400291e14912
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: afba89fcd48cefcb313d9eff2acf89149846235bdd15ef69741956eb411a12dc8531de3aeb79208dea7e2fe1697506b2deb3e37299b0bc6641788c1b7eae0ae4
|
7
|
+
data.tar.gz: 6021389bae4fcbfe3d2c8248fe00dac0e582b7ebc06796349f3604d5cb48deec8bd679c39ded6b7544475c2a6efcc4c8c04fe8af691bc0e7d651dd6e840687bc
|
data/README.md
CHANGED
@@ -1,81 +1,83 @@
|
|
1
|
-
|
1
|
+
# Unpublished Posts Enhancement for Chirpy Theme
|
2
2
|
|
3
|
-
|
3
|
+
[![Gem Version](https://img.shields.io/gem/v/jekyll-theme-chirpy)][gem]
|
4
|
+
[![GitHub license](https://img.shields.io/github/license/cotes2020/chirpy-starter.svg?color=blue)][mit]
|
4
5
|
|
5
|
-
|
6
|
+
*Derived from Chirpy theme*
|
6
7
|
|
7
|
-
|
8
|
-
[![CI](https://github.com/cotes2020/jekyll-theme-chirpy/actions/workflows/ci.yml/badge.svg?branch=master&event=push)][ci]
|
9
|
-
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/4e556876a3c54d5e8f2d2857c4f43894)][codacy]
|
10
|
-
[![GitHub license](https://img.shields.io/github/license/cotes2020/jekyll-theme-chirpy.svg)][license]
|
11
|
-
[![996.icu](https://img.shields.io/badge/link-996.icu-%23FF4D5B.svg)](https://996.icu)
|
8
|
+
## Installation
|
12
9
|
|
13
|
-
|
10
|
+
### Creating a New URL
|
14
11
|
|
15
|
-
|
12
|
+
Sign in to GitHub and browse to [**unpublished-posts-enhancement**](https://github.com/Jo-CRuiSe/unpublished-posts-enhancement), click the button <kbd>Use this template</kbd> > <kbd>Create a new repository</kbd>, and name the new repository to what you like which represents your unpulished posts pages URL.
|
16
13
|
|
17
|
-
|
14
|
+
### Installing Dependencies
|
18
15
|
|
19
|
-
|
16
|
+
Before running local server for the first time, go to the root directory of your site and run:
|
20
17
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
- Hierarchical Categories
|
25
|
-
- Trending Tags
|
26
|
-
- Table of Contents
|
27
|
-
- Last Modified Date
|
28
|
-
- Syntax Highlighting
|
29
|
-
- Mathematical Expressions
|
30
|
-
- Mermaid Diagrams & Flowcharts
|
31
|
-
- Dark / Light Mode Images
|
32
|
-
- Embed Videos
|
33
|
-
- Disqus / Giscus / Utterances Comments
|
34
|
-
- Built-in Search
|
35
|
-
- Atom Feeds
|
36
|
-
- PWA
|
37
|
-
- Google Analytics / GoatCounter
|
38
|
-
- SEO & Performance Optimization
|
18
|
+
```console
|
19
|
+
$ bundle
|
20
|
+
```
|
39
21
|
|
40
|
-
##
|
22
|
+
## Usage
|
41
23
|
|
42
|
-
|
24
|
+
You may want to preview the site contents before publishing, so just run it by:
|
43
25
|
|
44
|
-
|
26
|
+
```console
|
27
|
+
$ bundle exec jekyll s
|
28
|
+
```
|
45
29
|
|
46
|
-
|
47
|
-
to learn, inspire, and create. Any contributions you make are greatly appreciated.
|
48
|
-
For details, see the "[Contributing Guidelines][contribute-guide]".
|
30
|
+
After a few seconds, the local service will be published at _<http://127.0.0.1:4000>_.
|
49
31
|
|
50
|
-
##
|
32
|
+
## Deployment
|
51
33
|
|
52
|
-
|
34
|
+
Before the deployment begins, check out the file `_config.yml`{: .filepath} and make sure the `url` is configured correctly. Remember to change the `baseurl` to your project name that starts with a slash, e.g, `/project-name`.
|
53
35
|
|
54
|
-
|
36
|
+
Now you can choose _ONE_ of the following methods to deploy your Jekyll site.
|
55
37
|
|
56
|
-
|
57
|
-
<sub> —— Made with [contrib.rocks](https://contrib.rocks)</sub>
|
38
|
+
### Deploy by Using GitHub Actions
|
58
39
|
|
59
|
-
|
40
|
+
There are a few things to get ready for.
|
60
41
|
|
61
|
-
|
42
|
+
- If you're on the GitHub Free plan, keep your site repository public.
|
43
|
+
- If you have committed `Gemfile.lock`{: .filepath} to the repository, and your local machine is not running Linux, go to the root of your site and update the platform list of the lock-file:
|
44
|
+
|
45
|
+
```console
|
46
|
+
$ bundle lock --add-platform x86_64-linux
|
47
|
+
```
|
48
|
+
|
49
|
+
Next, configure the _Pages_ service.
|
50
|
+
|
51
|
+
1. Browse to your repository on GitHub. Select the tab _Settings_, then click _Pages_ in the left navigation bar. Then, in the **Source** section (under _Build and deployment_), select [**GitHub Actions**][pages-workflow-src] from the dropdown menu.
|
52
|
+
|
53
|
+
2. Push any commits to GitHub to trigger the _Actions_ workflow. In the _Actions_ tab of your repository, you should see the workflow _Build and Deploy_ running. Once the build is complete and successful, the site will be deployed automatically.
|
54
|
+
|
55
|
+
At this point, you can go to the URL indicated by GitHub to access your site.
|
56
|
+
|
57
|
+
### Manually Build and Deploy
|
58
|
+
|
59
|
+
On self-hosted servers, you cannot enjoy the convenience of **GitHub Actions**. Therefore, you should build the site on your local machine and then upload the site files to the server.
|
60
|
+
|
61
|
+
Go to the root of the source project, and build your site as follows:
|
62
|
+
|
63
|
+
```console
|
64
|
+
$ JEKYLL_ENV=production bundle exec jekyll b
|
65
|
+
```
|
66
|
+
|
67
|
+
Unless you specified the output path, the generated site files will be placed in folder `_site`{: .filepath} of the project's root directory. Now you should upload those files to the target server.
|
68
|
+
|
69
|
+
## Configuration
|
70
|
+
|
71
|
+
[This blog](https://jo-cruise.github.io/2024-02-06-HowToUseUPE) will guide you to complete relative configuration.
|
62
72
|
|
63
|
-
The avatar and favicon for the project's website are from [ClipartMAX][clipartmax].
|
64
73
|
|
65
74
|
## License
|
66
75
|
|
67
|
-
This
|
76
|
+
This work is published under [MIT][mit] License.
|
68
77
|
|
69
78
|
[gem]: https://rubygems.org/gems/jekyll-theme-chirpy
|
70
|
-
[
|
71
|
-
[
|
72
|
-
[
|
73
|
-
[
|
74
|
-
[
|
75
|
-
[demo]: https://cotes2020.github.io/chirpy-demo/
|
76
|
-
[wiki]: https://github.com/cotes2020/jekyll-theme-chirpy/wiki
|
77
|
-
[contribute-guide]: https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/docs/CONTRIBUTING.md
|
78
|
-
[contributors]: https://github.com/cotes2020/jekyll-theme-chirpy/graphs/contributors
|
79
|
-
[lib]: https://github.com/cotes2020/chirpy-static-assets
|
80
|
-
[vscode]: https://code.visualstudio.com/
|
81
|
-
[jetbrains]: https://www.jetbrains.com/?from=jekyll-theme-chirpy
|
79
|
+
[chirpy]: https://github.com/cotes2020/jekyll-theme-chirpy/
|
80
|
+
[use-template]: https://github.com/cotes2020/chirpy-starter/generate
|
81
|
+
[CD]: https://en.wikipedia.org/wiki/Continuous_deployment
|
82
|
+
[mit]: https://github.com/cotes2020/chirpy-starter/blob/master/LICENSE
|
83
|
+
[https://github.com/Jo-CRuiSe/unpublished-posts-enhancement]: UnpublishedPostsEnhancementforChirpyTheme
|
data/_data/locales/en.yml
CHANGED
@@ -11,7 +11,6 @@ layout:
|
|
11
11
|
tabs:
|
12
12
|
# format: <filename_without_extension>: <value>
|
13
13
|
home: Home
|
14
|
-
gallery: Gallery
|
15
14
|
categories: Categories
|
16
15
|
tags: Tags
|
17
16
|
archives: Archives
|
@@ -82,15 +81,35 @@ categories:
|
|
82
81
|
login:
|
83
82
|
username: Username
|
84
83
|
password: Password
|
84
|
+
enter_username: Please enter your username
|
85
|
+
enter_password: Please enter your password
|
85
86
|
login: Login
|
87
|
+
login_fail: Login failed!
|
88
|
+
enter_vaild_email: Please enter valid email address!
|
89
|
+
waiting_for_verification: Registration successful, waiting for email verification. Message has been sent!
|
86
90
|
register: Register
|
91
|
+
register_fail: Register failed!
|
92
|
+
email_not_verified: The current user's email has not been verified and cannot be logged in temporarily.
|
87
93
|
logout: Logout
|
88
94
|
forgot: Forgot
|
89
|
-
forgot_prompt: Enter
|
95
|
+
forgot_prompt: Enter your registered email address
|
90
96
|
forgot_password: Forgot Password?
|
97
|
+
go_to_login: Go to Login
|
91
98
|
go_to_register: Go to Register
|
92
99
|
new_username: New Username
|
93
100
|
new_password: New Password
|
94
101
|
email: Email(MUST)
|
102
|
+
reset_password_success: Password reset email has been sent!
|
103
|
+
email_missing: Please enter your email address.
|
95
104
|
confirm: Confirm
|
96
105
|
|
106
|
+
# sidebar
|
107
|
+
sidebar:
|
108
|
+
new_avatar: Please provide the URL of the new avatar
|
109
|
+
new_nickname: Please enter your new nickname
|
110
|
+
optional: Optioinal
|
111
|
+
invalid_url: Invalid URL
|
112
|
+
submit: Submit
|
113
|
+
cancel: Cancel
|
114
|
+
save_success: Save Successfully!
|
115
|
+
|
data/_data/locales/ko-KR.yml
CHANGED
@@ -80,15 +80,35 @@ categories:
|
|
80
80
|
# login and forgot page
|
81
81
|
login:
|
82
82
|
username: 사용자 이름
|
83
|
-
password:
|
83
|
+
password: 비밀번호
|
84
|
+
enter_username: 사용자 이름을 입력하세요
|
85
|
+
enter_password: 비밀번호를 입력해주세요
|
84
86
|
login: 로그인
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
87
|
+
login_fail: 로그인 실패!
|
88
|
+
enter_vaild_email: 유효한 이메일 주소를 입력해주세요!
|
89
|
+
waiting_for_verification: 등록이 완료되었습니다. 이메일 확인을 기다리는 중입니다. 메시지가 전송되었습니다!
|
90
|
+
register: 등록하다
|
91
|
+
register_fail: 등록 실패!
|
92
|
+
email_not_verified: 현재 사용자의 이메일은 인증되지 않아 일시적으로 로그인이 불가능합니다.
|
93
|
+
logout: 로그 아웃
|
94
|
+
forgot: 암호를 재설정
|
95
|
+
forgot_prompt: 등록된 이메일 주소를 입력하세요
|
96
|
+
forgot_password: 비밀번호를 잊으 셨나요?
|
97
|
+
go_to_login: 로그인으로 이동
|
98
|
+
go_to_register: 등록하러 가기
|
91
99
|
new_username: 새 사용자 이름
|
92
100
|
new_password: 새 비밀번호
|
93
|
-
email: 이메일
|
94
|
-
|
101
|
+
email: 이메일(필수)
|
102
|
+
reset_password_success: 비밀번호 재설정 메일이 발송되었습니다!
|
103
|
+
email_missing: 당신의 이메일 주소를 입력하십시오.
|
104
|
+
confirm: 확신하는
|
105
|
+
|
106
|
+
# sidebar
|
107
|
+
sidebar:
|
108
|
+
new_avatar: 새 아바타의 URL을 제공해 주세요.
|
109
|
+
new_nickname: 새로운 닉네임을 입력해주세요
|
110
|
+
optional: 선택 과목
|
111
|
+
invalid_url: 잘못된 URL
|
112
|
+
submit: 제출하다
|
113
|
+
cancel: 취소
|
114
|
+
save_success: 성공적으로 저장되었습니다!
|
data/_data/locales/zh-CN.yml
CHANGED
@@ -11,7 +11,6 @@ layout:
|
|
11
11
|
tabs:
|
12
12
|
# format: <filename_without_extension>: <value>
|
13
13
|
home: 首页
|
14
|
-
gallery: 画廊
|
15
14
|
categories: 分类
|
16
15
|
tags: 标签
|
17
16
|
archives: 归档
|
@@ -81,14 +80,34 @@ categories:
|
|
81
80
|
login:
|
82
81
|
username: 用户名
|
83
82
|
password: 密码
|
83
|
+
enter_username: 请输入您的用户名
|
84
|
+
enter_password: 请输入您的密码
|
84
85
|
login: 登录
|
86
|
+
login_fail: 登录失败!
|
87
|
+
enter_vaild_email: 请输入有效的邮箱地址!
|
88
|
+
waiting_for_verification: 注册成功,等待验证邮箱。邮件已发送!
|
85
89
|
register: 注册
|
90
|
+
register_fail: 注册失败!
|
91
|
+
email_not_verified: 当前用户邮箱未通过验证,暂时无法登录
|
86
92
|
logout: 登出
|
87
|
-
forgot:
|
93
|
+
forgot: 重置密码
|
88
94
|
forgot_prompt: 输入您注册时的邮箱
|
89
95
|
forgot_password: 忘记密码?
|
96
|
+
go_to_login: 去登录
|
90
97
|
go_to_register: 去注册
|
91
98
|
new_username: 新用户名
|
92
99
|
new_password: 新密码
|
93
100
|
email: 邮箱(必填)
|
94
|
-
|
101
|
+
reset_password_success: 密码重置电子邮件已发送!
|
102
|
+
email_missing: 请输入您的电子邮件地址。
|
103
|
+
confirm: 确定
|
104
|
+
|
105
|
+
# sidebar
|
106
|
+
sidebar:
|
107
|
+
new_avatar: 请提供新头像的网址
|
108
|
+
new_nickname: 请输入您的新昵称
|
109
|
+
optional: 选填
|
110
|
+
invalid_url: 非法URL!
|
111
|
+
submit: 提交
|
112
|
+
cancel: 取消
|
113
|
+
save_success: 保存成功!
|
data/_data/locales/zh-TW.yml
CHANGED
@@ -86,14 +86,35 @@ categories:
|
|
86
86
|
login:
|
87
87
|
username: 用戶名
|
88
88
|
password: 密碼
|
89
|
+
enter_username: 請輸入您的用戶名
|
90
|
+
enter_password: 請輸入您的密碼
|
89
91
|
login: 登入
|
90
|
-
|
92
|
+
login_fail: 登入失敗!
|
93
|
+
enter_vaild_email: 請輸入有效的電子郵件地址!
|
94
|
+
waiting_for_verification: 註冊成功,等待郵件驗證。 消息已發送!
|
95
|
+
register: 註冊
|
96
|
+
register_fail: 註冊失敗!
|
97
|
+
email_not_verified: 目前使用者的郵箱尚未驗證,暫時無法登入。
|
91
98
|
logout: 登出
|
92
|
-
forgot:
|
93
|
-
forgot_prompt:
|
99
|
+
forgot: 重設密碼
|
100
|
+
forgot_prompt: 輸入您註冊的電子郵件地址
|
94
101
|
forgot_password: 忘記密碼?
|
95
|
-
|
102
|
+
go_to_login: 前往登入
|
103
|
+
go_to_register: 前往註冊
|
96
104
|
new_username: 新用戶名
|
97
105
|
new_password: 新密碼
|
98
|
-
email:
|
99
|
-
|
106
|
+
email: 電子郵件(必須)
|
107
|
+
reset_password_success: 密碼重設電子郵件已發送!
|
108
|
+
email_missing: 請輸入您的電子郵件地址。
|
109
|
+
confirm: 確認
|
110
|
+
|
111
|
+
# sidebar
|
112
|
+
sidebar:
|
113
|
+
new_avatar: 請提供新頭像的網址
|
114
|
+
new_nickname: 請輸入您的新暱稱
|
115
|
+
optional: 選填
|
116
|
+
invalid_url: 無效的網址
|
117
|
+
submit: 提交
|
118
|
+
cancel: 取消
|
119
|
+
save_success: 保存成功!
|
120
|
+
|
data/_data/origin/cors.yml
CHANGED
@@ -8,8 +8,6 @@ cdns:
|
|
8
8
|
- url: https://fonts.googleapis.com
|
9
9
|
# jsDelivr CDN
|
10
10
|
- url: https://cdn.jsdelivr.net
|
11
|
-
# polyfill.io for math
|
12
|
-
- url: https://polyfill.io
|
13
11
|
|
14
12
|
# fonts
|
15
13
|
|
@@ -35,7 +33,7 @@ search:
|
|
35
33
|
js: https://cdn.jsdelivr.net/npm/simple-jekyll-search@1.10.0/dest/simple-jekyll-search.min.js
|
36
34
|
|
37
35
|
mermaid:
|
38
|
-
js: https://cdn.jsdelivr.net/npm/mermaid@10.
|
36
|
+
js: https://cdn.jsdelivr.net/npm/mermaid@10.6.1/dist/mermaid.min.js
|
39
37
|
|
40
38
|
dayjs:
|
41
39
|
js:
|
data/_layouts/compress.html
CHANGED
@@ -8,3 +8,4 @@
|
|
8
8
|
|
9
9
|
{% capture _LINE_FEED %}
|
10
10
|
{% endcapture %}{% if site.compress_html.ignore.envs contains jekyll.environment or site.compress_html.ignore.envs == "all" %}{{ content }}{% else %}{% capture _content %}{{ content }}{% endcapture %}{% assign _profile = site.compress_html.profile %}{% if site.compress_html.endings == "all" %}{% assign _endings = "html head body li dt dd optgroup option colgroup caption thead tbody tfoot tr td th" | split: " " %}{% else %}{% assign _endings = site.compress_html.endings %}{% endif %}{% for _element in _endings %}{% capture _end %}</{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _end %}{% endfor %}{% if _profile and _endings %}{% assign _profile_endings = _content | size | plus: 1 %}{% endif %}{% for _element in site.compress_html.startings %}{% capture _start %}<{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _start %}{% endfor %}{% if _profile and site.compress_html.startings %}{% assign _profile_startings = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.comments == "all" %}{% assign _comments = "<!-- -->" | split: " " %}{% else %}{% assign _comments = site.compress_html.comments %}{% endif %}{% if _comments.size == 2 %}{% capture _comment_befores %}.{{ _content }}{% endcapture %}{% assign _comment_befores = _comment_befores | split: _comments.first %}{% for _comment_before in _comment_befores %}{% if forloop.first %}{% continue %}{% endif %}{% capture _comment_outside %}{% if _carry %}{{ _comments.first }}{% endif %}{{ _comment_before }}{% endcapture %}{% capture _comment %}{% unless _carry %}{{ _comments.first }}{% endunless %}{{ _comment_outside | split: _comments.last | first }}{% if _comment_outside contains _comments.last %}{{ _comments.last }}{% assign _carry = false %}{% else %}{% assign _carry = true %}{% endif %}{% endcapture %}{% assign _content = _content | remove_first: _comment %}{% endfor %}{% if _profile %}{% assign _profile_comments = _content | size | plus: 1 %}{% endif %}{% endif %}{% assign _pre_befores = _content | split: "<pre" %}{% assign _content = "" %}{% for _pre_before in _pre_befores %}{% assign _pres = _pre_before | split: "</pre>" %}{% assign _pres_after = "" %}{% if _pres.size != 0 %}{% if site.compress_html.blanklines %}{% assign _lines = _pres.last | split: _LINE_FEED %}{% capture _pres_after %}{% for _line in _lines %}{% assign _trimmed = _line | split: " " | join: " " %}{% if _trimmed != empty or forloop.last %}{% unless forloop.first %}{{ _LINE_FEED }}{% endunless %}{{ _line }}{% endif %}{% endfor %}{% endcapture %}{% else %}{% assign _pres_after = _pres.last | split: " " | join: " " %}{% endif %}{% endif %}{% capture _content %}{{ _content }}{% if _pre_before contains "</pre>" %}<pre{{ _pres.first }}</pre>{% endif %}{% unless _pre_before contains "</pre>" and _pres.size == 1 %}{{ _pres_after }}{% endunless %}{% endcapture %}{% endfor %}{% if _profile %}{% assign _profile_collapse = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.clippings == "all" %}{% assign _clippings = "html head title base link meta style body article section nav aside h1 h2 h3 h4 h5 h6 hgroup header footer address p hr blockquote ol ul li dl dt dd figure figcaption main div table caption colgroup col tbody thead tfoot tr td th" | split: " " %}{% else %}{% assign _clippings = site.compress_html.clippings %}{% endif %}{% for _element in _clippings %}{% assign _edges = " <e;<e; </e>;</e>;</e> ;</e>" | replace: "e", _element | split: ";" %}{% assign _content = _content | replace: _edges[0], _edges[1] | replace: _edges[2], _edges[3] | replace: _edges[4], _edges[5] %}{% endfor %}{% if _profile and _clippings %}{% assign _profile_clippings = _content | size | plus: 1 %}{% endif %}{{ _content }}{% if _profile %} <table id="compress_html_profile_{{ site.time | date: "%Y%m%d" }}" class="compress_html_profile"> <thead> <tr> <td>Step <td>Bytes <tbody> <tr> <td>raw <td>{{ content | size }}{% if _profile_endings %} <tr> <td>endings <td>{{ _profile_endings }}{% endif %}{% if _profile_startings %} <tr> <td>startings <td>{{ _profile_startings }}{% endif %}{% if _profile_comments %} <tr> <td>comments <td>{{ _profile_comments }}{% endif %}{% if _profile_collapse %} <tr> <td>collapse <td>{{ _profile_collapse }}{% endif %}{% if _profile_clippings %} <tr> <td>clippings <td>{{ _profile_clippings }}{% endif %} </table>{% endif %}{% endif %}
|
11
|
+
|
data/_layouts/default.html
CHANGED
@@ -15,8 +15,10 @@ layout: compress
|
|
15
15
|
<!-- `site.alt_lang` can specify a language different from the UI -->
|
16
16
|
<html lang="{{ site.alt_lang | default: site.lang }}" {{ prefer_mode }}>
|
17
17
|
{% include head.html %}
|
18
|
+
{% include mathjax_support.html %}
|
19
|
+
<body style="display: none;">
|
20
|
+
{% include loader.html %}
|
18
21
|
|
19
|
-
<body>
|
20
22
|
{% include sidebar.html lang=lang %}
|
21
23
|
|
22
24
|
<div id="main-wrapper" class="d-flex justify-content-center">
|
@@ -76,6 +78,8 @@ layout: compress
|
|
76
78
|
|
77
79
|
<!-- JavaScripts -->
|
78
80
|
|
81
|
+
{% include login-check.html %}
|
82
|
+
|
79
83
|
{% include js-selector.html %}
|
80
84
|
|
81
85
|
{% if page.mermaid %}
|
@@ -83,5 +87,7 @@ layout: compress
|
|
83
87
|
{% endif %}
|
84
88
|
|
85
89
|
{% include_cached search-loader.html %}
|
90
|
+
|
91
|
+
|
86
92
|
</body>
|
87
93
|
</html>
|
data/_sass/addon/commons.scss
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
/*
|
1
|
+
/*
|
2
|
+
The common styles
|
3
|
+
*/
|
2
4
|
|
3
5
|
html {
|
4
6
|
@media (prefers-color-scheme: light) {
|
@@ -105,6 +107,7 @@ blockquote {
|
|
105
107
|
text-rendering: auto;
|
106
108
|
-webkit-font-smoothing: antialiased;
|
107
109
|
}
|
110
|
+
|
108
111
|
}
|
109
112
|
|
110
113
|
@include prompt('tip', '\f0eb', 'regular');
|
@@ -144,10 +147,6 @@ footer {
|
|
144
147
|
}
|
145
148
|
}
|
146
149
|
|
147
|
-
em {
|
148
|
-
@extend %text-highlight;
|
149
|
-
}
|
150
|
-
|
151
150
|
p {
|
152
151
|
text-align: center;
|
153
152
|
margin-bottom: 0;
|
@@ -689,7 +688,7 @@ $btn-mb: 0.5rem;
|
|
689
688
|
top: 0;
|
690
689
|
left: 0;
|
691
690
|
height: 100%;
|
692
|
-
overflow-y: auto;
|
691
|
+
// overflow-y: auto;
|
693
692
|
width: $sidebar-width;
|
694
693
|
z-index: 99;
|
695
694
|
background: var(--sidebar-bg);
|
@@ -27,12 +27,10 @@
|
|
27
27
|
--checkbox-color: rgb(118, 120, 121);
|
28
28
|
--checkbox-checked-color: var(--link-color);
|
29
29
|
--img-bg: radial-gradient(circle, rgb(22, 22, 24) 0%, rgb(32, 32, 32) 100%);
|
30
|
-
--shimmer-bg: linear-gradient(
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
rgba(255, 255, 255, 0) 100%
|
35
|
-
);
|
30
|
+
--shimmer-bg: linear-gradient(90deg,
|
31
|
+
rgba(255, 255, 255, 0) 0%,
|
32
|
+
rgba(58, 55, 55, 0.4) 50%,
|
33
|
+
rgba(255, 255, 255, 0) 100%);
|
36
34
|
|
37
35
|
/* Sidebar */
|
38
36
|
--site-title-color: #717070;
|
@@ -61,8 +59,10 @@
|
|
61
59
|
/* Posts */
|
62
60
|
--toc-highlight: rgb(116, 178, 243);
|
63
61
|
--tag-hover: rgb(43, 56, 62);
|
64
|
-
--tb-odd-bg: #252526;
|
65
|
-
|
62
|
+
--tb-odd-bg: #252526;
|
63
|
+
/* odd rows of the posts' table */
|
64
|
+
--tb-even-bg: rgb(31, 31, 34);
|
65
|
+
/* even rows of the posts' table */
|
66
66
|
--tb-border-color: var(--tb-odd-bg);
|
67
67
|
--footnote-target-bg: rgb(63, 81, 181);
|
68
68
|
--btn-share-color: #6c757d;
|
@@ -100,6 +100,13 @@
|
|
100
100
|
--timeline-color: rgb(63, 65, 68);
|
101
101
|
--timeline-year-dot-color: var(--timeline-color);
|
102
102
|
|
103
|
+
/* Gallery */
|
104
|
+
--gallery-card-bg: rgba(31, 31, 31, 0.8);
|
105
|
+
--gallery-card-border-top: rgba(255, 255, 255, 0.2);
|
106
|
+
--gallery-card-border-right: rgba(255, 255, 255, 0.2);
|
107
|
+
--gallery-card-border-bottom: rgba(255, 255, 255, 0.1);
|
108
|
+
--gallery-card-border-left: rgba(255, 255, 255, 0.1);
|
109
|
+
|
103
110
|
.light {
|
104
111
|
display: none;
|
105
112
|
}
|
@@ -132,14 +139,12 @@
|
|
132
139
|
}
|
133
140
|
|
134
141
|
#archives li:nth-child(odd) {
|
135
|
-
background-image: linear-gradient(
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
rgb(26, 26, 30)
|
142
|
-
);
|
142
|
+
background-image: linear-gradient(to left,
|
143
|
+
rgb(26, 26, 30),
|
144
|
+
rgb(39, 39, 45),
|
145
|
+
rgb(39, 39, 45),
|
146
|
+
rgb(39, 39, 45),
|
147
|
+
rgb(26, 26, 30));
|
143
148
|
}
|
144
149
|
|
145
150
|
color-scheme: dark;
|
@@ -148,4 +153,6 @@
|
|
148
153
|
#disqus_thread {
|
149
154
|
color-scheme: none;
|
150
155
|
}
|
151
|
-
}
|
156
|
+
}
|
157
|
+
|
158
|
+
/* dark-scheme */
|
@@ -109,4 +109,11 @@
|
|
109
109
|
--timeline-color: rgba(0, 0, 0, 0.075);
|
110
110
|
--timeline-node-bg: #c2c6cc;
|
111
111
|
--timeline-year-dot-color: #ffffff;
|
112
|
+
|
113
|
+
/* Gallery */
|
114
|
+
--gallery-card-bg: rgba(224, 224, 224, 0.6);
|
115
|
+
--gallery-card-border-top: rgba(255, 255, 255, 0.5);
|
116
|
+
--gallery-card-border-right: rgba(255, 255, 255, 0.5);
|
117
|
+
--gallery-card-border-bottom: rgba(255, 255, 255, 0.3);
|
118
|
+
--gallery-card-border-left: rgba(255, 255, 255, 0.3);
|
112
119
|
} /* light-scheme */
|
data/_sass/layout/post.scss
CHANGED
data/_sass/main.scss
CHANGED
data/assets/.DS_Store
ADDED
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
if ('serviceWorker' in navigator) { const isEnabled = 'true' === 'true'; if (isEnabled) { const swUrl = '/sw.min.js'; const $notification = $('#notification'); const $btnRefresh = $('#notification .toast-body>button'); navigator.serviceWorker.register(swUrl).then((registration) => { if (registration.waiting) { $notification.toast('show'); } registration.addEventListener('updatefound', () => { registration.installing.addEventListener('statechange', () => { if (registration.waiting) { if (navigator.serviceWorker.controller) { $notification.toast('show'); } } }); }); $btnRefresh.on('click', () => { if (registration.waiting) { registration.waiting.postMessage('SKIP_WAITING'); } $notification.toast('hide'); }); }); let refreshing = false; navigator.serviceWorker.addEventListener('controllerchange', () => { if (!refreshing) { window.location.reload(); refreshing = true; } }); } else { navigator.serviceWorker.getRegistrations().then(function (registrations) { for (let registration of registrations) { registration.unregister(); } }); } }
|
@@ -0,0 +1,4 @@
|
|
1
|
+
/*!
|
2
|
+
* Chirpy v6.5.0 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
|
3
|
+
*/
|
4
|
+
!function(){"use strict";const o=$(".mode-toggle");function t(o){var t=function(o,t){if("object"!=typeof o||!o)return o;var s=o[Symbol.toPrimitive];if(void 0!==s){var e=s.call(o,t||"default");if("object"!=typeof e)return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(o)}(o,"string");return"symbol"==typeof t?t:String(t)}function s(o,s,e){return(s=t(s))in o?Object.defineProperty(o,s,{value:e,enumerable:!0,configurable:!0,writable:!0}):o[s]=e,o}const e=$("body"),a="sidebar-display";class r{static toggle(){!1===r.isExpanded?e.attr(a,""):e.removeAttr(a),r.isExpanded=!r.isExpanded}}s(r,"isExpanded",!1);const l=$("#sidebar-trigger"),n=$("#search-trigger"),i=$("#search-cancel"),c=$("#main-wrapper>.container>.row"),f=$("#topbar-title"),d=$("search"),u=$("#search-result-wrapper"),p=$("#search-results"),b=$("#search-input"),g=$("#search-hints"),m=$("html,body"),C="loaded",v="unloaded",h="input-focus",w="d-flex";class y{static on(){y.offset=window.scrollY,m.scrollTop(0)}static off(){m.scrollTop(y.offset)}}s(y,"offset",0),s(y,"resultVisible",!1);class k{static on(){l.addClass(v),f.addClass(v),n.addClass(v),d.addClass(w),i.addClass(C)}static off(){i.removeClass(C),d.removeClass(w),l.removeClass(v),f.removeClass(v),n.removeClass(v)}}class T{static on(){y.resultVisible||(y.on(),u.removeClass(v),c.addClass(v),y.resultVisible=!0)}static off(){y.resultVisible&&(p.empty(),g.hasClass(v)&&g.removeClass(v),u.addClass(v),c.removeClass(v),y.off(),b.val(""),y.resultVisible=!1)}}function x(){return i.hasClass(C)}const E=$(".collapse");$(".code-header>button").children().attr("class"),function(){const o=$(window),t=$("#back-to-top");o.on("scroll",(()=>{o.scrollTop()>50?t.fadeIn():t.fadeOut()})),t.on("click",(()=>{o.scrollTop(0)}))}(),[...document.querySelectorAll('[data-bs-toggle="tooltip"]')].map((o=>new bootstrap.Tooltip(o))),0!==o.length&&o.off().on("click",(o=>{const t=$(o.target);let s=t.prop("tagName")==="button".toUpperCase()?t:t.parent();modeToggle.flipMode(),s.trigger("blur")})),$("#sidebar-trigger").on("click",r.toggle),$("#mask").on("click",r.toggle),n.on("click",(function(){k.on(),T.on(),b.trigger("focus")})),i.on("click",(function(){k.off(),T.off()})),b.on("focus",(function(){d.addClass(h)})),b.on("focusout",(function(){d.removeClass(h)})),b.on("input",(()=>{""===b.val()?x()?g.removeClass(v):T.off():(T.on(),x()&&g.addClass(v))})),E.on("hide.bs.collapse",(function(){const o="h_"+$(this).attr("id").substring(2);o&&($("#".concat(o," .far.fa-folder-open")).attr("class","far fa-folder fa-fw"),$("#".concat(o," i.fas")).addClass("rotate"),$("#".concat(o)).removeClass("hide-border-bottom"))})),E.on("show.bs.collapse",(function(){const o="h_"+$(this).attr("id").substring(2);o&&($("#".concat(o," .far.fa-folder")).attr("class","far fa-folder-open fa-fw"),$("#".concat(o," i.fas")).removeClass("rotate"),$("#".concat(o)).addClass("hide-border-bottom"))}))}();
|
@@ -0,0 +1,4 @@
|
|
1
|
+
/*!
|
2
|
+
* Chirpy v6.5.0 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
|
3
|
+
*/
|
4
|
+
!function(){"use strict";const e=$(".mode-toggle");function s(e){var s=function(e,s){if("object"!=typeof e||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var t=o.call(e,s||"default");if("object"!=typeof t)return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===s?String:Number)(e)}(e,"string");return"symbol"==typeof s?s:String(s)}function o(e,o,t){return(o=s(o))in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}const t=$("body"),r="sidebar-display";class a{static toggle(){!1===a.isExpanded?t.attr(r,""):t.removeAttr(r),a.isExpanded=!a.isExpanded}}o(a,"isExpanded",!1);const l=$("#sidebar-trigger"),i=$("#search-trigger"),n=$("#search-cancel"),c=$("#main-wrapper>.container>.row"),d=$("#topbar-title"),f=$("search"),u=$("#search-result-wrapper"),p=$("#search-results"),g=$("#search-input"),m=$("#search-hints"),b=$("html,body"),v="loaded",C="unloaded",h="input-focus",y="d-flex";class w{static on(){w.offset=window.scrollY,b.scrollTop(0)}static off(){b.scrollTop(w.offset)}}o(w,"offset",0),o(w,"resultVisible",!1);class k{static on(){l.addClass(C),d.addClass(C),i.addClass(C),f.addClass(y),n.addClass(v)}static off(){n.removeClass(v),f.removeClass(y),l.removeClass(C),d.removeClass(C),i.removeClass(C)}}class T{static on(){w.resultVisible||(w.on(),u.removeClass(C),c.addClass(C),w.resultVisible=!0)}static off(){w.resultVisible&&(p.empty(),m.hasClass(C)&&m.removeClass(C),u.addClass(C),c.removeClass(C),w.off(),g.val(""),w.resultVisible=!1)}}function x(){return n.hasClass(v)}!function(){const e=$(window),s=$("#back-to-top");e.on("scroll",(()=>{e.scrollTop()>50?s.fadeIn():s.fadeOut()})),s.on("click",(()=>{e.scrollTop(0)}))}(),[...document.querySelectorAll('[data-bs-toggle="tooltip"]')].map((e=>new bootstrap.Tooltip(e))),0!==e.length&&e.off().on("click",(e=>{const s=$(e.target);let o=s.prop("tagName")==="button".toUpperCase()?s:s.parent();modeToggle.flipMode(),o.trigger("blur")})),$("#sidebar-trigger").on("click",a.toggle),$("#mask").on("click",a.toggle),i.on("click",(function(){k.on(),T.on(),g.trigger("focus")})),n.on("click",(function(){k.off(),T.off()})),g.on("focus",(function(){f.addClass(h)})),g.on("focusout",(function(){f.removeClass(h)})),g.on("input",(()=>{""===g.val()?x()?m.removeClass(C):T.off():(T.on(),x()&&m.addClass(C))}))}();
|
@@ -0,0 +1,4 @@
|
|
1
|
+
/*!
|
2
|
+
* Chirpy v6.5.0 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
|
3
|
+
*/
|
4
|
+
!function(){"use strict";const t=$(".mode-toggle");function e(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var a=t[Symbol.toPrimitive];if(void 0!==a){var s=a.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}function a(t,a,s){return(a=e(a))in t?Object.defineProperty(t,a,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[a]=s,t}const s=$("body"),o="sidebar-display";class r{static toggle(){!1===r.isExpanded?s.attr(o,""):s.removeAttr(o),r.isExpanded=!r.isExpanded}}a(r,"isExpanded",!1);const i=$("#sidebar-trigger"),l=$("#search-trigger"),n=$("#search-cancel"),c=$("#main-wrapper>.container>.row"),d=$("#topbar-title"),u=$("search"),m=$("#search-result-wrapper"),f=$("#search-results"),p=$("#search-input"),g=$("#search-hints"),h=$("html,body"),b="loaded",v="unloaded",C="input-focus",y="d-flex";class w{static on(){w.offset=window.scrollY,h.scrollTop(0)}static off(){h.scrollTop(w.offset)}}a(w,"offset",0),a(w,"resultVisible",!1);class T{static on(){i.addClass(v),d.addClass(v),l.addClass(v),u.addClass(y),n.addClass(b)}static off(){n.removeClass(b),u.removeClass(y),i.removeClass(v),d.removeClass(v),l.removeClass(v)}}class k{static on(){w.resultVisible||(w.on(),m.removeClass(v),c.addClass(v),w.resultVisible=!0)}static off(){w.resultVisible&&(f.empty(),g.hasClass(v)&&g.removeClass(v),m.addClass(v),c.removeClass(v),w.off(),p.val(""),w.resultVisible=!1)}}function x(){return n.hasClass(b)}$(".collapse");$(".code-header>button").children().attr("class");const E="data-src",j="data-lqip",M={SHIMMER:"shimmer",BLUR:"blur"};function S(t){$(this).parent().removeClass(t)}function A(){this.complete&&(this.hasAttribute(j)?S.call(this,M.BLUR):S.call(this,M.SHIMMER))}function F(){const t=$(this),e=t.attr(E);t.attr("src",encodeURI(e)),t.removeAttr(E)}class R{static get attrTimestamp(){return"data-ts"}static get attrDateFormat(){return"data-df"}static get locale(){return $("html").attr("lang").substring(0,2)}static getTimestamp(t){return Number(t.attr(R.attrTimestamp))}static getDateFormat(t){return t.attr(R.attrDateFormat)}}!function(){const t=$(window),e=$("#back-to-top");t.on("scroll",(()=>{t.scrollTop()>50?e.fadeIn():e.fadeOut()})),e.on("click",(()=>{t.scrollTop(0)}))}(),[...document.querySelectorAll('[data-bs-toggle="tooltip"]')].map((t=>new bootstrap.Tooltip(t))),0!==t.length&&t.off().on("click",(t=>{const e=$(t.target);let a=e.prop("tagName")==="button".toUpperCase()?e:e.parent();modeToggle.flipMode(),a.trigger("blur")})),$("#sidebar-trigger").on("click",r.toggle),$("#mask").on("click",r.toggle),l.on("click",(function(){T.on(),k.on(),p.trigger("focus")})),n.on("click",(function(){T.off(),k.off()})),p.on("focus",(function(){u.addClass(C)})),p.on("focusout",(function(){u.removeClass(C)})),p.on("input",(()=>{""===p.val()?x()?g.removeClass(v):k.off():(k.on(),x()&&g.addClass(v))})),dayjs.locale(R.locale),dayjs.extend(window.dayjs_plugin_localizedFormat),$("[".concat(R.attrTimestamp,"]")).each((function(){const t=dayjs.unix(R.getTimestamp($(this))),e=t.format(R.getDateFormat($(this)));$(this).text(e),$(this).removeAttr(R.attrTimestamp),$(this).removeAttr(R.attrDateFormat);const a=$(this).attr("data-bs-toggle");if(void 0===a||"tooltip"!==a)return;const s=t.format("llll");$(this).attr("data-bs-title",s),new bootstrap.Tooltip($(this))})),function(){const t=$("article img");t.length&&t.on("load",A),$('article img[loading="lazy"]').each((function(){this.complete&&S.call(this,M.SHIMMER)}));const e=$("article img[".concat(j,'="true"]'));e.length&&e.each(F)}()}();
|
@@ -0,0 +1,4 @@
|
|
1
|
+
/*!
|
2
|
+
* Chirpy v6.5.0 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
|
3
|
+
*/
|
4
|
+
!function(){"use strict";const t=$(".mode-toggle");function e(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var a=t[Symbol.toPrimitive];if(void 0!==a){var s=a.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}function a(t,a,s){return(a=e(a))in t?Object.defineProperty(t,a,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[a]=s,t}const s=$("body"),o="sidebar-display";class r{static toggle(){!1===r.isExpanded?s.attr(o,""):s.removeAttr(o),r.isExpanded=!r.isExpanded}}a(r,"isExpanded",!1);const l=$("#sidebar-trigger"),i=$("#search-trigger"),n=$("#search-cancel"),c=$("#main-wrapper>.container>.row"),d=$("#topbar-title"),u=$("search"),f=$("#search-result-wrapper"),m=$("#search-results"),p=$("#search-input"),g=$("#search-hints"),b=$("html,body"),h="loaded",v="unloaded",C="input-focus",y="d-flex";class w{static on(){w.offset=window.scrollY,b.scrollTop(0)}static off(){b.scrollTop(w.offset)}}a(w,"offset",0),a(w,"resultVisible",!1);class T{static on(){l.addClass(v),d.addClass(v),i.addClass(v),u.addClass(y),n.addClass(h)}static off(){n.removeClass(h),u.removeClass(y),l.removeClass(v),d.removeClass(v),i.removeClass(v)}}class k{static on(){w.resultVisible||(w.on(),f.removeClass(v),c.addClass(v),w.resultVisible=!0)}static off(){w.resultVisible&&(m.empty(),g.hasClass(v)&&g.removeClass(v),f.addClass(v),c.removeClass(v),w.off(),p.val(""),w.resultVisible=!1)}}function x(){return n.hasClass(h)}$(".collapse");$(".code-header>button").children().attr("class");class j{static get attrTimestamp(){return"data-ts"}static get attrDateFormat(){return"data-df"}static get locale(){return $("html").attr("lang").substring(0,2)}static getTimestamp(t){return Number(t.attr(j.attrTimestamp))}static getDateFormat(t){return t.attr(j.attrDateFormat)}}!function(){const t=$(window),e=$("#back-to-top");t.on("scroll",(()=>{t.scrollTop()>50?e.fadeIn():e.fadeOut()})),e.on("click",(()=>{t.scrollTop(0)}))}(),[...document.querySelectorAll('[data-bs-toggle="tooltip"]')].map((t=>new bootstrap.Tooltip(t))),0!==t.length&&t.off().on("click",(t=>{const e=$(t.target);let a=e.prop("tagName")==="button".toUpperCase()?e:e.parent();modeToggle.flipMode(),a.trigger("blur")})),$("#sidebar-trigger").on("click",r.toggle),$("#mask").on("click",r.toggle),i.on("click",(function(){T.on(),k.on(),p.trigger("focus")})),n.on("click",(function(){T.off(),k.off()})),p.on("focus",(function(){u.addClass(C)})),p.on("focusout",(function(){u.removeClass(C)})),p.on("input",(()=>{""===p.val()?x()?g.removeClass(v):k.off():(k.on(),x()&&g.addClass(v))})),dayjs.locale(j.locale),dayjs.extend(window.dayjs_plugin_localizedFormat),$("[".concat(j.attrTimestamp,"]")).each((function(){const t=dayjs.unix(j.getTimestamp($(this))),e=t.format(j.getDateFormat($(this)));$(this).text(e),$(this).removeAttr(j.attrTimestamp),$(this).removeAttr(j.attrDateFormat);const a=$(this).attr("data-bs-toggle");if(void 0===a||"tooltip"!==a)return;const s=t.format("llll");$(this).attr("data-bs-title",s),new bootstrap.Tooltip($(this))}))}();
|
@@ -0,0 +1,4 @@
|
|
1
|
+
/*!
|
2
|
+
* Chirpy v6.5.0 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
|
3
|
+
*/
|
4
|
+
!function(){"use strict";const t=$(".mode-toggle");function e(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var s=o.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}function o(t,o,s){return(o=e(o))in t?Object.defineProperty(t,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[o]=s,t}const s=$("body"),n="sidebar-display";class a{static toggle(){!1===a.isExpanded?s.attr(n,""):s.removeAttr(n),a.isExpanded=!a.isExpanded}}o(a,"isExpanded",!1);const r=$("#sidebar-trigger"),i=$("#search-trigger"),l=$("#search-cancel"),c=$("#main-wrapper>.container>.row"),u=$("#topbar-title"),d=$("search"),f=$("#search-result-wrapper"),p=$("#search-results"),m=$("#search-input"),g=$("#search-hints"),h=$("html,body"),b="loaded",v="unloaded",C="input-focus",w="d-flex";class y{static on(){y.offset=window.scrollY,h.scrollTop(0)}static off(){h.scrollTop(y.offset)}}o(y,"offset",0),o(y,"resultVisible",!1);class k{static on(){r.addClass(v),u.addClass(v),i.addClass(v),d.addClass(w),l.addClass(b)}static off(){l.removeClass(b),d.removeClass(w),r.removeClass(v),u.removeClass(v),i.removeClass(v)}}class S{static on(){y.resultVisible||(y.on(),f.removeClass(v),c.addClass(v),y.resultVisible=!0)}static off(){y.resultVisible&&(p.empty(),g.hasClass(v)&&g.removeClass(v),f.addClass(v),c.removeClass(v),y.off(),m.val(""),y.resultVisible=!1)}}function T(){return l.hasClass(b)}$(".collapse");const E=".code-header>button",A="fas fa-check",x="timeout",M="data-title-succeed",R="data-bs-original-title",I=2e3;function V(t){if($(t)[0].hasAttribute(x)){let e=$(t).attr(x);if(Number(e)>Date.now())return!0}return!1}function q(t){$(t).attr(x,Date.now()+I)}function N(t){$(t).removeAttr(x)}const P=$(E).children().attr("class");const U="data-src",j="data-lqip",B={SHIMMER:"shimmer",BLUR:"blur"};function H(t){$(this).parent().removeClass(t)}function O(){this.complete&&(this.hasAttribute(j)?H.call(this,B.BLUR):H.call(this,B.SHIMMER))}function z(){const t=$(this),e=t.attr(U);t.attr("src",encodeURI(e)),t.removeAttr(U)}!function(){const t=$(window),e=$("#back-to-top");t.on("scroll",(()=>{t.scrollTop()>50?e.fadeIn():e.fadeOut()})),e.on("click",(()=>{t.scrollTop(0)}))}(),[...document.querySelectorAll('[data-bs-toggle="tooltip"]')].map((t=>new bootstrap.Tooltip(t))),0!==t.length&&t.off().on("click",(t=>{const e=$(t.target);let o=e.prop("tagName")==="button".toUpperCase()?e:e.parent();modeToggle.flipMode(),o.trigger("blur")})),$("#sidebar-trigger").on("click",a.toggle),$("#mask").on("click",a.toggle),i.on("click",(function(){k.on(),S.on(),m.trigger("focus")})),l.on("click",(function(){k.off(),S.off()})),m.on("focus",(function(){d.addClass(C)})),m.on("focusout",(function(){d.removeClass(C)})),m.on("input",(()=>{""===m.val()?T()?g.removeClass(v):S.off():(S.on(),T()&&g.addClass(v))})),function(){const t=$("article img");t.length&&t.on("load",O),$('article img[loading="lazy"]').each((function(){this.complete&&H.call(this,B.SHIMMER)}));const e=$("article img[".concat(j,'="true"]'));e.length&&e.each(z)}(),$(".popup")<=0||$(".popup").magnificPopup({type:"image",closeOnContentClick:!0,showCloseBtn:!1,zoom:{enabled:!0,duration:300,easing:"ease-in-out"}}),function(){if($(E).length){const t=new ClipboardJS(E,{target:t=>t.parentNode.nextElementSibling.querySelector("code .rouge-code")});[...document.querySelectorAll(E)].map((t=>new bootstrap.Tooltip(t,{placement:"left"}))),t.on("success",(t=>{t.clearSelection();const e=t.trigger;V(e)||(!function(t){$(t).children().attr("class",A)}(e),function(t){const e=$(t).attr(M);$(t).attr(R,e).tooltip("show")}(e),q(e),setTimeout((()=>{!function(t){$(t).tooltip("hide").removeAttr(R)}(e),function(t){$(t).children().attr("class",P)}(e),N(e)}),I))}))}const t=$("#copy-link");t.on("click",(t=>{let e=$(t.target);V(e)||navigator.clipboard.writeText(window.location.href).then((()=>{const t=e.attr(R),o=e.attr(M);e.attr(R,o).tooltip("show"),q(e),setTimeout((()=>{e.attr(R,t),N(e)}),I)}))})),t.on("mouseleave",(function(t){$(t.target).tooltip("hide")}))}()}();
|
@@ -0,0 +1,4 @@
|
|
1
|
+
/*!
|
2
|
+
* Chirpy v6.5.0 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
|
3
|
+
*/
|
4
|
+
!function(){"use strict";const t=$(".mode-toggle");function e(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var a=o.call(t,e||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}function o(t,o,a){return(o=e(o))in t?Object.defineProperty(t,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[o]=a,t}const a=$("body"),r="sidebar-display";class s{static toggle(){!1===s.isExpanded?a.attr(r,""):a.removeAttr(r),s.isExpanded=!s.isExpanded}}o(s,"isExpanded",!1);const i=$("#sidebar-trigger"),n=$("#search-trigger"),l=$("#search-cancel"),c=$("#main-wrapper>.container>.row"),u=$("#topbar-title"),d=$("search"),m=$("#search-result-wrapper"),f=$("#search-results"),p=$("#search-input"),g=$("#search-hints"),h=$("html,body"),b="loaded",v="unloaded",C="input-focus",w="d-flex";class y{static on(){y.offset=window.scrollY,h.scrollTop(0)}static off(){h.scrollTop(y.offset)}}o(y,"offset",0),o(y,"resultVisible",!1);class S{static on(){i.addClass(v),u.addClass(v),n.addClass(v),d.addClass(w),l.addClass(b)}static off(){l.removeClass(b),d.removeClass(w),i.removeClass(v),u.removeClass(v),n.removeClass(v)}}class T{static on(){y.resultVisible||(y.on(),m.removeClass(v),c.addClass(v),y.resultVisible=!0)}static off(){y.resultVisible&&(f.empty(),g.hasClass(v)&&g.removeClass(v),m.addClass(v),c.removeClass(v),y.off(),p.val(""),y.resultVisible=!1)}}function k(){return l.hasClass(b)}$(".collapse");const x=".code-header>button",A="fas fa-check",E="timeout",j="data-title-succeed",D="data-bs-original-title",M=2e3;function F(t){if($(t)[0].hasAttribute(E)){let e=$(t).attr(E);if(Number(e)>Date.now())return!0}return!1}function R(t){$(t).attr(E,Date.now()+M)}function q(t){$(t).removeAttr(E)}const I=$(x).children().attr("class");const N="data-src",V="data-lqip",P={SHIMMER:"shimmer",BLUR:"blur"};function U(t){$(this).parent().removeClass(t)}function z(){this.complete&&(this.hasAttribute(V)?U.call(this,P.BLUR):U.call(this,P.SHIMMER))}function B(){const t=$(this),e=t.attr(N);t.attr("src",encodeURI(e)),t.removeAttr(N)}class H{static get attrTimestamp(){return"data-ts"}static get attrDateFormat(){return"data-df"}static get locale(){return $("html").attr("lang").substring(0,2)}static getTimestamp(t){return Number(t.attr(H.attrTimestamp))}static getDateFormat(t){return t.attr(H.attrDateFormat)}}0!==t.length&&t.off().on("click",(t=>{const e=$(t.target);let o=e.prop("tagName")==="button".toUpperCase()?e:e.parent();modeToggle.flipMode(),o.trigger("blur")})),$("#sidebar-trigger").on("click",s.toggle),$("#mask").on("click",s.toggle),n.on("click",(function(){S.on(),T.on(),p.trigger("focus")})),l.on("click",(function(){S.off(),T.off()})),p.on("focus",(function(){d.addClass(C)})),p.on("focusout",(function(){d.removeClass(C)})),p.on("input",(()=>{""===p.val()?k()?g.removeClass(v):T.off():(T.on(),k()&&g.addClass(v))})),function(){const t=$("article img");t.length&&t.on("load",z),$('article img[loading="lazy"]').each((function(){this.complete&&U.call(this,P.SHIMMER)}));const e=$("article img[".concat(V,'="true"]'));e.length&&e.each(B)}(),$(".popup")<=0||$(".popup").magnificPopup({type:"image",closeOnContentClick:!0,showCloseBtn:!1,zoom:{enabled:!0,duration:300,easing:"ease-in-out"}}),dayjs.locale(H.locale),dayjs.extend(window.dayjs_plugin_localizedFormat),$("[".concat(H.attrTimestamp,"]")).each((function(){const t=dayjs.unix(H.getTimestamp($(this))),e=t.format(H.getDateFormat($(this)));$(this).text(e),$(this).removeAttr(H.attrTimestamp),$(this).removeAttr(H.attrDateFormat);const o=$(this).attr("data-bs-toggle");if(void 0===o||"tooltip"!==o)return;const a=t.format("llll");$(this).attr("data-bs-title",a),new bootstrap.Tooltip($(this))})),function(){if($(x).length){const t=new ClipboardJS(x,{target:t=>t.parentNode.nextElementSibling.querySelector("code .rouge-code")});[...document.querySelectorAll(x)].map((t=>new bootstrap.Tooltip(t,{placement:"left"}))),t.on("success",(t=>{t.clearSelection();const e=t.trigger;F(e)||(!function(t){$(t).children().attr("class",A)}(e),function(t){const e=$(t).attr(j);$(t).attr(D,e).tooltip("show")}(e),R(e),setTimeout((()=>{!function(t){$(t).tooltip("hide").removeAttr(D)}(e),function(t){$(t).children().attr("class",I)}(e),q(e)}),M))}))}const t=$("#copy-link");t.on("click",(t=>{let e=$(t.target);F(e)||navigator.clipboard.writeText(window.location.href).then((()=>{const t=e.attr(D),o=e.attr(j);e.attr(D,o).tooltip("show"),R(e),setTimeout((()=>{e.attr(D,t),q(e)}),M)}))})),t.on("mouseleave",(function(t){$(t.target).tooltip("hide")}))}(),document.querySelector("main h2, main h3")&&tocbot.init({tocSelector:"#toc",contentSelector:".content",ignoreSelector:"[data-toc-skip]",headingSelector:"h2, h3, h4",orderedList:!1,scrollSmooth:!1}),function(){const t=$(window),e=$("#back-to-top");t.on("scroll",(()=>{t.scrollTop()>50?e.fadeIn():e.fadeOut()})),e.on("click",(()=>{t.scrollTop(0)}))}(),[...document.querySelectorAll('[data-bs-toggle="tooltip"]')].map((t=>new bootstrap.Tooltip(t)))}();
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-chirpy-customized-upe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jo Cruise
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-02-
|
11
|
+
date: 2024-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -195,6 +195,7 @@ files:
|
|
195
195
|
- _sass/layout/tags.scss
|
196
196
|
- _sass/main.scss
|
197
197
|
- _sass/variables-hook.scss
|
198
|
+
- assets/.DS_Store
|
198
199
|
- assets/404.html
|
199
200
|
- assets/css/jekyll-theme-chirpy-customized-upe.scss
|
200
201
|
- assets/feed.xml
|
@@ -209,6 +210,13 @@ files:
|
|
209
210
|
- assets/img/favicons/site.webmanifest
|
210
211
|
- assets/js/data/search.json
|
211
212
|
- assets/js/data/swconf.js
|
213
|
+
- assets/js/dist/app.min.js
|
214
|
+
- assets/js/dist/categories.min.js
|
215
|
+
- assets/js/dist/commons.min.js
|
216
|
+
- assets/js/dist/home.min.js
|
217
|
+
- assets/js/dist/misc.min.js
|
218
|
+
- assets/js/dist/page.min.js
|
219
|
+
- assets/js/dist/post.min.js
|
212
220
|
- assets/js/pwa/app.js
|
213
221
|
- assets/js/pwa/sw.js
|
214
222
|
- assets/robots.txt
|