jekyll-theme-chirpy 4.0.2 → 4.1.0
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 +66 -33
- data/_config.yml +16 -4
- data/_data/locales/en.yml +87 -0
- data/_data/locales/zh-CN.yml +86 -0
- data/_includes/footer.html +17 -8
- data/_includes/head.html +8 -6
- data/_includes/js-selector.html +8 -3
- data/_includes/no-zero-date.html +13 -0
- data/_includes/panel.html +3 -3
- data/_includes/post-nav.html +4 -4
- data/_includes/post-paginator.html +9 -1
- data/_includes/post-sharing.html +5 -3
- data/_includes/read-time.html +12 -2
- data/_includes/refactor-content.html +75 -6
- data/_includes/related-posts.html +1 -1
- data/_includes/search-results.html +1 -1
- data/_includes/sidebar.html +8 -7
- data/_includes/timeago.html +12 -16
- data/_includes/topbar.html +27 -21
- data/_layouts/archives.html +4 -3
- data/_layouts/categories.html +15 -18
- data/_layouts/category.html +2 -2
- data/_layouts/default.html +3 -1
- data/_layouts/home.html +3 -4
- data/_layouts/page.html +8 -1
- data/_layouts/post.html +25 -11
- data/_layouts/tag.html +2 -3
- data/_sass/addon/commons.scss +34 -21
- data/_sass/addon/syntax.scss +24 -16
- data/_sass/addon/variables.scss +25 -13
- data/_sass/jekyll-theme-chirpy.scss +2 -1
- data/_sass/layout/home.scss +30 -15
- data/_sass/layout/post.scss +0 -12
- data/_sass/variables-hook.scss +3 -0
- data/assets/404.html +15 -5
- data/assets/css/style.scss +7 -2
- data/assets/feed.xml +1 -1
- data/assets/js/dist/categories.min.js +1 -1
- data/assets/js/dist/commons.min.js +1 -1
- 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 +1 -1
- metadata +6 -5
- data/_data/date_format.yml +0 -7
- data/_data/label.yml +0 -19
- data/_data/rights.yml +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb3a0e44483446ef705279dfd00eeee2895baf01853f2ee78709916044cf2f04
|
4
|
+
data.tar.gz: e382dc069e0b8bdb3553c001649ef5842c7620e3fb0575dbaee2bc77f60472f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0b815bb2f9f4e4c9b4ce0b547030a26416761910fd324c1b56d5e49d64b57cb79085d0ae62f6c5d623c4cc0b4283a2dfdb1098765a69798cca2ff322a763e30
|
7
|
+
data.tar.gz: c1119adbf07c093db34e2651cc3f652a0ea87f662c85beeabf4ff6395edbe8a7e5fc21a626a37b47a89070163692377d7fd6778a1434ac783a23c480ee519f20
|
data/README.md
CHANGED
@@ -1,47 +1,70 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
1
|
+
<div align="right">
|
2
|
+
<a href="https://github.com/cotes2020/jekyll-theme-chirpy#readme">EN</a> |
|
3
|
+
<a href="https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/docs/README.zh-CN.md">中文 (简体)</a>
|
4
|
+
</div>
|
5
|
+
|
6
|
+
<div align="center">
|
7
|
+
<h1>Chirpy Jekyll Theme</h1>
|
8
|
+
<p>
|
9
|
+
<a href="https://rubygems.org/gems/jekyll-theme-chirpy">
|
10
|
+
<img alt="Gem Version" src="https://img.shields.io/gem/v/jekyll-theme-chirpy?color=brightgreen"></img>
|
11
|
+
</a>
|
12
|
+
<a href="https://github.com/cotes2020/jekyll-theme-chirpy/actions?query=branch%3Amaster+event%3Apush">
|
13
|
+
<img alt="Build Status" src="https://github.com/cotes2020/jekyll-theme-chirpy/workflows/build/badge.svg?branch=master&event=push"></img>
|
14
|
+
</a>
|
15
|
+
<a href="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">
|
16
|
+
<img alt="Codacy Badge" src="https://api.codacy.com/project/badge/Grade/8220b926db514f13afc3f02b7f884f4b"></img>
|
17
|
+
</a>
|
18
|
+
<a href="https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/LICENSE">
|
19
|
+
<img alt="GitHub license" src="https://img.shields.io/github/license/cotes2020/jekyll-theme-chirpy.svg"></img>
|
20
|
+
</a>
|
21
|
+
<a href="https://996.icu">
|
22
|
+
<img alt="996.icu" src="https://img.shields.io/badge/link-996.icu-%23FF4D5B.svg"></img>
|
23
|
+
</a>
|
24
|
+
</p>
|
25
|
+
</div>
|
26
|
+
|
27
|
+
A minimal, sidebar, responsive web design Jekyll theme that focuses on text presentation. Designed to help you easily record and share your knowledge.
|
28
|
+
|
29
|
+
[Live Demo »](https://chirpy.cotes.info)
|
30
|
+
|
31
|
+
<p align="center">
|
32
|
+
<a href="https://chirpy.cotes.info">
|
33
|
+
<img alt="Devices Mockup" src="https://cdn.jsdelivr.net/gh/cotes2020/chirpy-images/commons/devices-mockup.png"></img>
|
34
|
+
</a>
|
35
|
+
</p>
|
14
36
|
|
15
37
|
## Features
|
16
38
|
|
39
|
+
- Localized Layout
|
40
|
+
- Configurable Theme Mode
|
17
41
|
- Pinned Posts
|
18
|
-
-
|
19
|
-
-
|
20
|
-
- Last modified date for posts
|
42
|
+
- Hierarchical Categories
|
43
|
+
- Last Modified Date for Posts
|
21
44
|
- Table of Contents
|
22
|
-
- Automatically
|
23
|
-
- Syntax
|
24
|
-
- Mathematical
|
25
|
-
- Mermaid
|
45
|
+
- Automatically Recommend Related Posts
|
46
|
+
- Syntax Highlighting
|
47
|
+
- Mathematical Expressions
|
48
|
+
- Mermaid Diagram & Flowchart
|
26
49
|
- Search
|
27
50
|
- Atom Feeds
|
28
51
|
- Disqus Comments
|
29
52
|
- Google Analytics
|
30
|
-
- GA Pageviews
|
31
|
-
- SEO
|
53
|
+
- GA Pageviews Reporting (Advanced)
|
54
|
+
- SEO & Performance Optimization
|
32
55
|
|
33
56
|
## Prerequisites
|
34
57
|
|
35
|
-
Follow the [Jekyll Docs](https://jekyllrb.com/docs/installation/) to complete the installation of `Ruby`, `RubyGems`, `Jekyll` and `Bundler`.
|
58
|
+
Follow the [Jekyll Docs](https://jekyllrb.com/docs/installation/) to complete the installation of `Ruby`, `RubyGems`, `Jekyll` and `Bundler`. Please note that the version of `Ruby` must meet the requirements of the theme on [RubyGems.org](https://rubygems.org/gems/jekyll-theme-chirpy).
|
36
59
|
|
37
60
|
## Installation
|
38
61
|
|
39
62
|
There are two ways to get the theme:
|
40
63
|
|
41
|
-
- **Install from RubyGems** - Easy to update, isolate irrelevant project files so you can focus on writing.
|
42
|
-
- **Fork on GitHub** - Convenient for custom development, but difficult to update, only suitable for web developers.
|
64
|
+
- **[Install from RubyGems](#install-from-rubygems)** - Easy to update, isolate irrelevant project files so you can focus on writing.
|
65
|
+
- **[Fork on GitHub](#fork-on-github)** - Convenient for custom development, but difficult to update, only suitable for web developers.
|
43
66
|
|
44
|
-
###
|
67
|
+
### Install from RubyGems
|
45
68
|
|
46
69
|
Add this line to your Jekyll site's `Gemfile`:
|
47
70
|
|
@@ -61,15 +84,19 @@ And then execute:
|
|
61
84
|
$ bundle
|
62
85
|
```
|
63
86
|
|
64
|
-
|
87
|
+
Next, go to the installed local theme path:
|
65
88
|
|
66
|
-
|
89
|
+
```console
|
90
|
+
$ cd "$(bundle info --path jekyll-theme-chirpy)"
|
91
|
+
```
|
92
|
+
|
93
|
+
And then copy the critical files (for details, see [starter project][starter]) from the theme's gem to your Jekyll site.
|
94
|
+
|
95
|
+
> ⚠️ **Watch out for duplicate files!**
|
67
96
|
>
|
68
|
-
|
69
|
-
> $ bundle info --path jekyll-theme-chirpy
|
70
|
-
> ```
|
97
|
+
If your Jekyll site is created by the `jekyll new` command, there will be `index.markdown` and `about.markdown` in the root directory of your site. Please be sure to remove them, otherwise they will overwrite the `index.html` and `_tabs/about.html` from this project, resulting in blank or messy pages.
|
71
98
|
|
72
|
-
|
99
|
+
As an alternative, which we recommend, you can create a Jekyll site [**using the starter template**][use-starter] to save time copying files from the theme's gem. We've prepared everything you need there!
|
73
100
|
|
74
101
|
### Fork on GitHub
|
75
102
|
|
@@ -111,6 +138,12 @@ Update the variables of `_config.yml` as needed. Some of them are typical option
|
|
111
138
|
- `timezone`
|
112
139
|
- `lang`
|
113
140
|
|
141
|
+
### Customing Stylesheet
|
142
|
+
|
143
|
+
If you need to customize stylesheet, copy the theme's `assets/css/style.scss` to the same path on your Jekyll site, and then add the custom style at the end of the style file.
|
144
|
+
|
145
|
+
Starting from `v4.1.0`, if you want to overwrite the SASS variables defined in `_sass/addon/variables.scss`, create a new file `_sass/variables-hook.scss` and assign new values to the target variable in it.
|
146
|
+
|
114
147
|
### Running Local Server
|
115
148
|
|
116
149
|
You may want to preview the site contents before publishing, so just run it by:
|
@@ -181,7 +214,7 @@ Unless you specified the output path, the generated site files will be placed in
|
|
181
214
|
|
182
215
|
## Documentation
|
183
216
|
|
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).
|
217
|
+
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). Please note that the tutorials on the demo website or Wiki are based on the latest release, and the features of `master` branch usually ahead of the documentation.
|
185
218
|
|
186
219
|
## Contributing
|
187
220
|
|
data/_config.yml
CHANGED
@@ -7,14 +7,21 @@ theme: jekyll-theme-chirpy
|
|
7
7
|
# change below value to '/projectname'.
|
8
8
|
baseurl: ''
|
9
9
|
|
10
|
-
# the
|
11
|
-
|
10
|
+
# The language of the site layout › http://www.lingoes.net/en/translator/langcode.htm
|
11
|
+
# Go to folder '_data/locales' to check the available language options
|
12
|
+
lang: en
|
13
|
+
|
14
|
+
# The lang attribute of HTML › http://www.lingoes.net/en/translator/langcode.htm
|
15
|
+
# We can specify a language different from the layout of the content.
|
16
|
+
# If it is not assigned, the site will use the value of 'lang' instead.
|
17
|
+
content_lang: ''
|
12
18
|
|
13
19
|
# Change to your timezone › http://www.timezoneconverter.com/cgi-bin/findzone/findzone
|
14
20
|
timezone: Asia/Shanghai
|
15
21
|
|
16
22
|
# jekyll-seo-tag settings › https://github.com/jekyll/jekyll-seo-tag/blob/master/docs/usage.md
|
17
|
-
# --------------------------
|
23
|
+
# ↓ --------------------------
|
24
|
+
|
18
25
|
title: Chirpy # the main title
|
19
26
|
|
20
27
|
tagline: A text-focused Jekyll theme # it will display as the sub-title
|
@@ -47,7 +54,9 @@ social:
|
|
47
54
|
# - https://www.linkedin.com/in/username
|
48
55
|
|
49
56
|
google_site_verification: google_meta_tag_verification # change to your verification string
|
50
|
-
|
57
|
+
|
58
|
+
# ↑ --------------------------
|
59
|
+
|
51
60
|
|
52
61
|
google_analytics:
|
53
62
|
id: '' # fill in your Google Analytics ID
|
@@ -164,3 +173,6 @@ jekyll-archives:
|
|
164
173
|
permalinks:
|
165
174
|
tag: /tags/:name/
|
166
175
|
category: /categories/:name/
|
176
|
+
|
177
|
+
# Outdated configuration warning
|
178
|
+
outdated: '-- Missing configuration options! --'
|
@@ -0,0 +1,87 @@
|
|
1
|
+
# The layout text of site
|
2
|
+
|
3
|
+
# ----- Commons label -----
|
4
|
+
|
5
|
+
layout:
|
6
|
+
post: Post
|
7
|
+
category: Category
|
8
|
+
tag: Tag
|
9
|
+
|
10
|
+
# The tabs of sidebar
|
11
|
+
tabs:
|
12
|
+
# format: <filename_without_extension>: <value>
|
13
|
+
home: Home
|
14
|
+
categories: Categories
|
15
|
+
tags: Tags
|
16
|
+
archives: Archives
|
17
|
+
about: About
|
18
|
+
|
19
|
+
# text displayed in the search bar
|
20
|
+
search:
|
21
|
+
hint: search
|
22
|
+
cancel: Cancel
|
23
|
+
|
24
|
+
panel:
|
25
|
+
lastmod: Recent Update
|
26
|
+
trending_tags: Trending Tags
|
27
|
+
toc: Contents
|
28
|
+
|
29
|
+
# The liquid date format › http://strftime.net/
|
30
|
+
date_format:
|
31
|
+
tooltip: '%a, %b %e, %Y, %l:%M %p %z'
|
32
|
+
post:
|
33
|
+
long: '%b %e, %Y'
|
34
|
+
short: '%b %e'
|
35
|
+
archive_month: '%b'
|
36
|
+
|
37
|
+
copyright:
|
38
|
+
# Shown at the bottom of the post
|
39
|
+
license:
|
40
|
+
template: This post is licensed under :LICENSE_NAME by the author.
|
41
|
+
name: CC BY 4.0
|
42
|
+
link: https://creativecommons.org/licenses/by/4.0/
|
43
|
+
|
44
|
+
# Displayed in the footer
|
45
|
+
brief: Some rights reserved.
|
46
|
+
verbose: >-
|
47
|
+
Except where otherwise noted, the blog posts on this site are licensed
|
48
|
+
under the Creative Commons Attribution 4.0 International (CC BY 4.0) License by the author.
|
49
|
+
|
50
|
+
meta: Powered by :PLATFORM with :THEME theme.
|
51
|
+
|
52
|
+
not_found:
|
53
|
+
statment: Sorry, we've misplaced that URL or it's pointing to something that doesn't exist.
|
54
|
+
hint_template: :HEAD_BAK to try finding it again, or search for it on the :ARCHIVES_PAGE.
|
55
|
+
head_back: Head back Home
|
56
|
+
archives_page: Archives page
|
57
|
+
|
58
|
+
# ----- Posts related labels -----
|
59
|
+
|
60
|
+
post:
|
61
|
+
published: 'on'
|
62
|
+
updated: Updated
|
63
|
+
timeago:
|
64
|
+
day: d ago
|
65
|
+
hour: hr ago
|
66
|
+
minute: min ago
|
67
|
+
just_now: just now
|
68
|
+
words: words
|
69
|
+
pageview_measure: views
|
70
|
+
read_time:
|
71
|
+
unit: min
|
72
|
+
prompt: read
|
73
|
+
relate_posts: Further Reading
|
74
|
+
share: Share
|
75
|
+
button:
|
76
|
+
next: Newer
|
77
|
+
previous: Older
|
78
|
+
copy:
|
79
|
+
title: Copy link
|
80
|
+
succeed: Link copied successfully!
|
81
|
+
# pinned prompt of posts list on homepage
|
82
|
+
pin_prompt: Pinned
|
83
|
+
|
84
|
+
# categories page
|
85
|
+
categories:
|
86
|
+
category_measure: categories
|
87
|
+
post_measure: posts
|
@@ -0,0 +1,86 @@
|
|
1
|
+
# The layout text of site
|
2
|
+
|
3
|
+
# ----- Commons label -----
|
4
|
+
|
5
|
+
layout:
|
6
|
+
post: 文章
|
7
|
+
category: 分类
|
8
|
+
tag: 标签
|
9
|
+
|
10
|
+
# The tabs of sidebar
|
11
|
+
tabs:
|
12
|
+
# format: <filename_without_extension>: <value>
|
13
|
+
home: 首页
|
14
|
+
categories: 分类
|
15
|
+
tags: 标签
|
16
|
+
archives: 归档
|
17
|
+
about: 关于
|
18
|
+
|
19
|
+
# text displayed in the search bar
|
20
|
+
search:
|
21
|
+
hint: 搜索
|
22
|
+
cancel: 取消
|
23
|
+
|
24
|
+
panel:
|
25
|
+
lastmod: 最近更新
|
26
|
+
trending_tags: 热门标签
|
27
|
+
toc: 目录
|
28
|
+
|
29
|
+
# The liquid date format › http://strftime.net/
|
30
|
+
date_format:
|
31
|
+
tooltip: '%a, %F, %R %z'
|
32
|
+
post:
|
33
|
+
long: '%F'
|
34
|
+
short: '%m-%d'
|
35
|
+
archive_month: '%m月'
|
36
|
+
|
37
|
+
copyright:
|
38
|
+
# Shown at the bottom of the post
|
39
|
+
license:
|
40
|
+
template: 本文由作者按照 :LICENSE_NAME 进行授权
|
41
|
+
name: CC BY 4.0
|
42
|
+
link: https://creativecommons.org/licenses/by/4.0/
|
43
|
+
|
44
|
+
# Displayed in the footer
|
45
|
+
brief: 保留部分权利。
|
46
|
+
verbose: >-
|
47
|
+
除非另有说明,本网站上的博客文章均由作者按照知识共享署名 4.0 国际 (CC BY 4.0) 许可协议进行授权。
|
48
|
+
|
49
|
+
meta: 本站由 :PLATFORM 生成,采用 :THEME 主题。
|
50
|
+
|
51
|
+
not_found:
|
52
|
+
statment: 抱歉,我们放错了该 URL,或者它指向了不存在的内容。
|
53
|
+
hint_template: :HEAD_BAK尝试再次查找它,或在:ARCHIVES_PAGE上搜索它。
|
54
|
+
head_back: 返回主页
|
55
|
+
archives_page: 归档页面
|
56
|
+
|
57
|
+
# ----- Posts related labels -----
|
58
|
+
|
59
|
+
post:
|
60
|
+
published: 发表于
|
61
|
+
updated: 更新于
|
62
|
+
timeago:
|
63
|
+
day: 天前
|
64
|
+
hour: 小时前
|
65
|
+
minute: 分钟前
|
66
|
+
just_now: 刚刚
|
67
|
+
words: 字
|
68
|
+
pageview_measure: 次浏览
|
69
|
+
read_time:
|
70
|
+
unit: 分钟
|
71
|
+
prompt: 阅读
|
72
|
+
relate_posts: 相关文章
|
73
|
+
share: 分享
|
74
|
+
button:
|
75
|
+
next: 下一篇
|
76
|
+
previous: 上一篇
|
77
|
+
copy:
|
78
|
+
title: 分享链接
|
79
|
+
succeed: 链接已复制!
|
80
|
+
# pinned prompt of posts list on homepage
|
81
|
+
pin_prompt: 顶置
|
82
|
+
|
83
|
+
# categories page
|
84
|
+
categories:
|
85
|
+
category_measure: 个分类
|
86
|
+
post_measure: 篇文章
|
data/_includes/footer.html
CHANGED
@@ -8,21 +8,30 @@
|
|
8
8
|
<p class="mb-0">
|
9
9
|
© {{ 'now' | date: "%Y" }}
|
10
10
|
<a href="{{ site.social.links[0] }}">{{ site.social.name }}</a>.
|
11
|
-
{% if site.data.
|
11
|
+
{% if site.data.locales[site.lang].copyright.brief %}
|
12
12
|
<span data-toggle="tooltip" data-placement="top"
|
13
|
-
title="{{ site.data.
|
13
|
+
title="{{ site.data.locales[site.lang].copyright.verbose }}">{{ site.data.locales[site.lang].copyright.brief }}</span>
|
14
|
+
{% else %}
|
15
|
+
<span class="text-muted">{{ site.outdated }}</span>
|
14
16
|
{% endif %}
|
15
17
|
</p>
|
16
18
|
</div>
|
17
19
|
|
18
20
|
<div class="footer-right">
|
19
21
|
<p class="mb-0">
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
22
|
+
{% capture _platform %}
|
23
|
+
<a href="https://jekyllrb.com" target="_blank" rel="noopener">Jekyll</a>
|
24
|
+
{% endcapture %}
|
25
|
+
|
26
|
+
{% capture _theme %}
|
27
|
+
<a href="https://github.com/cotes2020/jekyll-theme-chirpy" target="_blank" rel="noopener">Chirpy</a>
|
28
|
+
{% endcapture %}
|
29
|
+
|
30
|
+
{{ site.data.locales[site.lang].meta
|
31
|
+
| default: 'Powered by :PLATFORM with :THEME theme.'
|
32
|
+
| replace: ':PLATFORM', _platform | replace: ':THEME', _theme
|
33
|
+
}}
|
34
|
+
|
26
35
|
</p>
|
27
36
|
</div>
|
28
37
|
|
data/_includes/head.html
CHANGED
@@ -8,6 +8,13 @@
|
|
8
8
|
|
9
9
|
{% if page.layout == 'home' or page.layout == 'post' %}
|
10
10
|
|
11
|
+
<!-- i18n for timeago.js -->
|
12
|
+
<meta name="layout-lang" content="{{ site.lang | default: "en" }}">
|
13
|
+
<meta name="day-prompt" content="{{ site.data.locales[site.lang].post.timeago.day | default: "d ago" }}">
|
14
|
+
<meta name="hour-prompt" content="{{ site.data.locales[site.lang].post.timeago.hour | default: "hr ago" }}">
|
15
|
+
<meta name="minute-prompt" content="{{ site.data.locales[site.lang].post.timeago.minute | default: "min ago" }}">
|
16
|
+
<meta name="justnow-prompt" content="{{ site.data.locales[site.lang].post.timeago.just_now | default: "just now" }}">
|
17
|
+
|
11
18
|
{% if site.google_analytics.pv.proxy_endpoint %}
|
12
19
|
<meta name="pv-proxy-endpoint" content="{{ site.google_analytics.pv.proxy_endpoint }}">
|
13
20
|
{% endif %}
|
@@ -62,13 +69,8 @@
|
|
62
69
|
|
63
70
|
{% include css-selector.html %}
|
64
71
|
|
65
|
-
<!--
|
72
|
+
<!-- JavaScript -->
|
66
73
|
|
67
74
|
<script src="https://cdn.jsdelivr.net/npm/jquery@3/dist/jquery.min.js"></script>
|
68
75
|
|
69
|
-
<script defer
|
70
|
-
src="https://cdn.jsdelivr.net/combine/npm/popper.js@1.15.0,npm/bootstrap@4/dist/js/bootstrap.min.js"></script>
|
71
|
-
|
72
|
-
{% include js-selector.html %}
|
73
|
-
|
74
76
|
</head>
|
data/_includes/js-selector.html
CHANGED
@@ -2,18 +2,19 @@
|
|
2
2
|
JS selector for site.
|
3
3
|
-->
|
4
4
|
|
5
|
+
<!-- layout specified -->
|
6
|
+
|
5
7
|
{% if page.layout == 'home' or page.layout == 'post' %}
|
6
8
|
{% if site.google_analytics.pv.proxy_endpoint or site.google_analytics.pv.cache_path %}
|
7
9
|
<!-- pv-report needs countup.js -->
|
8
10
|
<script async src="https://cdn.jsdelivr.net/npm/countup.js@1.9.3/dist/countUp.min.js"></script>
|
9
|
-
<script
|
11
|
+
<script defer src="{{ '/assets/js/dist/pvreport.min.js' | relative_url }}"></script>
|
10
12
|
{% endif %}
|
11
13
|
{% endif %}
|
12
14
|
|
13
15
|
{% if page.layout == 'post' or page.layout == 'page' %}
|
14
16
|
<!-- image lazy-loading & popup -->
|
15
|
-
<script
|
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
|
+
<script src="https://cdn.jsdelivr.net/combine/npm/lozad/dist/lozad.min.js,npm/magnific-popup@1/dist/jquery.magnific-popup.min.js"></script>
|
17
18
|
{% endif %}
|
18
19
|
|
19
20
|
{% if page.layout == 'home'
|
@@ -51,6 +52,10 @@
|
|
51
52
|
</script>
|
52
53
|
{% endif %}
|
53
54
|
|
55
|
+
<!-- commons -->
|
56
|
+
|
57
|
+
<script src="https://cdn.jsdelivr.net/combine/npm/popper.js@1.16.1,npm/bootstrap@4/dist/js/bootstrap.min.js"></script>
|
58
|
+
|
54
59
|
{% if jekyll.environment == 'production' %}
|
55
60
|
<!-- PWA -->
|
56
61
|
<script defer src="{{ '/app.js' | relative_url }}"></script>
|