jekyll-theme-chirpy 6.1.0 → 6.2.1

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.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +24 -23
  3. data/_data/locales/tr-TR.yml +4 -4
  4. data/_data/origin/cors.yml +11 -11
  5. data/_includes/comments/disqus.html +2 -1
  6. data/_includes/datetime.html +5 -4
  7. data/_includes/footer.html +30 -28
  8. data/_includes/head.html +1 -1
  9. data/_includes/notification.html +24 -0
  10. data/_includes/post-nav.html +9 -12
  11. data/_includes/post-paginator.html +77 -75
  12. data/_includes/post-sharing.html +6 -4
  13. data/_includes/related-posts.html +31 -39
  14. data/_includes/search-loader.html +10 -8
  15. data/_includes/search-results.html +1 -1
  16. data/_includes/sidebar.html +63 -60
  17. data/_includes/toc.html +3 -3
  18. data/_includes/topbar.html +17 -10
  19. data/_includes/trending-tags.html +3 -3
  20. data/_includes/update-list.html +4 -4
  21. data/_layouts/archives.html +18 -19
  22. data/_layouts/category.html +2 -2
  23. data/_layouts/default.html +51 -32
  24. data/_layouts/home.html +12 -11
  25. data/_layouts/page.html +21 -63
  26. data/_layouts/post.html +72 -70
  27. data/_layouts/tag.html +2 -2
  28. data/_sass/addon/commons.scss +118 -149
  29. data/_sass/addon/module.scss +12 -3
  30. data/_sass/addon/syntax.scss +51 -29
  31. data/_sass/addon/variables.scss +10 -5
  32. data/_sass/colors/syntax-dark.scss +138 -0
  33. data/_sass/colors/syntax-light.scss +179 -0
  34. data/_sass/colors/{dark-typography.scss → typography-dark.scss} +18 -19
  35. data/_sass/colors/{light-typography.scss → typography-light.scss} +17 -16
  36. data/_sass/layout/category-tag.scss +0 -5
  37. data/_sass/layout/home.scss +18 -35
  38. data/_sass/layout/post.scss +46 -51
  39. data/_sass/{jekyll-theme-chirpy.scss → main.scss} +2 -8
  40. data/assets/404.html +1 -3
  41. data/assets/css/{style.scss → jekyll-theme-chirpy.scss} +1 -1
  42. data/assets/js/data/swcache.js +32 -33
  43. data/assets/js/dist/categories.min.js +2 -4
  44. data/assets/js/dist/commons.min.js +2 -4
  45. data/assets/js/dist/home.min.js +2 -4
  46. data/assets/js/dist/misc.min.js +2 -4
  47. data/assets/js/dist/page.min.js +2 -4
  48. data/assets/js/dist/post.min.js +2 -4
  49. data/assets/js/pwa/sw.js +56 -57
  50. metadata +9 -11
  51. data/_data/authors.yml +0 -17
  52. data/_data/contact.yml +0 -28
  53. data/_data/share.yml +0 -25
  54. data/_sass/colors/dark-syntax.scss +0 -91
  55. data/_sass/colors/light-syntax.scss +0 -83
data/_layouts/page.html CHANGED
@@ -2,67 +2,25 @@
2
2
  layout: default
3
3
  ---
4
4
 
5
- {% include lang.html %}
6
- {% include origin-type.html %}
7
-
8
- {% if layout.tail_includes %}
9
- {% assign has_tail = true %}
10
- {% endif %}
11
-
12
- <div class="row{% unless has_tail %} mb-5{% endunless %}">
13
- <!-- core -->
14
- <div id="core-wrapper" class="col-12 col-lg-11 col-xl-9 pe-xl-4">
15
- {% capture padding %}
16
- {% unless page.layout == 'home' %}px-1{% endunless %}
17
- {% endcapture %}
18
-
19
- <div class="post {{ padding | strip }} px-md-2">
20
- {% capture _content %}
21
- {% if layout.refactor or page.layout == 'page' %}
22
- {% include refactor-content.html content=content lang=lang %}
23
- {% else %}
24
- {{ content }}
25
- {% endif %}
26
- {% endcapture %}
27
-
28
- {% if page.layout == 'page' or page.collection == 'tabs' %}
29
- {% assign tab_key = page.title | downcase %}
30
- {% assign title = site.data.locales[lang].tabs[tab_key] | default: page.title %}
31
- <h1 class="dynamic-title">
32
- {{ title }}
33
- </h1>
34
- <div class="post-content">
35
- {{ _content }}
36
- </div>
37
- {% else %}
38
- {{ _content }}
39
- {% endif %}
40
- </div>
41
- </div>
42
- <!-- #core-wrapper -->
43
-
44
- <!-- panel -->
45
- <div id="panel-wrapper" class="col-xl-3 ps-2 text-muted">
46
- <div class="access">
47
- {% include_cached update-list.html lang=lang %}
48
- {% include_cached trending-tags.html lang=lang %}
49
- </div>
50
-
51
- {% for _include in layout.panel_includes %}
52
- {% assign _include_path = _include | append: '.html' %}
53
- {% include {{ _include_path }} lang=lang %}
54
- {% endfor %}
55
- </div>
56
- </div>
57
-
58
- <!-- tail -->
59
- {% if has_tail %}
60
- <div class="row">
61
- <div id="tail-wrapper" class="col-12 col-lg-11 col-xl-9 px-3 pe-xl-4 mt-5">
62
- {% for _include in layout.tail_includes %}
63
- {% assign _include_path = _include | append: '.html' %}
64
- {% include {{ _include_path }} lang=lang %}
65
- {% endfor %}
5
+ {% capture _content %}
6
+ {% if layout.refactor or page.layout == 'page' %}
7
+ {% include refactor-content.html content=content lang=lang %}
8
+ {% else %}
9
+ {{ content }}
10
+ {% endif %}
11
+ {% endcapture %}
12
+
13
+ <article class="px-1">
14
+ {% if page.layout == 'page' or page.collection == 'tabs' %}
15
+ {% assign tab_key = page.title | downcase %}
16
+ {% assign title = site.data.locales[lang].tabs[tab_key] | default: page.title %}
17
+ <h1 class="dynamic-title">
18
+ {{ title }}
19
+ </h1>
20
+ <div class="content">
21
+ {{ _content }}
66
22
  </div>
67
- </div>
68
- {% endif %}
23
+ {% else %}
24
+ {{ _content }}
25
+ {% endif %}
26
+ </article>
data/_layouts/post.html CHANGED
@@ -11,9 +11,10 @@ tail_includes:
11
11
 
12
12
  {% include lang.html %}
13
13
 
14
- <h1 data-toc-skip>{{ page.title }}</h1>
14
+ <header>
15
+ <h1 data-toc-skip>{{ page.title }}</h1>
15
16
 
16
- <div class="post-meta text-muted">
17
+ <div class="post-meta text-muted">
17
18
  <!-- published date -->
18
19
  <span>
19
20
  {{ site.data.locales[lang].post.posted }}
@@ -22,99 +23,101 @@ tail_includes:
22
23
 
23
24
  <!-- lastmod date -->
24
25
  {% if page.last_modified_at and page.last_modified_at != page.date %}
25
- <span>
26
- {{ site.data.locales[lang].post.updated }}
27
- {% include datetime.html date=page.last_modified_at tooltip=true lang=lang %}
28
- </span>
26
+ <span>
27
+ {{ site.data.locales[lang].post.updated }}
28
+ {% include datetime.html date=page.last_modified_at tooltip=true lang=lang %}
29
+ </span>
29
30
  {% endif %}
30
31
 
31
- {% if page.image %}
32
- {% capture src %}src="{{ page.image.path | default: page.image }}"{% endcapture %}
33
- {% capture class %}class="preview-img{% if page.image.no_bg %}{{ ' no-bg' }}{% endif %}"{% endcapture %}
34
- {% capture alt %}alt="{{ page.image.alt | xml_escape | default: "Preview Image" }}"{% endcapture %}
32
+ {% if page.image %}
33
+ {% capture src %}src="{{ page.image.path | default: page.image }}"{% endcapture %}
34
+ {% capture class %}class="preview-img{% if page.image.no_bg %}{{ ' no-bg' }}{% endif %}"{% endcapture %}
35
+ {% capture alt %}alt="{{ page.image.alt | xml_escape | default: "Preview Image" }}"{% endcapture %}
35
36
 
36
- {% capture lqip %}
37
+ {% capture lqip %}
37
38
  {% if page.image.lqip %}
38
39
  lqip="{{ page.image.lqip }}"
39
40
  {% endif %}
40
41
  {% endcapture %}
41
42
 
42
- <div class="mt-3 mb-3">
43
- <img {{ src }} {{ class }} {{ alt }} w="1200" h="630" {{ lqip | strip }}>
44
- {%- if page.image.alt -%}
45
- <figcaption class="text-center pt-2 pb-2">{{ page.image.alt }}</figcaption>
46
- {%- endif -%}
47
- </div>
48
- {% endif %}
49
-
50
- <div class="d-flex justify-content-between">
51
- <!-- author(s) -->
52
- <span>
53
- {% if page.author %}
54
- {% assign authors = page.author %}
55
- {% elsif page.authors %}
56
- {% assign authors = page.authors %}
57
- {% endif %}
58
-
59
- {{ site.data.locales[lang].post.written_by }}
43
+ <div class="mt-3 mb-3">
44
+ <img {{ src }} {{ class }} {{ alt }} w="1200" h="630" {{ lqip | strip }}>
45
+ {%- if page.image.alt -%}
46
+ <figcaption class="text-center pt-2 pb-2">{{ page.image.alt }}</figcaption>
47
+ {%- endif -%}
48
+ </div>
49
+ {% endif %}
60
50
 
61
- <em>
62
- {% if authors %}
63
- {% for author in authors %}
64
- <a href="{{ site.data.authors[author].url }}">{{ site.data.authors[author].name }}</a>
65
- {% unless forloop.last %}</em>, <em>{% endunless %}
66
- {% endfor %}
67
- {% else %}
68
- <a href="{{ site.social.links[0] }}">{{ site.social.name }}</a>
69
- {% endif %}
70
- </em>
71
- </span>
51
+ <div class="d-flex justify-content-between">
52
+ <!-- author(s) -->
53
+ <span>
54
+ {% if page.author %}
55
+ {% assign authors = page.author %}
56
+ {% elsif page.authors %}
57
+ {% assign authors = page.authors %}
58
+ {% endif %}
59
+
60
+ {{ site.data.locales[lang].post.written_by }}
61
+
62
+ <em>
63
+ {% if authors %}
64
+ {% for author in authors %}
65
+ <a href="{{ site.data.authors[author].url }}">{{ site.data.authors[author].name }}</a>
66
+ {% unless forloop.last %}{{ '</em>, <em>' }}{% endunless %}
67
+ {% endfor %}
68
+ {% else %}
69
+ <a href="{{ site.social.links[0] }}">{{ site.social.name }}</a>
70
+ {% endif %}
71
+ </em>
72
+ </span>
72
73
 
73
- <div>
74
74
  <!-- read time -->
75
75
  {% include read-time.html content=content prompt=true lang=lang %}
76
76
  </div>
77
+ <!-- .d-flex -->
78
+ </div>
79
+ <!-- .post-meta -->
80
+ </header>
77
81
 
78
- </div> <!-- .d-flex -->
79
-
80
- </div> <!-- .post-meta -->
81
-
82
- <div class="post-content">
82
+ <div class="content">
83
83
  {{ content }}
84
84
  </div>
85
85
 
86
86
  <div class="post-tail-wrapper text-muted">
87
-
88
87
  <!-- categories -->
89
88
  {% if page.categories.size > 0 %}
90
- <div class="post-meta mb-3">
91
- <i class="far fa-folder-open fa-fw me-1"></i>
92
- {% for category in page.categories %}
93
- <a href='{{ site.baseurl }}/categories/{{ category | slugify | url_encode }}/'>{{ category }}</a>
94
- {%- unless forloop.last -%}, {%- endunless -%}
95
- {% endfor %}
96
- </div>
89
+ <div class="post-meta mb-3">
90
+ <i class="far fa-folder-open fa-fw me-1"></i>
91
+ {% for category in page.categories %}
92
+ <a href="{{ site.baseurl }}/categories/{{ category | slugify | url_encode }}/">{{ category }}</a>
93
+ {%- unless forloop.last -%},{%- endunless -%}
94
+ {% endfor %}
95
+ </div>
97
96
  {% endif %}
98
97
 
99
98
  <!-- tags -->
100
99
  {% if page.tags.size > 0 %}
101
- <div class="post-tags">
102
- <i class="fa fa-tags fa-fw me-1"></i>
100
+ <div class="post-tags">
101
+ <i class="fa fa-tags fa-fw me-1"></i>
103
102
  {% for tag in page.tags %}
104
- <a href="{{ site.baseurl }}/tags/{{ tag | slugify | url_encode }}/"
105
- class="post-tag no-text-decoration" >
106
- {{- tag -}}
107
- </a>
103
+ <a
104
+ href="{{ site.baseurl }}/tags/{{ tag | slugify | url_encode }}/"
105
+ class="post-tag no-text-decoration"
106
+ >
107
+ {{- tag -}}
108
+ </a>
108
109
  {% endfor %}
109
- </div>
110
+ </div>
110
111
  {% endif %}
111
112
 
112
- <div class="post-tail-bottom
113
- d-flex justify-content-between align-items-center mt-3 pt-5 pb-2">
113
+ <div
114
+ class="
115
+ post-tail-bottom
116
+ d-flex justify-content-between align-items-center mt-5 pb-2
117
+ "
118
+ >
114
119
  <div class="license-wrapper">
115
-
116
120
  {% if site.data.locales[lang].copyright.license.template %}
117
-
118
121
  {% capture _replacement %}
119
122
  <a href="{{ site.data.locales[lang].copyright.license.link }}">
120
123
  {{ site.data.locales[lang].copyright.license.name }}
@@ -122,12 +125,11 @@ tail_includes:
122
125
  {% endcapture %}
123
126
 
124
127
  {{ site.data.locales[lang].copyright.license.template | replace: ':LICENSE_NAME', _replacement }}
125
-
126
128
  {% endif %}
127
129
  </div>
128
130
 
129
131
  {% include post-sharing.html lang=lang %}
130
-
131
- </div><!-- .post-tail-bottom -->
132
-
133
- </div><!-- div.post-tail-wrapper -->
132
+ </div>
133
+ <!-- .post-tail-bottom -->
134
+ </div>
135
+ <!-- div.post-tail-wrapper -->
data/_layouts/tag.html CHANGED
@@ -11,12 +11,12 @@ layout: page
11
11
  {{ page.title }}
12
12
  <span class="lead text-muted ps-2">{{ page.posts | size }}</span>
13
13
  </h1>
14
- <ul class="post-content ps-0">
14
+ <ul class="content ps-0">
15
15
  {% for post in page.posts %}
16
16
  <li class="d-flex justify-content-between px-md-3">
17
17
  <a href="{{ post.url | relative_url }}">{{ post.title }}</a>
18
18
  <span class="dash flex-grow-1"></span>
19
- {% include datetime.html date=post.date wrap='span' class='text-muted small' lang=lang %}
19
+ {% include datetime.html date=post.date class='text-muted small text-nowrap' lang=lang %}
20
20
  </li>
21
21
  {% endfor %}
22
22
  </ul>