jekyll-theme-chirpy 3.0.3 → 3.1.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: 6d1deb397c90c655e4dd568846ead4b81dbd2df583f824376881ff3742c786fb
4
- data.tar.gz: 2969990a0e9dd0d6f29c84b0e7ab3524c4826129839e56bbc26f2ffcd4444987
3
+ metadata.gz: a6e95f5a798562bf2d4bb37251a70cb3c2a20d137c57e0bf0160c32c68418738
4
+ data.tar.gz: a91318d6031acec809319bbaaa5619a9b62be8618c5a61f7b57de7ac27a80ca4
5
5
  SHA512:
6
- metadata.gz: ffbb1857e75f93898afa0460b30b4c7103a21880da05649356a040ca6c5b1aff62a0b9cfcaf381045ca30d7bf06706e21a5775051dfa7083e01b4d9a81746ba1
7
- data.tar.gz: 52eeecada99b630956f16d643c6d7f05d971828fb1f75c89d74764efe9161a04fc0093f6903e63c44b5fa8ecccc9d8c086ba4007f061e486433ef1e3afbfa49f
6
+ metadata.gz: 37f59d4ebac543e73d0b1a9dbd190f939c910c3b8f44a989f012f2cc59c190c729e84554bdff197a52e4df7c54e07355a8c12273deecf0defd6b6da43c4888dd
7
+ data.tar.gz: 4d69ec49ac10c5a40c1f0a232b39f11be692a57814602ecc025c1aa7036e66e750a22bf574f59e32e3f2755e4a3cef6203ac3f2f683649891b482c0023769db2
data/404.html CHANGED
@@ -6,9 +6,6 @@ permalink: /404.html
6
6
  redirect_from:
7
7
  - /norobots/
8
8
  - /assets/
9
- - /tabs/
10
- - /categories/
11
- - /tags/
12
9
  - /posts/
13
10
 
14
11
  dynamic_title: true
@@ -16,5 +13,9 @@ dynamic_title: true
16
13
 
17
14
  <div class="lead">
18
15
  <p>Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. </p>
19
- <p><a href="{{ site.baseurl }}/">Head back Home</a> to try finding it again, or search for it on the <a href="{{ site.baseurl }}/tabs/archives">Archives page</a>.</p>
16
+ <p>
17
+ <a href="{{ '/' | relative_url }}">Head back Home</a>
18
+ to try finding it again, or search for it on the
19
+ <a href="{{ 'archives' | relative_url }}">Archives page</a>.
20
+ </p>
20
21
  </div>
data/README.md CHANGED
@@ -2,9 +2,10 @@
2
2
 
3
3
  Language: English | [简体中文](https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/docs/README.zh-CN.md)
4
4
 
5
+ [![Gem Version](https://img.shields.io/gem/v/jekyll-theme-chirpy?color=brightgreen)](https://rubygems.org/gems/jekyll-theme-chirpy)
5
6
  [![Build Status](https://github.com/cotes2020/jekyll-theme-chirpy/workflows/build/badge.svg?branch=master&event=push)](https://github.com/cotes2020/jekyll-theme-chirpy/actions?query=branch%3Amaster+event%3Apush)
6
7
  [![Codacy Badge](https://api.codacy.com/project/badge/Grade/8220b926db514f13afc3f02b7f884f4b)](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)
7
- [![GitHub license](https://img.shields.io/github/license/cotes2020/jekyll-theme-chirpy.svg)](https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/LICENSE)
8
+ [![GitHub license](https://img.shields.io/github/license/cotes2020/jekyll-theme-chirpy.svg?color=blue)](https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/LICENSE)
8
9
  [![996.icu](https://img.shields.io/badge/link-996.icu-%23FF4D5B.svg)](https://996.icu)
9
10
 
10
11
  A minimal, sidebar, responsive web design Jekyll theme that focuses on text presentation. Designed to help you record and share your knowledge easily. [Live Demo »](https://chirpy.cotes.info)
@@ -49,10 +50,10 @@ Follow the [Jekyll Docs](https://jekyllrb.com/docs/installation/) to complete th
49
50
 
50
51
  There are two ways to get the theme:
51
52
 
52
- - Install from [RubyGems](https://rubygems.org/gems/jekyll-theme-chirpy)
53
- - Fork from GitHub
53
+ - **Install from RubyGems** - Easy to upgrade, isolate irrelevant project files so you can focus on writing.
54
+ - **Fork from GitHub** - Convenient for custom development, but difficult to upgrade, only suitable for web developers.
54
55
 
55
- ### Install From Rubygems
56
+ ### Install From RubyGems
56
57
 
57
58
  Add this line to your Jekyll site's `Gemfile`:
58
59
 
@@ -72,15 +73,15 @@ And then execute:
72
73
  $ bundle
73
74
  ```
74
75
 
75
- Finally, copy the extra files (refer to the [starter project][starter] for the detailed file directory structure) from the theme's gem to your Jekyll site, and append all the variables of the theme's `_config.yml` to your Jekyll site.
76
+ Finally, copy the required files from the theme's gem (for detailed files, see [starter project][starter]) to your Jekyll site.
76
77
 
77
- > **Hint**: To locate the theme’s gem, execute:
78
+ > **Hint**: To locate the installed theme’s gem, execute:
78
79
  >
79
80
  ```console
80
81
  $ bundle info --path jekyll-theme-chirpy
81
82
  ```
82
83
 
83
- Or you can [use the starter template][use-starter] to create a Jekyll site to save time copying contents from theme's gem.
84
+ 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!
84
85
 
85
86
  ### Fork From GitHub
86
87
 
@@ -120,7 +121,7 @@ Update the variables of `_config.yml` as needed. Some of them are typical option
120
121
  - `url`
121
122
  - `avatar`
122
123
  - `timezone`
123
- - `theme_mode`
124
+ - `lang`
124
125
 
125
126
  ### Running Local Server
126
127
 
@@ -153,12 +154,12 @@ For security reasons, GitHub Pages build runs on `safe` mode, which restricts us
153
154
 
154
155
  Quickly check the files needed for GitHub Actions build:
155
156
 
156
- 1. 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.
157
- 2. Ensuer your Jekyll site has file `/tools/test.sh` and `/tools/deploy.sh`. Otherwise, copy them from this repo to your Jekyll site.
157
+ - 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.
158
+ - Ensuer your Jekyll site has file `tools/test.sh` and `tools/deploy.sh`. Otherwise, copy them from this repo to your Jekyll site.
158
159
 
159
- Next, rename your repoistory to `<GH-USERNAME>.github.io` on GitHub.
160
+ And then rename your repoistory to `<GH-USERNAME>.github.io` on GitHub.
160
161
 
161
- And then publish your Jekyll site by:
162
+ Now publish your Jekyll site by:
162
163
 
163
164
  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.
164
165
 
@@ -218,5 +219,6 @@ This work is published under [MIT](https://github.com/cotes2020/jekyll-theme-chi
218
219
 
219
220
  [starter]: https://github.com/cotes2020/chirpy-starter
220
221
  [use-starter]: https://github.com/cotes2020/chirpy-starter/generate
221
- [workflow]:https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/.github/workflows/pages-deploy.yml.hook
222
- [jb]:https://www.jetbrains.com/?from=jekyll-theme-chirpy
222
+ [workflow]: https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/.github/workflows/pages-deploy.yml.hook
223
+ [jb]: https://www.jetbrains.com/?from=jekyll-theme-chirpy
224
+
data/_config.yml CHANGED
@@ -1,5 +1,18 @@
1
1
  # The Site Configuration
2
2
 
3
+ # Import the theme
4
+ theme: jekyll-theme-chirpy
5
+
6
+ # Only if your site type is GitHub Project sites and doesn't have a custom domain,
7
+ # change below value to '/projectname'.
8
+ baseurl: ''
9
+
10
+ # the HTML language tag › https://www.w3.org/International/questions/qa-choosing-language-tags
11
+ lang: en-US
12
+
13
+ # Change to your timezone › http://www.timezoneconverter.com/cgi-bin/findzone/findzone
14
+ timezone: Asia/Shanghai
15
+
3
16
  # jekyll-seo-tag settings › https://github.com/jekyll/jekyll-seo-tag/blob/master/docs/usage.md
4
17
  # --------------------------
5
18
  title: Chirpy # the main title
@@ -36,14 +49,6 @@ social:
36
49
  google_site_verification: google_meta_tag_verification # change to your verification string
37
50
  # --------------------------
38
51
 
39
-
40
- # Only if your site type is GitHub Project sites and doesn't have a custom domain,
41
- # change below value to '/projectname'.
42
- baseurl: ''
43
-
44
- # Change to your timezone › http://www.timezoneconverter.com/cgi-bin/findzone/findzone
45
- timezone: Asia/Shanghai
46
-
47
52
  google_analytics:
48
53
  id: '' # Fill with your Google Analytics ID
49
54
  pv:
@@ -55,11 +60,6 @@ google_analytics:
55
60
  proxy_endpoint: ''
56
61
  cache: false # pv data local cache, good for the users from GFW area.
57
62
 
58
- disqus:
59
- comments: false # boolean type, the global switch for posts comments.
60
- shortname: '' # Fill with your Disqus shortname. › https://help.disqus.com/en/articles/1717111-what-s-a-shortname
61
-
62
-
63
63
  # Prefer color scheme setting.
64
64
  #
65
65
  # Note: Keep empty will follow the system prefer color by default,
@@ -69,7 +69,6 @@ disqus:
69
69
  # Available options:
70
70
  #
71
71
  # light - Use the light color scheme
72
- #
73
72
  # dark - Use the dark color scheme
74
73
  #
75
74
  theme_mode: # [light|dark]
@@ -87,8 +86,14 @@ avatar: https://cdn.jsdelivr.net/gh/cotes2020/chirpy-images/commons/avatar.jpg
87
86
  # boolean type, the global switch for ToC in posts.
88
87
  toc: true
89
88
 
89
+ disqus:
90
+ comments: false # boolean type, the global switch for posts comments.
91
+ shortname: '' # Fill with your Disqus shortname. › https://help.disqus.com/en/articles/1717111-what-s-a-shortname
92
+
90
93
  paginate: 10
91
94
 
95
+ # ------------ The following options are not recommended to be modified ------------------
96
+
92
97
  kramdown:
93
98
  syntax_highlighter: rouge
94
99
  syntax_highlighter_opts: # Rouge Options › https://github.com/jneen/rouge#full-options
@@ -101,7 +106,7 @@ kramdown:
101
106
  start_line: 1
102
107
 
103
108
  # DO NOT change this unless you're a Pro user on Jekyll and Web development,
104
- # or you think you're smart enough to change other relevant URLs within this template.
109
+ # Or you think you're smart enough to change other relevant URLs within this template.
105
110
  permalink: /posts/:title/
106
111
 
107
112
  collections:
@@ -119,55 +124,19 @@ defaults:
119
124
  layout: post
120
125
  comments: true # Enable comments in posts.
121
126
  toc: true # Display TOC column in posts.
122
- breadcrumb:
123
- -
124
- label: Posts
125
- url: /
126
127
  -
127
128
  scope:
128
129
  path: _drafts
129
130
  values:
130
131
  comments: false
131
- -
132
- scope:
133
- path: index.html
134
- values:
135
- breadcrumb:
136
- -
137
- label: Posts
138
- -
139
- scope:
140
- path: tags
141
- values:
142
- breadcrumb:
143
- -
144
- label: Home
145
- url: /
146
- -
147
- label: Tags
148
- url: /tabs/tags/
149
- -
150
- scope:
151
- path: categories
152
- values:
153
- breadcrumb:
154
- -
155
- label: Home
156
- url: /
157
- -
158
- label: Categories
159
- url: /tabs/categories/
160
132
  -
161
133
  scope:
162
134
  path: ''
163
135
  type: tabs # see `site.collections`
164
136
  values:
165
137
  layout: page
138
+ permalink: /:title/
166
139
  dynamic_title: true # Hide title in mobile screens.
167
- breadcrumb:
168
- -
169
- label: Home
170
- url: /
171
140
 
172
141
  sass:
173
142
  style: compressed
@@ -183,8 +152,9 @@ compress_html:
183
152
 
184
153
  exclude:
185
154
  - vendor
186
- - Gemfile.lock
187
155
  - Gemfile
156
+ - Gemfile.lock
157
+ - jekyll-theme-chirpy.gemspec
188
158
  - tools
189
159
  - docs
190
160
  - README.md
@@ -4,7 +4,7 @@
4
4
  -->
5
5
 
6
6
  <div id="disqus" class="pt-2 pb-2">
7
- <p class="text-center text-muted pb-5">
7
+ <p class="text-center text-muted small pb-5">
8
8
  Loading comments from <a href="https://disqus.com/">Disqus</a> ...
9
9
  </p>
10
10
  </div>
@@ -9,7 +9,8 @@
9
9
  <p>{{ page.previous.title }}</p>
10
10
  </a>
11
11
  {% else %}
12
- <span class="btn btn-outline-primary disabled">
12
+ <span class="btn btn-outline-primary disabled"
13
+ prompt="{{ site.data.label.post.button.previous | default: 'previous' }}">
13
14
  <p>-</p>
14
15
  </span>
15
16
  {% endif %}
@@ -20,7 +21,8 @@
20
21
  <p>{{ page.next.title }}</p>
21
22
  </a>
22
23
  {% else %}
23
- <span class="btn btn-outline-primary disabled">
24
+ <span class="btn btn-outline-primary disabled"
25
+ prompt="{{ site.data.label.post.button.next | default: 'next' }}">
24
26
  <p>-</p>
25
27
  </span>
26
28
  {% endif %}
@@ -5,21 +5,42 @@
5
5
  <div id="topbar-wrapper" class="row justify-content-center topbar-down">
6
6
  <div id="topbar" class="col-11 d-flex h-100 align-items-center justify-content-between">
7
7
  <span id="breadcrumb">
8
- {% for item in page.breadcrumb %}
9
- {% if item.url %}
8
+
9
+ {% assign paths = page.url | split: '/' %}
10
+
11
+ {% if paths.size == 0 %}
12
+ <!-- index page -->
13
+ <span>{{ 'Posts' }}</span>
14
+ {% else %}
15
+
16
+ {% for item in paths %}
17
+
18
+ {% if forloop.first %}
19
+ {% unless page.layout == 'post' %}
20
+ <span>
21
+ <a href="{{ '/' | relative_url }}">{{ 'Home' }}</a>
22
+ </span>
23
+ {% endunless %}
24
+
25
+ {% elsif forloop.last %}
26
+ <span>{{ page.title }}</span>
27
+
28
+ {% else %}
10
29
  <span>
11
- <a href="{{ site.baseurl }}{{ item.url | remove: '.html'}}">
12
- {{ item.label }}
30
+ {% assign url = item %}
31
+ {% if item == 'posts' and page.layout == 'post' %}
32
+ {% assign url = '/' %}
33
+ {% endif %}
34
+ <a href="{{ url | relative_url }}">
35
+ {{ item | capitalize }}
13
36
  </a>
14
37
  </span>
15
- {% else %}
16
- <span>{{ item.label }}</span>
38
+
17
39
  {% endif %}
40
+
18
41
  {% endfor %}
19
42
 
20
- {% unless page.layout == "home" %}
21
- <span>{{ page.title }}</span>
22
- {% endunless %}
43
+ {% endif %}
23
44
 
24
45
  </span><!-- endof #breadcrumb -->
25
46
 
@@ -11,7 +11,7 @@ layout: compress
11
11
  {% endif %}
12
12
  {% endcapture %}
13
13
 
14
- <html lang="{{ site.lang | split: "_" | first | default: "en" }}" {{ prefer_mode }}>
14
+ <html lang="{{ site.lang | default: "en-US" }}" {{ prefer_mode }}>
15
15
 
16
16
  {% include head.html %}
17
17
 
data/_layouts/post.html CHANGED
@@ -44,8 +44,8 @@ layout: default
44
44
 
45
45
  <div class="post-content">
46
46
 
47
- {% if page.image %}
48
- <img src="{{ page.image }}" class="preview-img" alt="Preview Image">
47
+ {% if page.image.src %}
48
+ <img src="{{ page.image.src }}" class="preview-img" alt="{{ page.image.alt | default: "Preview Image" }}">
49
49
  {% endif %}
50
50
 
51
51
  {{ content }}
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * The styles for Jekyll theme Chirpy
3
3
  *
4
- * Chirpy v3.0.3 (https://github.com/cotes2020/jekyll-theme-chirpy)
4
+ * Chirpy v3.1.0 (https://github.com/cotes2020/jekyll-theme-chirpy)
5
5
  * © 2019 Cotes Chung
6
6
  * MIT Licensed
7
7
  */
@@ -44,7 +44,7 @@
44
44
  @include align-center;
45
45
 
46
46
  margin-top: 0;
47
- margin-bottom: 2.5rem;
47
+ margin-bottom: 2.5rem !important;
48
48
  }
49
49
  }
50
50
 
@@ -85,6 +85,12 @@
85
85
  &.btn-outline-primary.disabled:focus {
86
86
  box-shadow: none;
87
87
  }
88
+ &::before {
89
+ color: var(--text-muted-color);
90
+ font-size: 0.65rem;
91
+ text-transform: uppercase;
92
+ content: attr(prompt);
93
+ }
88
94
  }
89
95
 
90
96
  p {
@@ -95,12 +101,6 @@
95
101
  }
96
102
 
97
103
  a {
98
- &::before {
99
- color: var(--text-muted-color);
100
- font-size: 0.65rem;
101
- text-transform: uppercase;
102
- content: attr(prompt);
103
- }
104
104
  &:first-child {
105
105
  border-top-right-radius: 0;
106
106
  border-bottom-right-radius: 0;
@@ -112,6 +112,7 @@
112
112
  right: 0.5px;
113
113
  }
114
114
  }
115
+
115
116
  } // .post-navigation
116
117
 
117
118
  @keyframes fade-up {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Chirpy v3.0.3 (https://github.com/cotes2020/jekyll-theme-chirpy/)
2
+ * Chirpy v3.1.0 (https://github.com/cotes2020/jekyll-theme-chirpy/)
3
3
  * © 2019 Cotes Chung
4
4
  * MIT Licensed
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Chirpy v3.0.3 (https://github.com/cotes2020/jekyll-theme-chirpy/)
2
+ * Chirpy v3.1.0 (https://github.com/cotes2020/jekyll-theme-chirpy/)
3
3
  * © 2019 Cotes Chung
4
4
  * MIT Licensed
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Chirpy v3.0.3 (https://github.com/cotes2020/jekyll-theme-chirpy/)
2
+ * Chirpy v3.1.0 (https://github.com/cotes2020/jekyll-theme-chirpy/)
3
3
  * © 2019 Cotes Chung
4
4
  * MIT Licensed
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Chirpy v3.0.3 (https://github.com/cotes2020/jekyll-theme-chirpy/)
2
+ * Chirpy v3.1.0 (https://github.com/cotes2020/jekyll-theme-chirpy/)
3
3
  * © 2019 Cotes Chung
4
4
  * MIT Licensed
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Chirpy v3.0.3 (https://github.com/cotes2020/jekyll-theme-chirpy/)
2
+ * Chirpy v3.1.0 (https://github.com/cotes2020/jekyll-theme-chirpy/)
3
3
  * © 2019 Cotes Chung
4
4
  * MIT Licensed
5
5
  */
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-chirpy
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.3
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cotes Chung
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-28 00:00:00.000000000 Z
11
+ date: 2021-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll