jekyll-theme-chirpy 3.3.2 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +9 -9
- data/_config.yml +8 -17
- data/_includes/css-selector.html +5 -0
- data/_includes/favicons.html +11 -26
- data/_includes/head.html +15 -22
- data/_includes/js-selector.html +10 -3
- data/_includes/refactor-content.html +0 -5
- data/_includes/topbar.html +1 -1
- data/_layouts/home.html +1 -1
- data/_layouts/post.html +1 -1
- data/_sass/addon/commons.scss +80 -56
- data/_sass/colors/light-syntax.scss +1 -1
- data/_sass/colors/light-typography.scss +1 -1
- data/_sass/jekyll-theme-chirpy.scss +1 -1
- data/_sass/layout/post.scss +4 -0
- data/{404.html → assets/404.html} +0 -0
- data/{feed.xml → assets/feed.xml} +2 -1
- data/assets/img/favicons/android-chrome-192x192.png +0 -0
- data/assets/img/favicons/android-chrome-512x512.png +0 -0
- data/assets/img/favicons/apple-touch-icon.png +0 -0
- data/assets/img/favicons/browserconfig.xml +3 -6
- data/assets/img/favicons/favicon-16x16.png +0 -0
- data/assets/img/favicons/favicon-32x32.png +0 -0
- data/assets/img/favicons/favicon.ico +0 -0
- data/assets/img/favicons/mstile-150x150.png +0 -0
- data/assets/img/favicons/site.webmanifest +26 -0
- data/assets/js/data/swcache.js +64 -0
- data/assets/js/dist/categories.min.js +2 -2
- data/assets/js/dist/commons.min.js +6 -0
- data/assets/js/dist/home.min.js +2 -2
- data/assets/js/dist/page.min.js +2 -2
- data/assets/js/dist/post.min.js +2 -2
- data/assets/js/dist/pvreport.min.js +2 -2
- data/{app.js → assets/js/pwa/app.js} +1 -0
- data/assets/js/pwa/sw.js +87 -0
- data/{robots.txt → assets/robots.txt} +1 -1
- metadata +14 -32
- data/_includes/lozad.html +0 -10
- 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/favicon-96x96.png +0 -0
- data/assets/img/favicons/manifest.json +0 -54
- 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 +0 -61
- data/sw.js +0 -60
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d184bb7ea0d85aab6518e6206da789d7ed52d8d69fa6b99d49143c5e64579791
|
|
4
|
+
data.tar.gz: b26a14744e2ffdd408da2ad694e9963de3fe2fded5993a8edba5769a65972236
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 83c977ab26d362130f78e03ba9d6ff2c80388a9d361e54f503a2036561ed93bfaf091f5bad787a467467d9fe298df675bcfbd8f50be87fae71ab6ba8c6b896c0
|
|
7
|
+
data.tar.gz: 2a82eaad1b0e2bf1eb168cdcb0b81a6f520f6ee4d953008ab82f1b3d40db1380ecc6bb2a5a067981780c2973bd562e6efe30a7eaed809ef66b9ea73c044c767d
|
data/README.md
CHANGED
|
@@ -69,7 +69,7 @@ Finally, copy the required files from the theme's gem (for detailed files, see [
|
|
|
69
69
|
> $ bundle info --path jekyll-theme-chirpy
|
|
70
70
|
> ```
|
|
71
71
|
|
|
72
|
-
Or you can [**use the starter template**][use-starter] to create a Jekyll site to save time copying files from theme's gem. We have prepared everything for you there!
|
|
72
|
+
Or you can [**use the starter template**][use-starter] to create a Jekyll site to save time copying files from the theme's gem. We have prepared everything for you there!
|
|
73
73
|
|
|
74
74
|
### Fork on GitHub
|
|
75
75
|
|
|
@@ -96,7 +96,7 @@ What it does is:
|
|
|
96
96
|
- files under `_posts`
|
|
97
97
|
- folder `docs`
|
|
98
98
|
|
|
99
|
-
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`.
|
|
99
|
+
2. If you use the `--no-gh` option, the directory `.github` will be deleted. Otherwise, setup the GitHub Action workflow by removing the extension `.hook` of `.github/workflows/pages-deploy.yml.hook`, and then remove the other files and directories in the folder `.github`.
|
|
100
100
|
|
|
101
101
|
3. Automatically create a commit to save the changes.
|
|
102
102
|
|
|
@@ -132,7 +132,7 @@ Open a browser and visit to _<http://localhost:4000>_.
|
|
|
132
132
|
|
|
133
133
|
### Deployment
|
|
134
134
|
|
|
135
|
-
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
|
|
135
|
+
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`.
|
|
136
136
|
|
|
137
137
|
Now you can choose ONE of the following methods to deploy your Jekyll site.
|
|
138
138
|
|
|
@@ -145,13 +145,13 @@ Quickly check the files needed for GitHub Actions build:
|
|
|
145
145
|
- Ensure your Jekyll site has the file `.github/workflows/pages-deploy.yml`. 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.
|
|
146
146
|
- Ensure your Jekyll site has file `tools/test.sh` and `tools/deploy.sh`. Otherwise, copy them from this repo to your Jekyll site.
|
|
147
147
|
|
|
148
|
-
And then rename your
|
|
148
|
+
And then rename your repository to `<GH-USERNAME>.github.io` on GitHub.
|
|
149
149
|
|
|
150
150
|
Now publish your Jekyll site by:
|
|
151
151
|
|
|
152
152
|
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.
|
|
153
153
|
|
|
154
|
-
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)
|
|
154
|
+
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) through _Settings_ → _Options_ → _GitHub Pages_:
|
|
155
155
|
|
|
156
156
|

|
|
157
157
|
|
|
@@ -181,7 +181,7 @@ Unless you specified the output path, the generated site files will be placed in
|
|
|
181
181
|
|
|
182
182
|
## Documentation
|
|
183
183
|
|
|
184
|
-
For more details and
|
|
184
|
+
For more details and a better reading experience, please check out the [tutorials on the 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).
|
|
185
185
|
|
|
186
186
|
## Contributing
|
|
187
187
|
|
|
@@ -189,11 +189,11 @@ The old saying, "Two heads are better than one." Consequently, welcome to report
|
|
|
189
189
|
|
|
190
190
|
## Credits
|
|
191
191
|
|
|
192
|
-
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).
|
|
192
|
+
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). The avatar and favicon design comes from [Clipart Max](https://www.clipartmax.com/middle/m2i8b1m2K9Z5m2K9_ant-clipart-childrens-ant-cute/).
|
|
193
193
|
|
|
194
|
-
: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.
|
|
194
|
+
: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.
|
|
195
195
|
|
|
196
|
-
|
|
196
|
+
Last but not least, thank [JetBrains][jb] for providing the open source license.
|
|
197
197
|
|
|
198
198
|
## Sponsoring
|
|
199
199
|
|
data/_config.yml
CHANGED
|
@@ -50,15 +50,11 @@ google_site_verification: google_meta_tag_verification # change to your verifica
|
|
|
50
50
|
# --------------------------
|
|
51
51
|
|
|
52
52
|
google_analytics:
|
|
53
|
-
id: ''
|
|
53
|
+
id: '' # fill in your Google Analytics ID
|
|
54
|
+
# Google Analytics pageviews report settings
|
|
54
55
|
pv:
|
|
55
|
-
#
|
|
56
|
-
#
|
|
57
|
-
enabled: false
|
|
58
|
-
# the next options only valid when `google_analytics.pv` is enabled.
|
|
59
|
-
proxy_url: ''
|
|
60
|
-
proxy_endpoint: ''
|
|
61
|
-
cache: false # pv data local cache, good for the users from GFW area.
|
|
56
|
+
proxy_endpoint: # fill in the Google Analytics superProxy endpoint of Google App Engine
|
|
57
|
+
cache_path: # the local PV cache data, friendly to visitors from GFW region
|
|
62
58
|
|
|
63
59
|
# Prefer color scheme setting.
|
|
64
60
|
#
|
|
@@ -105,10 +101,6 @@ kramdown:
|
|
|
105
101
|
line_numbers: true
|
|
106
102
|
start_line: 1
|
|
107
103
|
|
|
108
|
-
# DO NOT change this unless you're a Pro user on Jekyll and Web development,
|
|
109
|
-
# Or you think you're smart enough to change other relevant URLs within this template.
|
|
110
|
-
permalink: /posts/:title/
|
|
111
|
-
|
|
112
104
|
collections:
|
|
113
105
|
tabs:
|
|
114
106
|
output: true
|
|
@@ -124,6 +116,9 @@ defaults:
|
|
|
124
116
|
layout: post
|
|
125
117
|
comments: true # Enable comments in posts.
|
|
126
118
|
toc: true # Display TOC column in posts.
|
|
119
|
+
# DO NOT modify the following parameter unless you are confident enough
|
|
120
|
+
# to update the code of all other post links in this project.
|
|
121
|
+
permalink: /posts/:title/
|
|
127
122
|
-
|
|
128
123
|
scope:
|
|
129
124
|
path: _drafts
|
|
@@ -151,9 +146,6 @@ compress_html:
|
|
|
151
146
|
envs: [development]
|
|
152
147
|
|
|
153
148
|
exclude:
|
|
154
|
-
- vendor
|
|
155
|
-
- Gemfile
|
|
156
|
-
- Gemfile.lock
|
|
157
149
|
- '*.gem'
|
|
158
150
|
- '*.gemspec'
|
|
159
151
|
- tools
|
|
@@ -162,8 +154,7 @@ exclude:
|
|
|
162
154
|
- LICENSE
|
|
163
155
|
- gulpfile.js
|
|
164
156
|
- node_modules
|
|
165
|
-
-
|
|
166
|
-
- package-lock.json
|
|
157
|
+
- '*.json'
|
|
167
158
|
|
|
168
159
|
jekyll-archives:
|
|
169
160
|
enabled: [categories, tags]
|
data/_includes/css-selector.html
CHANGED
|
@@ -8,3 +8,8 @@
|
|
|
8
8
|
<link rel="stylesheet"
|
|
9
9
|
href="https://cdn.jsdelivr.net/gh/afeld/bootstrap-toc@1.0.1/dist/bootstrap-toc.min.css">
|
|
10
10
|
{% endif %}
|
|
11
|
+
|
|
12
|
+
{% if page.layout == 'page' or page.layout == 'post' %}
|
|
13
|
+
<!-- Manific Popup -->
|
|
14
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/magnific-popup@1.1.0/dist/magnific-popup.min.css">
|
|
15
|
+
{% endif %}
|
data/_includes/favicons.html
CHANGED
|
@@ -1,32 +1,17 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
The Favicons for Web, Android, Microsoft, and iOS (iPhone and iPad) Apps
|
|
3
|
-
Generated by: https://
|
|
3
|
+
Generated by: https://realfavicongenerator.net/
|
|
4
4
|
-->
|
|
5
5
|
|
|
6
|
-
{% capture
|
|
6
|
+
{% capture favicon_path %}{{ '/assets/img/favicons' | relative_url }}{% endcapture %}
|
|
7
7
|
|
|
8
|
-
<link rel="
|
|
9
|
-
<link rel="icon" href="{{
|
|
10
|
-
|
|
11
|
-
<link rel="
|
|
12
|
-
<link rel="
|
|
13
|
-
<
|
|
14
|
-
<
|
|
15
|
-
<
|
|
16
|
-
<
|
|
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">
|
|
8
|
+
<link rel="apple-touch-icon" sizes="180x180" href="{{ favicon_path }}/apple-touch-icon.png">
|
|
9
|
+
<link rel="icon" type="image/png" sizes="32x32" href="{{ favicon_path }}/favicon-32x32.png">
|
|
10
|
+
<link rel="icon" type="image/png" sizes="16x16" href="{{ favicon_path }}/favicon-16x16.png">
|
|
11
|
+
<link rel="manifest" href="{{ favicon_path }}/site.webmanifest">
|
|
12
|
+
<link rel="shortcut icon" href="{{ favicon_path }}/favicon.ico">
|
|
13
|
+
<meta name="apple-mobile-web-app-title" content="{{ site.title }}">
|
|
14
|
+
<meta name="application-name" content="{{ site.title }}">
|
|
15
|
+
<meta name="msapplication-TileColor" content="#da532c">
|
|
16
|
+
<meta name="msapplication-config" content="{{ favicon_path }}/browserconfig.xml">
|
|
32
17
|
<meta name="theme-color" content="#ffffff">
|
data/_includes/head.html
CHANGED
|
@@ -8,17 +8,12 @@
|
|
|
8
8
|
|
|
9
9
|
{% if page.layout == 'home' or page.layout == 'post' %}
|
|
10
10
|
|
|
11
|
-
{% if site.google_analytics.pv.
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
and site.google_analytics.pv.proxy_endpoint %}
|
|
15
|
-
<meta name="pv-proxy-endpoint" content="{{ site.google_analytics.pv.proxy_endpoint }}">
|
|
16
|
-
{% endif %}
|
|
17
|
-
|
|
18
|
-
{% if site.google_analytics.pv.cache %}
|
|
19
|
-
<meta name="pv-cache-path" content="{{ '/assets/js/data/pageviews.json' | relative_url }}">
|
|
20
|
-
{% endif %}
|
|
11
|
+
{% if site.google_analytics.pv.proxy_endpoint %}
|
|
12
|
+
<meta name="pv-proxy-endpoint" content="{{ site.google_analytics.pv.proxy_endpoint }}">
|
|
13
|
+
{% endif %}
|
|
21
14
|
|
|
15
|
+
{% if site.google_analytics.pv.cache_path %}
|
|
16
|
+
<meta name="pv-cache-path" content="{{ site.google_analytics.pv.cache_path | relative_url }}">
|
|
22
17
|
{% endif %}
|
|
23
18
|
|
|
24
19
|
{% endif %}
|
|
@@ -46,26 +41,24 @@
|
|
|
46
41
|
<link rel="preconnect" href="https://www.googletagmanager.com" crossorigin="anonymous">
|
|
47
42
|
<link rel="dns-prefetch" href="https://www.googletagmanager.com">
|
|
48
43
|
|
|
49
|
-
{% if site.google_analytics.pv.
|
|
50
|
-
|
|
51
|
-
|
|
44
|
+
{% if site.google_analytics.pv.proxy_endpoint %}
|
|
45
|
+
{% assign proxy_url = site.google_analytics.pv.proxy_endpoint
|
|
46
|
+
| replace: "https://", "" | split: "/" | first | prepend: "https://" %}
|
|
47
|
+
|
|
48
|
+
<link rel="preconnect" href="{{ proxy_url }}" crossorigin="use-credentials">
|
|
49
|
+
<link rel="dns-prefetch" href="{{ proxy_url }}">
|
|
52
50
|
{% endif %}
|
|
53
51
|
{% endif %}
|
|
54
52
|
|
|
55
53
|
<!-- jsDelivr CDN -->
|
|
56
|
-
<link rel="preconnect" href="cdn.jsdelivr.net">
|
|
57
|
-
<link rel="dns-prefetch" href="cdn.jsdelivr.net">
|
|
54
|
+
<link rel="preconnect" href="https://cdn.jsdelivr.net">
|
|
55
|
+
<link rel="dns-prefetch" href="https://cdn.jsdelivr.net">
|
|
58
56
|
|
|
59
57
|
<!-- Bootstrap -->
|
|
60
|
-
<link rel="stylesheet"
|
|
61
|
-
href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css"
|
|
62
|
-
integrity="sha256-LA89z+k9fjgMKQ/kq4OO2Mrf8VltYml/VES+Rg0fh20=" crossorigin="anonymous">
|
|
58
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css">
|
|
63
59
|
|
|
64
60
|
<!-- Font Awesome -->
|
|
65
|
-
<link rel="stylesheet"
|
|
66
|
-
href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.11.2/css/all.min.css"
|
|
67
|
-
integrity="sha256-+N4/V/SbAFiW1MPBCXnfnP9QSN3+Keu+NlB+0ev/YKQ="
|
|
68
|
-
crossorigin="anonymous">
|
|
61
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.11.2/css/all.min.css">
|
|
69
62
|
|
|
70
63
|
{% include css-selector.html %}
|
|
71
64
|
|
data/_includes/js-selector.html
CHANGED
|
@@ -3,19 +3,26 @@
|
|
|
3
3
|
-->
|
|
4
4
|
|
|
5
5
|
{% if page.layout == 'home' or page.layout == 'post' %}
|
|
6
|
-
{% if site.google_analytics.pv.
|
|
6
|
+
{% if site.google_analytics.pv.proxy_endpoint or site.google_analytics.pv.cache_path %}
|
|
7
7
|
<!-- pv-report needs countup.js -->
|
|
8
8
|
<script async src="https://cdn.jsdelivr.net/npm/countup.js@1.9.3/dist/countUp.min.js"></script>
|
|
9
9
|
<script async src="{{ '/assets/js/dist/pvreport.min.js' | relative_url }}"></script>
|
|
10
10
|
{% endif %}
|
|
11
11
|
{% endif %}
|
|
12
12
|
|
|
13
|
+
{% if page.layout == 'post' or page.layout == 'page' %}
|
|
14
|
+
<!-- image lazy-loading & popup -->
|
|
15
|
+
<script async
|
|
16
|
+
src="https://cdn.jsdelivr.net/combine/npm/lozad/dist/lozad.min.js,npm/magnific-popup@1/dist/jquery.magnific-popup.min.js"></script>
|
|
17
|
+
{% endif %}
|
|
18
|
+
|
|
13
19
|
{% if page.layout == 'home'
|
|
20
|
+
or page.layout == 'categories'
|
|
14
21
|
or page.layout == 'post'
|
|
15
|
-
or page.layout == '
|
|
22
|
+
or page.layout == 'page' %}
|
|
16
23
|
{% assign type = page.layout %}
|
|
17
24
|
{% else %}
|
|
18
|
-
{% assign type = "
|
|
25
|
+
{% assign type = "commons" %}
|
|
19
26
|
{% endif %}
|
|
20
27
|
|
|
21
28
|
{% assign js = type | prepend: '/assets/js/dist/' | append: '.min.js' %}
|
|
@@ -46,7 +46,6 @@
|
|
|
46
46
|
{% assign _content = _content | replace: '<img src="/', img_path_replacement %}
|
|
47
47
|
|
|
48
48
|
<!-- lazy-load images <https://github.com/ApoorvSaxena/lozad.js#usage> -->
|
|
49
|
-
{% assign lozad = true %}
|
|
50
49
|
{% assign img_placehodler
|
|
51
50
|
= 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7' %}
|
|
52
51
|
|
|
@@ -60,7 +59,3 @@
|
|
|
60
59
|
|
|
61
60
|
<!-- return -->
|
|
62
61
|
{{ _content }}
|
|
63
|
-
|
|
64
|
-
{% if lozad %}
|
|
65
|
-
{% include lozad.html %}
|
|
66
|
-
{% endif %}
|
data/_includes/topbar.html
CHANGED
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
<span id="search-wrapper" class="align-items-center">
|
|
61
61
|
<i class="fas fa-search fa-fw"></i>
|
|
62
62
|
<input class="form-control" id="search-input" type="search"
|
|
63
|
-
aria-label="search" placeholder="{{ site.data.label.search_hint | default: 'Search' }}...">
|
|
63
|
+
aria-label="search" autocomplete="off" placeholder="{{ site.data.label.search_hint | default: 'Search' }}...">
|
|
64
64
|
<i class="fa fa-times-circle fa-fw" id="search-cleaner"></i>
|
|
65
65
|
</span>
|
|
66
66
|
<span id="search-cancel" >Cancel</span>
|
data/_layouts/home.html
CHANGED
|
@@ -68,7 +68,7 @@ layout: page
|
|
|
68
68
|
{% include read-time.html content=post.content %}
|
|
69
69
|
|
|
70
70
|
<!-- page views -->
|
|
71
|
-
{% if site.google_analytics.pv.
|
|
71
|
+
{% if site.google_analytics.pv.proxy_endpoint or site.google_analytics.pv.cache_path %}
|
|
72
72
|
<i class="far fa-eye fa-fw"></i>
|
|
73
73
|
<span id="pv_{{-post.title-}}" class="pageviews">
|
|
74
74
|
<i class="fas fa-spinner fa-spin fa-fw"></i>
|
data/_layouts/post.html
CHANGED
|
@@ -33,7 +33,7 @@ layout: default
|
|
|
33
33
|
{% include read-time.html content=content %}
|
|
34
34
|
|
|
35
35
|
<!-- page views -->
|
|
36
|
-
{% if site.google_analytics.pv.
|
|
36
|
+
{% if site.google_analytics.pv.proxy_endpoint or site.google_analytics.pv.cache_path %}
|
|
37
37
|
<span id="pv" class="pageviews"><i class="fas fa-spinner fa-spin fa-fw"></i></span>
|
|
38
38
|
{% endif %}
|
|
39
39
|
|
data/_sass/addon/commons.scss
CHANGED
|
@@ -229,7 +229,7 @@ footer {
|
|
|
229
229
|
|
|
230
230
|
@extend %no-bottom-border;
|
|
231
231
|
|
|
232
|
-
color:
|
|
232
|
+
color: inherit;
|
|
233
233
|
}
|
|
234
234
|
|
|
235
235
|
}
|
|
@@ -357,6 +357,7 @@ footer {
|
|
|
357
357
|
}
|
|
358
358
|
|
|
359
359
|
.post-content {
|
|
360
|
+
font-size: 1.08rem;
|
|
360
361
|
line-height: 1.8;
|
|
361
362
|
margin-top: 2rem;
|
|
362
363
|
overflow-wrap: break-word;
|
|
@@ -364,37 +365,21 @@ footer {
|
|
|
364
365
|
|
|
365
366
|
img[data-src] {
|
|
366
367
|
margin: 0.5rem 0;
|
|
367
|
-
}
|
|
368
368
|
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
text-align: center;
|
|
373
|
-
font-style: normal;
|
|
374
|
-
font-size: 80%;
|
|
375
|
-
padding: 0;
|
|
376
|
-
color: #6d6c6c;
|
|
369
|
+
&.left {
|
|
370
|
+
float: left;
|
|
371
|
+
margin: 0.75rem 1rem 1rem 0;
|
|
377
372
|
}
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
@mixin img($caption: false) {
|
|
381
373
|
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
&.left {
|
|
388
|
-
float: left;
|
|
389
|
-
margin: 0.75rem 1rem 1rem 0;
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
&.right {
|
|
393
|
-
float: right;
|
|
394
|
-
margin: 0.75rem 0 1rem 1rem;
|
|
395
|
-
}
|
|
374
|
+
&.right {
|
|
375
|
+
float: right;
|
|
376
|
+
margin: 0.75rem 0 1rem 1rem;
|
|
377
|
+
}
|
|
396
378
|
|
|
379
|
+
&.shadow {
|
|
380
|
+
filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.08));
|
|
397
381
|
}
|
|
382
|
+
|
|
398
383
|
}
|
|
399
384
|
|
|
400
385
|
a {
|
|
@@ -402,7 +387,7 @@ footer {
|
|
|
402
387
|
color: var(--link-color);
|
|
403
388
|
}
|
|
404
389
|
|
|
405
|
-
&:not(.img-
|
|
390
|
+
&:not(.img-link) {
|
|
406
391
|
@extend %link-color;
|
|
407
392
|
@extend %link-underline;
|
|
408
393
|
&:hover {
|
|
@@ -410,23 +395,26 @@ footer {
|
|
|
410
395
|
}
|
|
411
396
|
}
|
|
412
397
|
|
|
413
|
-
&.img-
|
|
414
|
-
|
|
415
|
-
@include img-caption;
|
|
416
|
-
}
|
|
417
|
-
}
|
|
398
|
+
&.popup { // created by `_includes/img-extra.html`
|
|
399
|
+
cursor: zoom-in;
|
|
418
400
|
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
401
|
+
> img[data-src]:not(.normal):not(.left):not(.right) {
|
|
402
|
+
@include align-center;
|
|
403
|
+
}
|
|
422
404
|
}
|
|
423
|
-
}
|
|
424
405
|
|
|
425
|
-
|
|
426
|
-
|
|
406
|
+
&.img-link {
|
|
407
|
+
+ em {
|
|
408
|
+
display: block;
|
|
409
|
+
text-align: center;
|
|
410
|
+
font-style: normal;
|
|
411
|
+
font-size: 80%;
|
|
412
|
+
padding: 0;
|
|
413
|
+
color: #6d6c6c;
|
|
414
|
+
}
|
|
415
|
+
}
|
|
427
416
|
|
|
428
|
-
|
|
429
|
-
}
|
|
417
|
+
} // a
|
|
430
418
|
|
|
431
419
|
ul {
|
|
432
420
|
// attribute 'hide-bullet' was added by liquid
|
|
@@ -585,6 +573,20 @@ footer {
|
|
|
585
573
|
transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
|
|
586
574
|
}
|
|
587
575
|
|
|
576
|
+
/* --- Overriding --- */
|
|
577
|
+
|
|
578
|
+
// magnific-popup
|
|
579
|
+
figure .mfp-title {
|
|
580
|
+
text-align: center;
|
|
581
|
+
padding-right: 0;
|
|
582
|
+
margin-top: 0.5rem;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
// mermaid
|
|
586
|
+
.mermaid {
|
|
587
|
+
text-align: center;
|
|
588
|
+
}
|
|
589
|
+
|
|
588
590
|
/* --- sidebar layout --- */
|
|
589
591
|
|
|
590
592
|
$tab-count: 5 !default;
|
|
@@ -603,6 +605,15 @@ $sidebar-display: "sidebar-display";
|
|
|
603
605
|
z-index: 99;
|
|
604
606
|
background: var(--sidebar-bg);
|
|
605
607
|
|
|
608
|
+
/* Hide scrollbar for Chrome, Safari and Opera */
|
|
609
|
+
&::-webkit-scrollbar {
|
|
610
|
+
display: none;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
/* Hide scrollbar for IE, Edge and Firefox */
|
|
614
|
+
-ms-overflow-style: none; /* IE and Edge */
|
|
615
|
+
scrollbar-width: none; /* Firefox */
|
|
616
|
+
|
|
606
617
|
a {
|
|
607
618
|
@include sidebar-links;
|
|
608
619
|
|
|
@@ -896,7 +907,6 @@ $sidebar-display: "sidebar-display";
|
|
|
896
907
|
border-radius: 0;
|
|
897
908
|
padding: 0.18rem 0.3rem;
|
|
898
909
|
color: var(--text-color);
|
|
899
|
-
font-size: 95%;
|
|
900
910
|
|
|
901
911
|
&:focus {
|
|
902
912
|
box-shadow: none;
|
|
@@ -1062,7 +1072,14 @@ $sidebar-display: "sidebar-display";
|
|
|
1062
1072
|
-webkit-transform: translate3d(0, -5px, 0);
|
|
1063
1073
|
}
|
|
1064
1074
|
|
|
1065
|
-
/*
|
|
1075
|
+
/*
|
|
1076
|
+
Responsive Design:
|
|
1077
|
+
|
|
1078
|
+
{sidebar, content, panel} >= 1120px screen width
|
|
1079
|
+
{sidebar, content} >= 850px screen width
|
|
1080
|
+
{content} <= 849px screen width
|
|
1081
|
+
|
|
1082
|
+
*/
|
|
1066
1083
|
|
|
1067
1084
|
@media all and (max-width: 576px) {
|
|
1068
1085
|
|
|
@@ -1112,8 +1129,8 @@ $sidebar-display: "sidebar-display";
|
|
|
1112
1129
|
|
|
1113
1130
|
}
|
|
1114
1131
|
|
|
1115
|
-
/*
|
|
1116
|
-
@media all and (max-width:
|
|
1132
|
+
/* hide sidebar and panel */
|
|
1133
|
+
@media all and (max-width: 849px) {
|
|
1117
1134
|
%slide {
|
|
1118
1135
|
-webkit-transition: transform 0.4s ease;
|
|
1119
1136
|
transition: transform 0.4s ease;
|
|
@@ -1230,16 +1247,17 @@ $sidebar-display: "sidebar-display";
|
|
|
1230
1247
|
}
|
|
1231
1248
|
}
|
|
1232
1249
|
|
|
1233
|
-
}
|
|
1250
|
+
} // max-width: 849px
|
|
1234
1251
|
|
|
1252
|
+
/* Phone & Pad */
|
|
1235
1253
|
@media all and (min-width: 577px) and (max-width: 1199px) {
|
|
1236
1254
|
footer > .d-flex > div {
|
|
1237
1255
|
width: 312px;
|
|
1238
1256
|
}
|
|
1239
1257
|
}
|
|
1240
1258
|
|
|
1241
|
-
/* Sidebar visible */
|
|
1242
|
-
@media all and (min-width:
|
|
1259
|
+
/* Sidebar is visible */
|
|
1260
|
+
@media all and (min-width: 850px) {
|
|
1243
1261
|
/* Solved jumping scrollbar */
|
|
1244
1262
|
html {
|
|
1245
1263
|
overflow-y: scroll;
|
|
@@ -1286,9 +1304,9 @@ $sidebar-display: "sidebar-display";
|
|
|
1286
1304
|
|
|
1287
1305
|
}
|
|
1288
1306
|
|
|
1289
|
-
/*
|
|
1290
|
-
@media all and (min-width: 992px) and (max-width:
|
|
1291
|
-
#main
|
|
1307
|
+
/* Pad horizontal */
|
|
1308
|
+
@media all and (min-width: 992px) and (max-width: 1199px) {
|
|
1309
|
+
#main .col-lg-11 {
|
|
1292
1310
|
-webkit-box-flex: 0;
|
|
1293
1311
|
-ms-flex: 0 0 96%;
|
|
1294
1312
|
flex: 0 0 96%;
|
|
@@ -1296,11 +1314,17 @@ $sidebar-display: "sidebar-display";
|
|
|
1296
1314
|
}
|
|
1297
1315
|
}
|
|
1298
1316
|
|
|
1299
|
-
/* Compact icons in sidebar &
|
|
1300
|
-
@media all and (min-width:
|
|
1317
|
+
/* Compact icons in sidebar & panel hidden */
|
|
1318
|
+
@media all and (min-width: 850px) and (max-width: 1199px) {
|
|
1301
1319
|
|
|
1302
1320
|
#sidebar {
|
|
1303
1321
|
width: $sidebar-width-small;
|
|
1322
|
+
|
|
1323
|
+
.site-subtitle {
|
|
1324
|
+
margin-left: 1rem;
|
|
1325
|
+
margin-right: 1rem;
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1304
1328
|
.sidebar-bottom {
|
|
1305
1329
|
a,
|
|
1306
1330
|
span {
|
|
@@ -1345,7 +1369,7 @@ $sidebar-display: "sidebar-display";
|
|
|
1345
1369
|
|
|
1346
1370
|
}
|
|
1347
1371
|
|
|
1348
|
-
/*
|
|
1372
|
+
/* panel hidden */
|
|
1349
1373
|
@media all and (max-width: 1199px) {
|
|
1350
1374
|
#panel-wrapper {
|
|
1351
1375
|
display: none;
|
|
@@ -1407,7 +1431,7 @@ $sidebar-display: "sidebar-display";
|
|
|
1407
1431
|
}
|
|
1408
1432
|
}
|
|
1409
1433
|
|
|
1410
|
-
.post-content
|
|
1434
|
+
.post-content {
|
|
1411
1435
|
font-size: 1.03rem;
|
|
1412
1436
|
}
|
|
1413
1437
|
|
|
@@ -1600,7 +1624,7 @@ $sidebar-display: "sidebar-display";
|
|
|
1600
1624
|
} // #sidebar
|
|
1601
1625
|
|
|
1602
1626
|
footer > div.d-flex {
|
|
1603
|
-
width:
|
|
1627
|
+
width: 92%;
|
|
1604
1628
|
max-width: 1140px;
|
|
1605
1629
|
}
|
|
1606
1630
|
|