jekyll-theme-chirpy 5.5.2 → 5.6.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 +59 -70
- data/_data/assets/cross_origin.yml +3 -3
- data/_data/assets/self_host.yml +19 -19
- data/_data/contact.yml +18 -20
- data/_data/locales/el-GR.yml +93 -0
- data/_data/share.yml +8 -10
- data/_includes/head.html +19 -18
- data/_includes/js-selector.html +42 -45
- data/_includes/mode-toggle.html +22 -31
- data/_includes/sidebar.html +20 -17
- data/_includes/toc.html +6 -6
- data/_layouts/default.html +1 -1
- data/_layouts/home.html +51 -52
- data/_sass/addon/commons.scss +107 -64
- data/_sass/addon/module.scss +2 -2
- data/_sass/addon/syntax.scss +13 -19
- data/_sass/addon/variables.scss +6 -6
- data/_sass/colors/dark-syntax.scss +6 -3
- data/_sass/colors/dark-typography.scss +19 -30
- data/_sass/colors/light-syntax.scss +1 -1
- data/_sass/colors/light-typography.scss +16 -12
- data/_sass/jekyll-theme-chirpy.scss +1 -1
- data/_sass/layout/archives.scss +13 -5
- data/_sass/layout/categories.scss +2 -1
- data/_sass/layout/category-tag.scss +9 -5
- data/_sass/layout/home.scss +45 -21
- data/_sass/layout/post.scss +53 -26
- data/assets/js/dist/categories.min.js +2 -2
- data/assets/js/dist/commons.min.js +2 -2
- data/assets/js/dist/misc.min.js +2 -2
- data/assets/js/dist/page.min.js +2 -2
- data/assets/js/dist/post.min.js +2 -2
- metadata +5 -7
- data/assets/js/dist/home.min.js +0 -6
- data/assets/js/dist/pvreport.min.js +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 247d98893e58247ff3760691e9b0e3c31dd28e341676bd30b7ac8515c29b5684
|
4
|
+
data.tar.gz: a317d1089b0de4d1c84e4a1c558a5346bb6daad193c5ee268f9c3cdf178d3b11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
5
|
+
A minimal, responsive and feature-rich Jekyll theme for technical writing.
|
6
6
|
|
7
7
|
[](https://rubygems.org/gems/jekyll-theme-chirpy)
|
8
8
|
[](https://github.com/cotes2020/jekyll-theme-chirpy/actions/workflows/ci.yml)
|
@@ -10,97 +10,86 @@
|
|
10
10
|
[](https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/LICENSE)
|
11
11
|
[](https://996.icu)
|
12
12
|
|
13
|
-
[**Live Demo →**]
|
13
|
+
[**Live Demo →**][demo]
|
14
14
|
|
15
|
-
[]
|
15
|
+
[][demo]
|
16
16
|
|
17
17
|
</div>
|
18
18
|
|
19
19
|
## Features
|
20
20
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
-
|
28
|
-
-
|
29
|
-
-
|
30
|
-
-
|
31
|
-
-
|
32
|
-
-
|
33
|
-
-
|
34
|
-
-
|
35
|
-
-
|
36
|
-
-
|
37
|
-
-
|
38
|
-
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
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
|
-
|
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
|
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]
|
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
|
-
|
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,
|
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
|
74
|
+
If you'd like to sponsor this project, the following options are available.
|
94
75
|
|
95
76
|
[](https://ko-fi.com/coteschung)
|
96
|
-
[][
|
97
|
-
[][
|
77
|
+
[][donation]
|
78
|
+
[][donation]
|
98
79
|
|
99
80
|
## License
|
100
81
|
|
101
|
-
This work is published under [MIT]
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
[
|
106
|
-
[
|
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
|
-
|
26
|
-
css: https://cdn.jsdelivr.net/
|
27
|
-
js: https://cdn.jsdelivr.net/
|
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
|
data/_data/assets/self_host.yml
CHANGED
@@ -5,47 +5,47 @@ webfonts: /assets/lib/fonts/main.css
|
|
5
5
|
# Libraries
|
6
6
|
|
7
7
|
jquery:
|
8
|
-
js: /assets/lib/jquery
|
8
|
+
js: /assets/lib/jquery/jquery.min.js
|
9
9
|
|
10
10
|
bootstrap:
|
11
|
-
css: /assets/lib/bootstrap
|
12
|
-
js: /assets/lib/bootstrap
|
11
|
+
css: /assets/lib/bootstrap/bootstrap.min.css
|
12
|
+
js: /assets/lib/bootstrap/bootstrap.bundle.min.js
|
13
13
|
|
14
|
-
|
15
|
-
css: /assets/lib/
|
16
|
-
js: /assets/lib/
|
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
|
19
|
+
css: /assets/lib/fontawesome-free/css/all.min.css
|
20
20
|
|
21
21
|
search:
|
22
|
-
js: /assets/lib/simple-jekyll-search
|
22
|
+
js: /assets/lib/simple-jekyll-search/simple-jekyll-search.min.js
|
23
23
|
|
24
24
|
mermaid:
|
25
|
-
js: /assets/lib/mermaid
|
25
|
+
js: /assets/lib/mermaid/mermaid.min.js
|
26
26
|
|
27
27
|
dayjs:
|
28
28
|
js:
|
29
|
-
common: /assets/lib/dayjs
|
30
|
-
locale: /assets/lib/dayjs
|
31
|
-
relativeTime: /assets/lib/dayjs
|
32
|
-
localizedFormat: /assets/lib/dayjs
|
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
|
35
|
+
js: /assets/lib/countup.js/countUp.min.js
|
36
36
|
|
37
37
|
magnific-popup:
|
38
|
-
css: /assets/lib/magnific-popup
|
39
|
-
js: /assets/lib/magnific-popup
|
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
|
42
|
+
js: /assets/lib/lazysizes/lazysizes.min.js
|
43
43
|
|
44
44
|
clipboard:
|
45
|
-
js: /assets/lib/clipboard
|
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
|
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
|
-
|
5
|
-
|
6
|
-
-
|
7
|
-
|
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
|
-
#
|
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
|
-
#
|
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
|
-
#
|
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
|
-
|
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
|
-
|
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
|
-
#
|
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="
|
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
|
-
|
52
|
-
|
53
|
-
|
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
|
-
|
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].
|
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' %}
|