jekyll-theme-chirpy 5.5.2 → 5.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 23af61d7799b4421087603c3e1892cc13ee166c95b410df996dc4e2a65a8a04f
4
- data.tar.gz: 993b4db437732b1318b945c18eea3b971787275f69d11d9992cfd7ff239ca44e
3
+ metadata.gz: 247d98893e58247ff3760691e9b0e3c31dd28e341676bd30b7ac8515c29b5684
4
+ data.tar.gz: a317d1089b0de4d1c84e4a1c558a5346bb6daad193c5ee268f9c3cdf178d3b11
5
5
  SHA512:
6
- metadata.gz: 7ca32f0041e1680d47a2b91b663019f90e125c2071092728d4b20b9173aeec5d7d6bf075fe467c6e683ac0c1b3124b84a56ac0268c24b4adb92c4c31c9afc57b
7
- data.tar.gz: 15bf2e5739202fcfa2f99ff3840f60ddac24ffc02c0541f5eadc2bdc08a2e51c07ea1a937bed05525185cef4b38098a788e55def96aa88f6d079627f6d70b09e
6
+ metadata.gz: fa9b230ac7d86b887318c9358e005d7cd4f528965948ffc7eef719061ea8a19b0d30496204f69eabfa27ad3f66984d3b4f0042ea250da8de8704255d9c27f9a7
7
+ data.tar.gz: 77bb213daa14b8937b7365f78eea257cb7371f15efa8d0cd78ca7edead1611301fa6dbd05b2d98e0d0e031b1a2cb92563779f6ae987d4f3db5e5b2bb72f0c9eb
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Chirpy Jekyll Theme
4
4
 
5
- A minimal, responsive, and powerful Jekyll theme for presenting professional writing.
5
+ A minimal, responsive and feature-rich Jekyll theme for technical writing.
6
6
 
7
7
  [![Gem Version](https://img.shields.io/gem/v/jekyll-theme-chirpy?color=brightgreen)](https://rubygems.org/gems/jekyll-theme-chirpy)
8
8
  [![CI](https://github.com/cotes2020/jekyll-theme-chirpy/actions/workflows/ci.yml/badge.svg)](https://github.com/cotes2020/jekyll-theme-chirpy/actions/workflows/ci.yml)
@@ -10,97 +10,86 @@
10
10
  [![GitHub license](https://img.shields.io/github/license/cotes2020/jekyll-theme-chirpy.svg)](https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/LICENSE)
11
11
  [![996.icu](https://img.shields.io/badge/link-996.icu-%23FF4D5B.svg)](https://996.icu)
12
12
 
13
- [**Live Demo →**](https://cotes2020.github.io/chirpy-demo)
13
+ [**Live Demo →**][demo]
14
14
 
15
- [![Devices Mockup](https://chirpy-img.netlify.app/commons/devices-mockup.png)](https://cotes2020.github.io/chirpy-demo)
15
+ [![Devices Mockup](https://chirpy-img.netlify.app/commons/devices-mockup.png)][demo]
16
16
 
17
17
  </div>
18
18
 
19
19
  ## Features
20
20
 
21
- - Dark/Light Theme Mode
22
- - Localized UI language
23
- - Pinned Posts
24
- - Hierarchical Categories
25
- - Trending Tags
26
- - Table of Contents
27
- - Last Modified Date of Posts
28
- - Syntax Highlighting
29
- - Mathematical Expressions
30
- - Mermaid Diagram & Flowchart
31
- - Dark/Light Mode Images
32
- - Embed Videos
33
- - Disqus/Utterances/Giscus Comments
34
- - Search
35
- - Atom Feeds
36
- - Google Analytics
37
- - Page Views Reporting
38
- - SEO & Performance Optimization
39
-
40
- ## Quick Start
41
-
42
- Before starting, please follow the instructions in the [Jekyll Docs](https://jekyllrb.com/docs/installation/) to complete the installation of `Ruby`, `RubyGems`, `Jekyll`, and `Bundler`. In addition, [Git](https://git-scm.com/) is also required to be installed.
43
-
44
- ### Step 1. Creating a New Site
45
-
46
- Create a new repository from the [**Chirpy Starter**](https://github.com/cotes2020/chirpy-starter/generate) and name it `<GH_USERNAME>.github.io`, where `GH_USERNAME` represents your GitHub username.
47
-
48
- ### Step 2. Installing Dependencies
49
-
50
- Before running for the first time, go to the root directory of your site, and install dependencies as follows:
51
-
52
- ```console
53
- $ bundle
54
- ```
55
-
56
- ### Step 3. Running Local Server
57
-
58
- Run the following command in the root directory of the site:
59
-
60
- ```console
61
- $ bundle exec jekyll s
62
- ```
63
-
64
- Or run with Docker:
65
-
66
- ```console
67
- $ docker run -it --rm \
68
- --volume="$PWD:/srv/jekyll" \
69
- -p 4000:4000 jekyll/jekyll \
70
- jekyll serve
71
- ```
72
-
73
- After a while, navigate to the site at <http://localhost:4000>.
21
+ <details>
22
+ <summary>
23
+ <i>Click to view features</i>
24
+ </summary>
25
+ <p>
26
+
27
+ - Dark / Light Theme Mode
28
+ - Localized UI language
29
+ - Pinned Posts
30
+ - Hierarchical Categories
31
+ - Trending Tags
32
+ - Table of Contents
33
+ - Last Modified Date of Posts
34
+ - Syntax Highlighting
35
+ - Mathematical Expressions
36
+ - Mermaid Diagram & Flowchart
37
+ - Dark / Light Mode Images
38
+ - Embed Videos
39
+ - Disqus / Utterances / Giscus Comments
40
+ - Search
41
+ - Atom Feeds
42
+ - Google Analytics
43
+ - Page Views Reporting
44
+ - SEO & Performance Optimization
45
+
46
+ </p>
47
+ </details>
74
48
 
75
49
  ## Documentation
76
50
 
77
- For more details on usage, please refer to the tutorial on the [demo website](https://cotes2020.github.io/chirpy-demo/) / [wiki](https://github.com/cotes2020/jekyll-theme-chirpy/wiki). Note that the tutorial is based on the [latest release](https://github.com/cotes2020/jekyll-theme-chirpy/releases/latest), and the features of the default branch are usually ahead of the documentation.
51
+ To explore usage, development, and upgrade guide of the project, please refer to
52
+ the [Wiki][wiki].
78
53
 
79
54
  ## Contributing
80
55
 
81
- Welcome to report bugs, improve code quality or submit a new feature. For more information, see [contributing guidelines](.github/CONTRIBUTING.md).
56
+ Welcome to report bugs, help improve the code or submit new features.
57
+ For more information, please see the ["Contributing Guidelines"][contribute-guide].
82
58
 
83
59
  ## Credits
84
60
 
85
- 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 come from [Clipart Max](https://www.clipartmax.com/middle/m2i8b1m2K9Z5m2K9_ant-clipart-childrens-ant-cute/).
61
+ This theme is mainly built with [Jekyll][jekyllrb] ecosystem,
62
+ [Bootstrap][bootstrap], [Font Awesome][icons] and some other [wonderful tools][lib].
63
+ The avatar and favicon design come from [Clipart Max][image].
86
64
 
87
- :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.
65
+ Thanks to all the [contributors][contributors]. Also, folks who submitted issues
66
+ or unmerged PRs should not be forgotten. Because they reported bugs, shared ideas,
67
+ or inspired me to write more readable documentation.
88
68
 
89
- Last but not least, thank [JetBrains][jb] for providing the OSS development license.
69
+ Last but not least, thanks to [JetBrains][jetbrains] for providing the
70
+ _Open Source Development_ license.
90
71
 
91
72
  ## Sponsoring
92
73
 
93
- If you like this theme or find it helpful, please consider sponsoring me, because it will encourage and help me better maintain the project, I will be very grateful!
74
+ If you'd like to sponsor this project, the following options are available.
94
75
 
95
76
  [![Ko-fi](https://img.shields.io/badge/-Buy%20Me%20a%20Coffee-ff5f5f?logo=ko-fi&logoColor=white)](https://ko-fi.com/coteschung)
96
- [![Wechat Pay](https://img.shields.io/badge/-Tip%20Me%20on%20WeChat-brightgreen?logo=wechat&logoColor=white)][cn-donation]
97
- [![Alipay](https://img.shields.io/badge/-Tip%20Me%20on%20Alipay-blue?logo=alipay&logoColor=white)][cn-donation]
77
+ [![Wechat Pay](https://img.shields.io/badge/-Tip%20Me%20on%20WeChat-brightgreen?logo=wechat&logoColor=white)][donation]
78
+ [![Alipay](https://img.shields.io/badge/-Tip%20Me%20on%20Alipay-blue?logo=alipay&logoColor=white)][donation]
98
79
 
99
80
  ## License
100
81
 
101
- This work is published under [MIT](https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/LICENSE) License.
102
-
103
- <!-- ReadMe links -->
104
-
105
- [jb]: https://www.jetbrains.com/?from=jekyll-theme-chirpy
106
- [cn-donation]: https://sponsor.cotes.page/
82
+ This work is published under [MIT][mit] License.
83
+
84
+ [jekyllrb]: https://jekyllrb.com/
85
+ [bootstrap]: https://getbootstrap.com/
86
+ [icons]: https://fontawesome.com/
87
+ [image]: https://www.clipartmax.com/middle/m2i8b1m2K9Z5m2K9_ant-clipart-childrens-ant-cute/
88
+ [demo]: https://cotes2020.github.io/chirpy-demo/
89
+ [wiki]: https://github.com/cotes2020/jekyll-theme-chirpy/wiki
90
+ [contribute-guide]: https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/.github/CONTRIBUTING.md
91
+ [contributors]: https://github.com/cotes2020/jekyll-theme-chirpy/graphs/contributors
92
+ [lib]: https://github.com/cotes2020/chirpy-static-assets
93
+ [jetbrains]: https://www.jetbrains.com/?from=jekyll-theme-chirpy
94
+ [donation]: https://sponsor.cotes.page/
95
+ [mit]: https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/LICENSE
@@ -22,9 +22,9 @@ bootstrap:
22
22
  css: https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css
23
23
  js: https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.bundle.min.js
24
24
 
25
- bootstrap-toc:
26
- css: https://cdn.jsdelivr.net/gh/afeld/bootstrap-toc@1.0.1/dist/bootstrap-toc.min.css
27
- js: https://cdn.jsdelivr.net/gh/afeld/bootstrap-toc@1.0.1/dist/bootstrap-toc.min.js
25
+ toc:
26
+ css: https://cdn.jsdelivr.net/npm/tocbot@4.20.1/dist/tocbot.min.css
27
+ js: https://cdn.jsdelivr.net/npm/tocbot@4.20.1/dist/tocbot.min.js
28
28
 
29
29
  fontawesome:
30
30
  css: https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.2.1/css/all.min.css
@@ -5,47 +5,47 @@ webfonts: /assets/lib/fonts/main.css
5
5
  # Libraries
6
6
 
7
7
  jquery:
8
- js: /assets/lib/jquery-3.6.0/jquery.min.js
8
+ js: /assets/lib/jquery/jquery.min.js
9
9
 
10
10
  bootstrap:
11
- css: /assets/lib/bootstrap-4.6.1/bootstrap.min.css
12
- js: /assets/lib/bootstrap-4.6.1/bootstrap.bundle.min.js
11
+ css: /assets/lib/bootstrap/bootstrap.min.css
12
+ js: /assets/lib/bootstrap/bootstrap.bundle.min.js
13
13
 
14
- bootstrap-toc:
15
- css: /assets/lib/bootstrap-toc-1.0.1/bootstrap-toc.min.css
16
- js: /assets/lib/bootstrap-toc-1.0.1/bootstrap-toc.min.js
14
+ toc:
15
+ css: /assets/lib/tocbot/tocbot.min.css
16
+ js: /assets/lib/tocbot/tocbot.min.js
17
17
 
18
18
  fontawesome:
19
- css: /assets/lib/fontawesome-free-6.2.1/css/all.min.css
19
+ css: /assets/lib/fontawesome-free/css/all.min.css
20
20
 
21
21
  search:
22
- js: /assets/lib/simple-jekyll-search-1.10.0/simple-jekyll-search.min.js
22
+ js: /assets/lib/simple-jekyll-search/simple-jekyll-search.min.js
23
23
 
24
24
  mermaid:
25
- js: /assets/lib/mermaid-9.1.7/mermaid.min.js
25
+ js: /assets/lib/mermaid/mermaid.min.js
26
26
 
27
27
  dayjs:
28
28
  js:
29
- common: /assets/lib/dayjs-1.10.7/dayjs.min.js
30
- locale: /assets/lib/dayjs-1.10.7/locale/en.min.js
31
- relativeTime: /assets/lib/dayjs-1.10.7/plugin/relativeTime.min.js
32
- localizedFormat: /assets/lib/dayjs-1.10.7/plugin/localizedFormat.min.js
29
+ common: /assets/lib/dayjs/dayjs.min.js
30
+ locale: /assets/lib/dayjs/locale/en.min.js
31
+ relativeTime: /assets/lib/dayjs/plugin/relativeTime.min.js
32
+ localizedFormat: /assets/lib/dayjs/plugin/localizedFormat.min.js
33
33
 
34
34
  countup:
35
- js: /assets/lib/countup.js-1.9.3/countUp.min.js
35
+ js: /assets/lib/countup.js/countUp.min.js
36
36
 
37
37
  magnific-popup:
38
- css: /assets/lib/magnific-popup-1.1.0/magnific-popup.css
39
- js: /assets/lib/magnific-popup-1.1.0/jquery.magnific-popup.min.js
38
+ css: /assets/lib/magnific-popup/magnific-popup.css
39
+ js: /assets/lib/magnific-popup/jquery.magnific-popup.min.js
40
40
 
41
41
  lazysizes:
42
- js: /assets/lib/lazysizes-5.3.2/lazysizes.min.js
42
+ js: /assets/lib/lazysizes/lazysizes.min.js
43
43
 
44
44
  clipboard:
45
- js: /assets/lib/clipboard-2.0.9/clipboard.min.js
45
+ js: /assets/lib/clipboard/clipboard.min.js
46
46
 
47
47
  polyfill:
48
48
  js: /assets/lib/polyfill-v3-es6/polyfill.min.js
49
49
 
50
50
  mathjax:
51
- js: /assets/lib/mathjax-3.2.0/tex-chtml.js
51
+ js: /assets/lib/mathjax/tex-chtml.js
data/_data/contact.yml CHANGED
@@ -1,30 +1,28 @@
1
1
  # The contact options.
2
2
 
3
- -
4
- type: github
5
- icon: 'fab fa-github'
6
- -
7
- type: twitter
8
- icon: 'fab fa-twitter'
9
- -
10
- type: email
11
- icon: 'fas fa-envelope'
12
- noblank: true # open link in current tab
13
- -
14
- type: rss
15
- icon: 'fas fa-rss'
16
- noblank: true
3
+ - type: github
4
+ icon: "fab fa-github"
5
+
6
+ - type: twitter
7
+ icon: "fab fa-twitter"
17
8
 
9
+ - type: email
10
+ icon: "fas fa-envelope"
11
+ noblank: true # open link in current tab
12
+
13
+ - type: rss
14
+ icon: "fas fa-rss"
15
+ noblank: true
18
16
  # Uncomment and complete the url below to enable more contact options
19
- # -
20
- # type: mastodon
17
+ #
18
+ # - type: mastodon
21
19
  # icon: 'fab fa-mastodon' # icons powered by <https://fontawesome.com/>
22
20
  # url: '' # Fill with your Mastodon account page, rel="me" will be applied for verification
23
- # -
24
- # type: linkedin
21
+ #
22
+ # - type: linkedin
25
23
  # icon: 'fab fa-linkedin' # icons powered by <https://fontawesome.com/>
26
24
  # url: '' # Fill with your Linkedin homepage
27
- # -
28
- # type: stack-overflow
25
+ #
26
+ # - type: stack-overflow
29
27
  # icon: 'fab fa-stack-overflow'
30
28
  # url: '' # Fill with your stackoverflow homepage
@@ -0,0 +1,93 @@
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: Home
14
+ categories: Κατηγορίες
15
+ tags: Ετικέτες
16
+ archives: Αρχεία
17
+ about: Σχετικά
18
+
19
+ # the text displayed in the search bar & search results
20
+ search:
21
+ hint: αναζήτηση
22
+ cancel: Ακύρωση
23
+ no_results: Oops! Κανένα αποτέλεσμα δεν βρέθηκε.
24
+
25
+ panel:
26
+ lastmod: Σχετικά ενημερωμένα
27
+ trending_tags: Ετικέτες τάσης
28
+ toc: Περιεχόμενα
29
+
30
+ copyright:
31
+ # Shown at the bottom of the post
32
+ license:
33
+ template: Η δημοσίευση αυτή βρίσκεται υπο την άδεια :LICENSE_NAME Greekforce1821.
34
+ name: CC BY 4.0
35
+ link: https://creativecommons.org/licenses/by/4.0/
36
+
37
+ # Displayed in the footer
38
+ brief: Ορισμένα δικαιώματα reserved.
39
+ verbose: >-
40
+ Εκτός αλλού ή οπουδήποτε αλλού, τα blog posts σε αυτήν την σελίδα βρίσκονται υπο την άδεια
41
+ Creative Commons Attribution 4.0 International (CC BY 4.0) του δημιουργού.
42
+
43
+ meta: Αξιοποιώντας την :PLATFORM theme :THEME.
44
+
45
+ not_found:
46
+ statment: Συγνώμη, έχουμε τοποθετήσει λάθος αυτήν την διεύθυνση URL ή υποδεικνύει κάτι που δεν υπάρχει.
47
+
48
+ notification:
49
+ update_found: Υπάρχει διαθέσιμη μια νέα έκδοση του περιεχομένου.
50
+ update: Ενημέρωση
51
+
52
+ # ----- Posts related labels -----
53
+
54
+ post:
55
+ written_by: Από
56
+ posted: Δημοσιεύθηκε
57
+ updated: Ενημερώθηκε
58
+ words: λέξεις
59
+ pageview_measure: προβολές
60
+ read_time:
61
+ unit: Λεπτά
62
+ prompt: διαβάσματος
63
+ relate_posts: Περισσότερα
64
+ share: Κοινοποιήστε
65
+ button:
66
+ next: Νεότερα
67
+ previous: Παλαιότερα
68
+ copy_code:
69
+ succeed: Αντιγράφθηκε!
70
+ share_link:
71
+ title: Αντιγραφή συνδέσμου
72
+ succeed: Η διεύθυνση αντιγράφθηκε με επιτυχία!
73
+ # pinned prompt of posts list on homepage
74
+ pin_prompt: Pinned
75
+
76
+ # Date time format.
77
+ # See: <http://strftime.net/>, <https://day.js.org/docs/en/display/format>
78
+ df:
79
+ post:
80
+ strftime: '%b %e, %Y'
81
+ dayjs: 'll'
82
+ archives:
83
+ strftime: '%b'
84
+ dayjs: 'MMM'
85
+
86
+ # categories page
87
+ categories:
88
+ category_measure:
89
+ singular: Κατηγορία
90
+ plural: Κατηγορίες
91
+ post_measure:
92
+ singular: Δημοσίευση
93
+ plural: Δημοσιεύσεις
data/_data/share.yml CHANGED
@@ -2,26 +2,24 @@
2
2
  # Icons from <https://fontawesome.com/>
3
3
 
4
4
  platforms:
5
- -
6
- type: Twitter
5
+ - type: Twitter
7
6
  icon: "fab fa-twitter"
8
7
  link: "https://twitter.com/intent/tweet?text=TITLE&url=URL"
9
- -
10
- type: Facebook
8
+
9
+ - type: Facebook
11
10
  icon: "fab fa-facebook-square"
12
11
  link: "https://www.facebook.com/sharer/sharer.php?title=TITLE&u=URL"
13
- -
14
- type: Telegram
12
+
13
+ - type: Telegram
15
14
  icon: "fab fa-telegram"
16
15
  link: "https://t.me/share/url?url=URL&text=TITLE"
17
16
 
18
17
  # Uncomment below if you need to.
19
- # -
20
- # type: Linkedin
18
+ #
19
+ # - type: Linkedin
21
20
  # icon: "fab fa-linkedin"
22
21
  # link: "https://www.linkedin.com/sharing/share-offsite/?url=URL"
23
22
  #
24
- # -
25
- # type: Weibo
23
+ # - type: Weibo
26
24
  # icon: "fab fa-weibo"
27
25
  # link: "http://service.weibo.com/share/share.php?title=TITLE&url=URL"
data/_includes/head.html CHANGED
@@ -1,13 +1,17 @@
1
- <!--
2
- The Head
3
- -->
1
+ <!-- The Head -->
4
2
 
5
3
  <head>
6
4
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
7
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
5
+ <meta name="theme-color" media="(prefers-color-scheme: light)" content="#f7f7f7">
6
+ <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#1b1b1e">
7
+ <meta name="apple-mobile-web-app-capable" content="yes">
8
+ <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
9
+ <meta
10
+ name="viewport"
11
+ content="width=device-width, user-scalable=no initial-scale=1, shrink-to-fit=no, viewport-fit=cover"
12
+ >
8
13
 
9
14
  {% if page.layout == 'home' or page.layout == 'post' %}
10
-
11
15
  {% if site.google_analytics.pv.proxy_endpoint %}
12
16
  <meta name="pv-proxy-endpoint" content="{{ site.google_analytics.pv.proxy_endpoint }}">
13
17
  {% endif %}
@@ -15,7 +19,6 @@
15
19
  {% if site.google_analytics.pv.cache_path %}
16
20
  <meta name="pv-cache-path" content="{{ site.google_analytics.pv.cache_path | relative_url }}">
17
21
  {% endif %}
18
-
19
22
  {% endif %}
20
23
 
21
24
  {% capture seo_tags %}
@@ -40,40 +43,34 @@
40
43
  {% endif %}
41
44
 
42
45
  {% assign seo_tags = seo_tags | replace: target, replacement %}
43
-
44
46
  {% endunless %}
45
-
46
47
  {% endif %}
47
48
 
48
49
  {{ seo_tags }}
49
50
 
50
51
  <title>
51
- {%- unless page.layout == "home" -%}
52
- {{ page.title | append: " | "}}
53
- {%- endunless -%}
52
+ {%- unless page.layout == 'home' -%}
53
+ {{ page.title | append: ' | ' }}
54
+ {%- endunless -%}
54
55
  {{ site.title }}
55
56
  </title>
56
57
 
57
58
  {% include favicons.html %}
58
59
 
59
60
  {% if site.resources.ignore_env != jekyll.environment and site.resources.self_hosted %}
60
-
61
61
  <link href="{{ site.data.assets[origin].webfonts | relative_url }}" rel="stylesheet">
62
62
 
63
63
  {% else %}
64
-
65
64
  {% for cdn in site.data.assets[origin].cdns %}
66
65
  <link rel="preconnect" href="{{ cdn.url }}" {{ cdn.args }}>
67
66
  <link rel="dns-prefetch" href="{{ cdn.url }}" {{ cdn.args }}>
68
67
  {% endfor %}
69
68
 
70
69
  <link rel="stylesheet" href="{{ site.data.assets[origin].webfonts | relative_url }}">
71
-
72
70
  {% endif %}
73
71
 
74
72
  <!-- GA -->
75
- {% if jekyll.environment == 'production'
76
- and site.google_analytics.id != empty and site.google_analytics.id %}
73
+ {% if jekyll.environment == 'production' and site.google_analytics.id != empty and site.google_analytics.id %}
77
74
  <link rel="preconnect" href="https://www.google-analytics.com" crossorigin="use-credentials">
78
75
  <link rel="dns-prefetch" href="https://www.google-analytics.com">
79
76
 
@@ -82,7 +79,11 @@
82
79
 
83
80
  {% if site.google_analytics.pv.proxy_endpoint %}
84
81
  {% assign proxy_url = site.google_analytics.pv.proxy_endpoint
85
- | replace: "https://", "" | split: "/" | first | prepend: "https://" %}
82
+ | replace: 'https://', ''
83
+ | split: '/'
84
+ | first
85
+ | prepend: 'https://'
86
+ %}
86
87
  <link rel="preconnect" href="{{ proxy_url }}" crossorigin="use-credentials">
87
88
  <link rel="dns-prefetch" href="{{ proxy_url }}">
88
89
  {% endif %}
@@ -97,7 +98,7 @@
97
98
  <link rel="stylesheet" href="{{ '/assets/css/style.css' | relative_url }}">
98
99
 
99
100
  {% if site.toc and page.toc %}
100
- <link rel="stylesheet" href="{{ site.data.assets[origin].bootstrap-toc.css | relative_url }}">
101
+ <link rel="stylesheet" href="{{ site.data.assets[origin].toc.css | relative_url }}">
101
102
  {% endif %}
102
103
 
103
104
  {% if page.layout == 'page' or page.layout == 'post' %}