jekyll-theme-chirpy 4.0.2 → 4.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +66 -33
  3. data/_config.yml +9 -4
  4. data/_data/locales/en.yml +90 -0
  5. data/_data/locales/id-ID.yml +90 -0
  6. data/_data/locales/zh-CN.yml +89 -0
  7. data/_includes/disqus.html +42 -13
  8. data/_includes/footer.html +15 -8
  9. data/_includes/head.html +7 -6
  10. data/_includes/js-selector.html +8 -3
  11. data/_includes/lang.html +8 -0
  12. data/_includes/no-zero-date.html +13 -0
  13. data/_includes/panel.html +5 -3
  14. data/_includes/post-nav.html +4 -4
  15. data/_includes/post-paginator.html +9 -1
  16. data/_includes/post-sharing.html +6 -3
  17. data/_includes/read-time.html +13 -2
  18. data/_includes/refactor-content.html +91 -6
  19. data/_includes/related-posts.html +1 -1
  20. data/_includes/search-loader.html +2 -2
  21. data/_includes/search-results.html +1 -1
  22. data/_includes/sidebar.html +8 -7
  23. data/_includes/timeago.html +12 -16
  24. data/_includes/topbar.html +23 -21
  25. data/_layouts/archives.html +5 -2
  26. data/_layouts/categories.html +16 -17
  27. data/_layouts/category.html +4 -2
  28. data/_layouts/default.html +5 -1
  29. data/_layouts/home.html +5 -4
  30. data/_layouts/page.html +8 -1
  31. data/_layouts/post.html +25 -11
  32. data/_layouts/tag.html +3 -2
  33. data/_sass/addon/commons.scss +54 -25
  34. data/_sass/addon/syntax.scss +96 -36
  35. data/_sass/addon/variables.scss +25 -13
  36. data/_sass/colors/dark-syntax.scss +17 -14
  37. data/_sass/colors/dark-typography.scss +15 -13
  38. data/_sass/colors/light-syntax.scss +4 -1
  39. data/_sass/colors/light-typography.scss +12 -11
  40. data/_sass/jekyll-theme-chirpy.scss +2 -1
  41. data/_sass/layout/home.scss +30 -15
  42. data/_sass/layout/post.scss +2 -23
  43. data/_sass/variables-hook.scss +3 -0
  44. data/assets/404.html +17 -5
  45. data/assets/css/style.scss +7 -2
  46. data/assets/feed.xml +1 -1
  47. data/assets/js/data/search.json +1 -1
  48. data/assets/js/dist/categories.min.js +1 -1
  49. data/assets/js/dist/commons.min.js +1 -1
  50. data/assets/js/dist/home.min.js +2 -2
  51. data/assets/js/dist/page.min.js +2 -2
  52. data/assets/js/dist/post.min.js +2 -2
  53. data/assets/js/dist/pvreport.min.js +1 -1
  54. metadata +8 -6
  55. data/_data/date_format.yml +0 -7
  56. data/_data/label.yml +0 -19
  57. data/_data/rights.yml +0 -11
  58. data/assets/js/lib/jquery.disqusloader.min.js +0 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: df6d18d3b611f121d1caf1617ed1bbe6d24ca63029c60d306be54ff5efb1a9da
4
- data.tar.gz: 14b7a534e7a087b5bc0f51c017ac6adc0025b479a376d83be1f21a922a20a6e6
3
+ metadata.gz: 6057cfe60ef36b6391d6f4d093ecadf402f90c507f643500bfb1a7145a3e981d
4
+ data.tar.gz: d31319738e5cb098188e39a98d46de969c465594cc404a4d44bd045ceaf4fb8e
5
5
  SHA512:
6
- metadata.gz: e6d5d71c0d60161abe5e6e2c91391c447a60ec691b6fb813875e52eb5e0aee7f4e6c90807190f81a0b209c19464682d33e05e4e2b9afa0a12fddcc3970ee6608
7
- data.tar.gz: b80ed563e090b580054300421c11b87d32fd541c8a46a7e1fa12fa1c9ec33306e555b7653c62378ec6169722d7e5751b52fdf3eed2b8104a00c3c1c4865d79b6
6
+ metadata.gz: ab09866050405aba805c2e7da16c0b4338b2d89fa04d2918b82c9be4fcf8447c28fe511f9a0046f4479f640a59ea8439124a703bdead1751e70c4c9510b27bea
7
+ data.tar.gz: a804a0436785f0ade31f3382ff95f0bf3b8baff99fff278511d2aa84e90e57f2c80b8366f7b6f5081839991a1c6d1386dfe3a238b67f222663970e0e9b784305
data/README.md CHANGED
@@ -1,47 +1,70 @@
1
- # Chirpy
2
-
3
- Language: English | [简体中文](https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/docs/README.zh-CN.md)
4
-
5
- [![Gem Version](https://img.shields.io/gem/v/jekyll-theme-chirpy?color=brightgreen)](https://rubygems.org/gems/jekyll-theme-chirpy)
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)
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)
8
- [![GitHub license](https://img.shields.io/github/license/cotes2020/jekyll-theme-chirpy.svg)](https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/LICENSE)
9
- [![996.icu](https://img.shields.io/badge/link-996.icu-%23FF4D5B.svg)](https://996.icu)
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)
12
-
13
- [![Devices Mockup](https://cdn.jsdelivr.net/gh/cotes2020/chirpy-images/commons/devices-mockup.png)](https://chirpy.cotes.info)
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
- - Configurable theme mode
19
- - Double-level Categories
20
- - Last modified date for posts
42
+ - Hierarchical Categories
43
+ - Last Modified Date for Posts
21
44
  - Table of Contents
22
- - Automatically recommend related posts
23
- - Syntax highlighting
24
- - Mathematical expressions
25
- - Mermaid diagram & flowchart
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 reporting (Advanced)
31
- - SEO and Performance Optimization
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
- ### Installing the Theme Gem
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
- Finally, copy the required files from the theme's gem (for detailed files, see [starter project][starter]) to your Jekyll site.
87
+ Next, go to the installed local theme path:
65
88
 
66
- > **Hint**: To locate the installed theme’s gem, execute:
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
- > ```console
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
- 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!
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,17 @@ theme: jekyll-theme-chirpy
7
7
  # change below value to '/projectname'.
8
8
  baseurl: ''
9
9
 
10
- # the HTML language taghttps://www.w3.org/International/questions/qa-choosing-language-tags
11
- lang: en-US
10
+ # The language of the webpage http://www.lingoes.net/en/translator/langcode.htm
11
+ # If it has the same name as one of the files in folder `_data/locales`, the layout language will also be changed,
12
+ # otherwise, the layout language will use the default value of 'en'.
13
+ lang: en
12
14
 
13
15
  # Change to your timezone › http://www.timezoneconverter.com/cgi-bin/findzone/findzone
14
16
  timezone: Asia/Shanghai
15
17
 
16
18
  # jekyll-seo-tag settings › https://github.com/jekyll/jekyll-seo-tag/blob/master/docs/usage.md
17
- # --------------------------
19
+ # --------------------------
20
+
18
21
  title: Chirpy # the main title
19
22
 
20
23
  tagline: A text-focused Jekyll theme # it will display as the sub-title
@@ -47,7 +50,9 @@ social:
47
50
  # - https://www.linkedin.com/in/username
48
51
 
49
52
  google_site_verification: google_meta_tag_verification # change to your verification string
50
- # --------------------------
53
+
54
+ # ↑ --------------------------
55
+
51
56
 
52
57
  google_analytics:
53
58
  id: '' # fill in your Google Analytics ID
@@ -0,0 +1,90 @@
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
+ # the text displayed in the search bar & search results
20
+ search:
21
+ hint: search
22
+ cancel: Cancel
23
+ no_results: Oops! No result founds.
24
+
25
+ panel:
26
+ lastmod: Recent Update
27
+ trending_tags: Trending Tags
28
+ toc: Contents
29
+
30
+ # The liquid date format › http://strftime.net/
31
+ date_format:
32
+ tooltip: '%a, %b %e, %Y, %l:%M %p %z'
33
+ post:
34
+ long: '%b %e, %Y'
35
+ short: '%b %e'
36
+ archive_month: '%b'
37
+
38
+ copyright:
39
+ # Shown at the bottom of the post
40
+ license:
41
+ template: This post is licensed under :LICENSE_NAME by the author.
42
+ name: CC BY 4.0
43
+ link: https://creativecommons.org/licenses/by/4.0/
44
+
45
+ # Displayed in the footer
46
+ brief: Some rights reserved.
47
+ verbose: >-
48
+ Except where otherwise noted, the blog posts on this site are licensed
49
+ under the Creative Commons Attribution 4.0 International (CC BY 4.0) License by the author.
50
+
51
+ meta: Powered by :PLATFORM with :THEME theme.
52
+
53
+ not_found:
54
+ statment: Sorry, we've misplaced that URL or it's pointing to something that doesn't exist.
55
+ hint_template: :HEAD_BAK to try finding it again, or search for it on the :ARCHIVES_PAGE.
56
+ head_back: Head back Home
57
+ archives_page: Archives page
58
+
59
+ # ----- Posts related labels -----
60
+
61
+ post:
62
+ published: 'on'
63
+ updated: Updated
64
+ timeago:
65
+ day: days ago
66
+ hour: hours ago
67
+ minute: minutes ago
68
+ just_now: just now
69
+ words: words
70
+ pageview_measure: views
71
+ read_time:
72
+ unit: min
73
+ prompt: read
74
+ relate_posts: Further Reading
75
+ share: Share
76
+ button:
77
+ next: Newer
78
+ previous: Older
79
+ copy_code:
80
+ succeed: Copied!
81
+ share_link:
82
+ title: Copy link
83
+ succeed: Link copied successfully!
84
+ # pinned prompt of posts list on homepage
85
+ pin_prompt: Pinned
86
+
87
+ # categories page
88
+ categories:
89
+ category_measure: categories
90
+ post_measure: posts
@@ -0,0 +1,90 @@
1
+ # The layout text of site
2
+
3
+ # ----- Commons label -----
4
+
5
+ layout:
6
+ post: Postingan
7
+ category: Kategori
8
+ tag: Tagar
9
+
10
+ # The tabs of sidebar
11
+ tabs:
12
+ # format: <filename_without_extension>: <value>
13
+ home: Beranda
14
+ categories: Kategori
15
+ tags: Tagar
16
+ archives: Arsip
17
+ about: Tentang
18
+
19
+ # the text displayed in the search bar & search results
20
+ search:
21
+ hint: Cari
22
+ cancel: Batal
23
+ no_results: Ups! Tidak ada hasil yang ditemukan.
24
+
25
+ panel:
26
+ lastmod: Postingan Terbaru
27
+ trending_tags: Tagar Terpopuler
28
+ toc: Konten
29
+
30
+ # The liquid date format › http://strftime.net/
31
+ date_format:
32
+ tooltip: "%a, %e %b, %Y, %l:%M %p"
33
+ post:
34
+ long: "%e %b, %Y"
35
+ short: "%e %b"
36
+ archive_month: "%b"
37
+
38
+ copyright:
39
+ # Shown at the bottom of the post
40
+ license:
41
+ template: Postingan ini dilisensikan di bawah :LICENSE_NAME oleh penulis.
42
+ name: CC BY 4.0
43
+ link: https://creativecommons.org/licenses/by/4.0/
44
+
45
+ # Displayed in the footer
46
+ brief: Sebagian konten dilindungi.
47
+ verbose: >-
48
+ Kecuali jika dinyatakan, Postingan blog di situs ini dilisensikan
49
+ di bawah Lisensi Creative Commons Attribution 4.0 International (CC BY 4.0) oleh penulis.
50
+
51
+ meta: Didukung oleh :PLATFORM dengan tema :THEME.
52
+
53
+ not_found:
54
+ statment: Maaf, kami gagal menemukan URL itu atau memang mengarah ke sesuatu yang tidak ada.
55
+ hint_template: :HEAD_BAK untuk mencoba mencari kembali, atau cari di :ARCHIVES_PAGE.
56
+ head_back: Kembali ke Beranda
57
+ archives_page: Halaman Arsip
58
+
59
+ # ----- Posts related labels -----
60
+
61
+ post:
62
+ published: "pada"
63
+ updated: Diperbarui
64
+ timeago:
65
+ day: hari yang lalu
66
+ hour: jam yang lalu
67
+ minute: menit yang lalu
68
+ just_now: baru saja
69
+ words: kata
70
+ pageview_measure: dilihat
71
+ read_time:
72
+ unit: menit
73
+ prompt: baca
74
+ relate_posts: Postingan Lainya
75
+ share: Bagikan
76
+ button:
77
+ next: Terbaru
78
+ previous: Terlama
79
+ copy_code:
80
+ succeed: Disalin!
81
+ share_link:
82
+ title: Salin tautan
83
+ succeed: Tautan berhasil disalin!
84
+ # pinned prompt of posts list on homepage
85
+ pin_prompt: Disematkan
86
+
87
+ # categories page
88
+ categories:
89
+ category_measure: kategori
90
+ post_measure: Postingan
@@ -0,0 +1,89 @@
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
+ # the text displayed in the search bar & search results
20
+ search:
21
+ hint: 搜索
22
+ cancel: 取消
23
+ no_results: 搜索结果为空
24
+
25
+ panel:
26
+ lastmod: 最近更新
27
+ trending_tags: 热门标签
28
+ toc: 文章内容
29
+
30
+ # The liquid date format › http://strftime.net/
31
+ date_format:
32
+ tooltip: '%F, %R %z'
33
+ post:
34
+ long: '%F'
35
+ short: '%m-%d'
36
+ archive_month: '%m月'
37
+
38
+ copyright:
39
+ # Shown at the bottom of the post
40
+ license:
41
+ template: 本文由作者按照 :LICENSE_NAME 进行授权
42
+ name: CC BY 4.0
43
+ link: https://creativecommons.org/licenses/by/4.0/
44
+
45
+ # Displayed in the footer
46
+ brief: 保留部分权利。
47
+ verbose: >-
48
+ 除非另有说明,本网站上的博客文章均由作者按照知识共享署名 4.0 国际 (CC BY 4.0) 许可协议进行授权。
49
+
50
+ meta: 本站由 :PLATFORM 生成,采用 :THEME 主题。
51
+
52
+ not_found:
53
+ statment: 抱歉,我们放错了该 URL,或者它指向了不存在的内容。
54
+ hint_template: :HEAD_BAK尝试再次查找它,或在:ARCHIVES_PAGE上搜索它。
55
+ head_back: 返回主页
56
+ archives_page: 归档页面
57
+
58
+ # ----- Posts related labels -----
59
+
60
+ post:
61
+ published: 发表于
62
+ updated: 更新于
63
+ timeago:
64
+ day: 天前
65
+ hour: 小时前
66
+ minute: 分钟前
67
+ just_now: 刚刚
68
+ words: 字
69
+ pageview_measure: 次浏览
70
+ read_time:
71
+ unit: 分钟
72
+ prompt: 阅读
73
+ relate_posts: 相关文章
74
+ share: 分享
75
+ button:
76
+ next: 下一篇
77
+ previous: 上一篇
78
+ copy_code:
79
+ succeed: 已复制!
80
+ share_link:
81
+ title: 分享链接
82
+ succeed: 链接已复制!
83
+ # pinned prompt of posts list on homepage
84
+ pin_prompt: 顶置
85
+
86
+ # categories page
87
+ categories:
88
+ category_measure: 个分类
89
+ post_measure: 篇文章