jekyll-theme-chirpy-g 1.0.2

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 (144) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/README.md +61 -0
  4. data/_data/locales/ar.yml +91 -0
  5. data/_data/locales/bg-BG.yml +81 -0
  6. data/_data/locales/cs-CZ.yml +89 -0
  7. data/_data/locales/de-DE.yml +87 -0
  8. data/_data/locales/el-GR.yml +91 -0
  9. data/_data/locales/en.yml +91 -0
  10. data/_data/locales/es-ES.yml +77 -0
  11. data/_data/locales/fa-IR.yaml +91 -0
  12. data/_data/locales/fi-FI.yml +90 -0
  13. data/_data/locales/fr-FR.yml +77 -0
  14. data/_data/locales/hu-HU.yml +92 -0
  15. data/_data/locales/id-ID.yml +77 -0
  16. data/_data/locales/it-IT.yml +90 -0
  17. data/_data/locales/ko-KR.yml +84 -0
  18. data/_data/locales/my-MM.yml +77 -0
  19. data/_data/locales/nl-NL.yml +90 -0
  20. data/_data/locales/pt-BR.yml +77 -0
  21. data/_data/locales/ru-RU.yml +87 -0
  22. data/_data/locales/sl-SI.yml +91 -0
  23. data/_data/locales/sv-SE.yml +91 -0
  24. data/_data/locales/th.yml +91 -0
  25. data/_data/locales/tr-TR.yml +77 -0
  26. data/_data/locales/uk-UA.yml +77 -0
  27. data/_data/locales/vi-VN.yml +76 -0
  28. data/_data/locales/zh-CN.yml +83 -0
  29. data/_data/locales/zh-TW.yml +83 -0
  30. data/_data/origin/basic.yml +39 -0
  31. data/_data/origin/cors.yml +54 -0
  32. data/_includes/analytics/cloudflare.html +6 -0
  33. data/_includes/analytics/fathom.html +6 -0
  34. data/_includes/analytics/goatcounter.html +6 -0
  35. data/_includes/analytics/google.html +13 -0
  36. data/_includes/analytics/matomo.html +13 -0
  37. data/_includes/analytics/umami.html +6 -0
  38. data/_includes/comment.html +5 -0
  39. data/_includes/comments/disqus.html +57 -0
  40. data/_includes/comments/giscus.html +55 -0
  41. data/_includes/comments/utterances.html +38 -0
  42. data/_includes/datetime.html +20 -0
  43. data/_includes/embed/audio.html +35 -0
  44. data/_includes/embed/bilibili.html +9 -0
  45. data/_includes/embed/twitch.html +8 -0
  46. data/_includes/embed/video.html +59 -0
  47. data/_includes/embed/youtube.html +9 -0
  48. data/_includes/favicons.html +19 -0
  49. data/_includes/footer.html +49 -0
  50. data/_includes/head.html +126 -0
  51. data/_includes/js-selector.html +86 -0
  52. data/_includes/jsdelivr-combine.html +26 -0
  53. data/_includes/lang.html +10 -0
  54. data/_includes/language-alias.html +70 -0
  55. data/_includes/media-url.html +37 -0
  56. data/_includes/metadata-hook.html +1 -0
  57. data/_includes/notification.html +24 -0
  58. data/_includes/origin-type.html +13 -0
  59. data/_includes/pageviews/goatcounter.html +21 -0
  60. data/_includes/post-description.html +25 -0
  61. data/_includes/post-nav.html +34 -0
  62. data/_includes/post-paginator.html +91 -0
  63. data/_includes/post-sharing.html +52 -0
  64. data/_includes/read-time.html +37 -0
  65. data/_includes/refactor-content.html +255 -0
  66. data/_includes/related-posts.html +94 -0
  67. data/_includes/search-loader.html +49 -0
  68. data/_includes/search-results.html +10 -0
  69. data/_includes/sidebar.html +97 -0
  70. data/_includes/toc-status.html +10 -0
  71. data/_includes/toc.html +9 -0
  72. data/_includes/topbar.html +77 -0
  73. data/_includes/trending-tags.html +46 -0
  74. data/_includes/update-list.html +40 -0
  75. data/_layouts/archives.html +35 -0
  76. data/_layouts/categories.html +138 -0
  77. data/_layouts/category.html +24 -0
  78. data/_layouts/compress.html +10 -0
  79. data/_layouts/default.html +86 -0
  80. data/_layouts/graph.html +8 -0
  81. data/_layouts/home.html +122 -0
  82. data/_layouts/page.html +20 -0
  83. data/_layouts/post.html +179 -0
  84. data/_layouts/tag.html +23 -0
  85. data/_layouts/tags.html +22 -0
  86. data/_sass/abstracts/_breakpoints.scss +73 -0
  87. data/_sass/abstracts/_index.scss +4 -0
  88. data/_sass/abstracts/_mixins.scss +80 -0
  89. data/_sass/abstracts/_placeholders.scss +160 -0
  90. data/_sass/abstracts/_variables.scss +30 -0
  91. data/_sass/base/_base.scss +476 -0
  92. data/_sass/base/_index.scss +4 -0
  93. data/_sass/base/_reset.scss +41 -0
  94. data/_sass/base/_syntax.scss +253 -0
  95. data/_sass/base/_typography.scss +266 -0
  96. data/_sass/components/_buttons.scss +51 -0
  97. data/_sass/components/_index.scss +2 -0
  98. data/_sass/components/_popups.scss +172 -0
  99. data/_sass/layout/_footer.scss +36 -0
  100. data/_sass/layout/_index.scss +4 -0
  101. data/_sass/layout/_panel.scss +70 -0
  102. data/_sass/layout/_sidebar.scss +258 -0
  103. data/_sass/layout/_topbar.scss +86 -0
  104. data/_sass/main.bundle.scss +2 -0
  105. data/_sass/main.scss +4 -0
  106. data/_sass/pages/_archives.scss +140 -0
  107. data/_sass/pages/_categories.scss +82 -0
  108. data/_sass/pages/_category-tag.scss +63 -0
  109. data/_sass/pages/_graph.scss +51 -0
  110. data/_sass/pages/_home.scss +173 -0
  111. data/_sass/pages/_index.scss +8 -0
  112. data/_sass/pages/_post.scss +498 -0
  113. data/_sass/pages/_search.scss +184 -0
  114. data/_sass/pages/_tags.scss +23 -0
  115. data/_sass/themes/_dark.scss +318 -0
  116. data/_sass/themes/_light.scss +330 -0
  117. data/assets/404.html +14 -0
  118. data/assets/css/jekyll-theme-chirpy-g.scss +10 -0
  119. data/assets/feed.xml +54 -0
  120. data/assets/img/favicons/android-chrome-192x192.png +0 -0
  121. data/assets/img/favicons/android-chrome-512x512.png +0 -0
  122. data/assets/img/favicons/apple-touch-icon.png +0 -0
  123. data/assets/img/favicons/browserconfig.xml +13 -0
  124. data/assets/img/favicons/favicon-16x16.png +0 -0
  125. data/assets/img/favicons/favicon-32x32.png +0 -0
  126. data/assets/img/favicons/favicon.ico +0 -0
  127. data/assets/img/favicons/mstile-150x150.png +0 -0
  128. data/assets/img/favicons/site.webmanifest +26 -0
  129. data/assets/js/data/graph.json +14 -0
  130. data/assets/js/data/mathjax.js +25 -0
  131. data/assets/js/data/search.json +20 -0
  132. data/assets/js/data/swconf.js +47 -0
  133. data/assets/js/dist/app.min.js +7 -0
  134. data/assets/js/dist/categories.min.js +4 -0
  135. data/assets/js/dist/commons.min.js +4 -0
  136. data/assets/js/dist/graph.min.js +4 -0
  137. data/assets/js/dist/home.min.js +4 -0
  138. data/assets/js/dist/misc.min.js +4 -0
  139. data/assets/js/dist/page.min.js +4 -0
  140. data/assets/js/dist/post.min.js +4 -0
  141. data/assets/js/dist/sw.min.js +7 -0
  142. data/assets/js/dist/theme.min.js +4 -0
  143. data/assets/robots.txt +10 -0
  144. metadata +286 -0
@@ -0,0 +1,140 @@
1
+ @use '../abstracts/breakpoints' as bp;
2
+ @use '../abstracts/placeholders';
3
+
4
+ #archives {
5
+ letter-spacing: 0.03rem;
6
+
7
+ @include bp.lt(bp.get(sm)) {
8
+ margin-top: -1rem;
9
+
10
+ ul {
11
+ letter-spacing: 0;
12
+ }
13
+ }
14
+
15
+ $timeline-width: 4px;
16
+
17
+ %timeline {
18
+ content: '';
19
+ width: $timeline-width;
20
+ position: relative;
21
+ float: left;
22
+ background-color: var(--timeline-color);
23
+ }
24
+
25
+ .year {
26
+ height: 3.5rem;
27
+ font-size: 1.5rem;
28
+ position: relative;
29
+ left: 2px;
30
+ margin-left: -$timeline-width;
31
+
32
+ &::before {
33
+ @extend %timeline;
34
+
35
+ height: 72px;
36
+ left: 79px;
37
+ bottom: 16px;
38
+ }
39
+
40
+ &:first-child::before {
41
+ @extend %timeline;
42
+
43
+ height: 32px;
44
+ top: 24px;
45
+ }
46
+
47
+ /* Year dot */
48
+ &::after {
49
+ content: '';
50
+ display: inline-block;
51
+ position: relative;
52
+ border-radius: 50%;
53
+ width: 12px;
54
+ height: 12px;
55
+ left: 21.5px;
56
+ border: 3px solid;
57
+ background-color: var(--timeline-year-dot-color);
58
+ border-color: var(--timeline-node-bg);
59
+ box-shadow: 0 0 2px 0 #c2c6cc;
60
+ z-index: 1;
61
+ }
62
+ }
63
+
64
+ ul {
65
+ li {
66
+ font-size: 1.1rem;
67
+ line-height: 3rem;
68
+
69
+ @extend %text-ellipsis;
70
+
71
+ &:nth-child(odd) {
72
+ background-color: var(--main-bg, #ffffff);
73
+ background-image: linear-gradient(
74
+ to left,
75
+ #ffffff,
76
+ #fbfbfb,
77
+ #fbfbfb,
78
+ #fbfbfb,
79
+ #ffffff
80
+ );
81
+ }
82
+
83
+ &::before {
84
+ @extend %timeline;
85
+
86
+ top: 0;
87
+ left: 77px;
88
+ height: 3.1rem;
89
+ }
90
+ }
91
+
92
+ &:last-child li:last-child::before {
93
+ height: 1.5rem;
94
+ }
95
+ } /* #archives ul */
96
+
97
+ .date {
98
+ white-space: nowrap;
99
+ display: inline-block;
100
+ position: relative;
101
+ right: 0.5rem;
102
+
103
+ &.month {
104
+ width: 1.4rem;
105
+ text-align: center;
106
+ }
107
+
108
+ &.day {
109
+ font-size: 85%;
110
+ font-family: Lato, sans-serif;
111
+ }
112
+ }
113
+
114
+ a {
115
+ /* post title in Archvies */
116
+ margin-left: 2.5rem;
117
+ position: relative;
118
+ top: 0.1rem;
119
+
120
+ &:hover {
121
+ border-bottom: none;
122
+ }
123
+
124
+ &::before {
125
+ /* the dot before post title */
126
+ content: '';
127
+ display: inline-block;
128
+ position: relative;
129
+ border-radius: 50%;
130
+ width: 8px;
131
+ height: 8px;
132
+ float: left;
133
+ top: 1.35rem;
134
+ left: 71px;
135
+ background-color: var(--timeline-node-bg);
136
+ box-shadow: 0 0 3px 0 #c2c6cc;
137
+ z-index: 1;
138
+ }
139
+ }
140
+ } /* #archives */
@@ -0,0 +1,82 @@
1
+ @use '../abstracts/variables' as v;
2
+ @use '../abstracts/placeholders';
3
+
4
+ %-category-icon-color {
5
+ color: gray;
6
+ }
7
+
8
+ .categories {
9
+ margin-bottom: 2rem;
10
+ border-color: var(--categories-border);
11
+
12
+ &.card,
13
+ .list-group {
14
+ @extend %rounded;
15
+ }
16
+
17
+ .card-header {
18
+ $radius: calc(v.$radius-lg - 1px);
19
+
20
+ padding: 0.75rem;
21
+ border-radius: $radius;
22
+ border-bottom: 0;
23
+
24
+ &.hide-border-bottom {
25
+ border-bottom-left-radius: 0;
26
+ border-bottom-right-radius: 0;
27
+ }
28
+ }
29
+
30
+ i {
31
+ @extend %-category-icon-color;
32
+
33
+ font-size: 86%; /* fontawesome icons */
34
+ }
35
+
36
+ .list-group-item {
37
+ border-left: none;
38
+ border-right: none;
39
+ padding-left: 2rem;
40
+
41
+ &:first-child {
42
+ border-top-left-radius: 0;
43
+ border-top-right-radius: 0;
44
+ }
45
+
46
+ &:last-child {
47
+ border-bottom: 0;
48
+ }
49
+ }
50
+ } /* .categories */
51
+
52
+ .category-trigger {
53
+ width: 1.7rem;
54
+ height: 1.7rem;
55
+ border-radius: 50%;
56
+ text-align: center;
57
+ color: #6c757d !important;
58
+
59
+ i {
60
+ position: relative;
61
+ height: 0.7rem;
62
+ width: 1rem;
63
+ transition: transform 300ms ease;
64
+ }
65
+
66
+ &:hover {
67
+ i {
68
+ color: var(--categories-icon-hover-color);
69
+ }
70
+ }
71
+ }
72
+
73
+ /* only works on desktop */
74
+ @media (hover: hover) {
75
+ .category-trigger:hover {
76
+ background-color: var(--categories-hover-bg);
77
+ }
78
+ }
79
+
80
+ .rotate {
81
+ transform: rotate(-90deg);
82
+ }
@@ -0,0 +1,63 @@
1
+ @use '../abstracts/breakpoints' as bp;
2
+ @use '../abstracts/mixins' as mx;
3
+ @use '../abstracts/placeholders';
4
+
5
+ .dash {
6
+ margin: 0 0.5rem 0.6rem 0.5rem;
7
+ border-bottom: 2px dotted var(--dash-color);
8
+ }
9
+
10
+ #page-category,
11
+ #page-tag {
12
+ ul > li {
13
+ line-height: 1.5rem;
14
+ padding: 0.6rem 0;
15
+
16
+ /* dot */
17
+ &::before {
18
+ background: #999999;
19
+ width: 5px;
20
+ height: 5px;
21
+ border-radius: 50%;
22
+ display: block;
23
+ content: '';
24
+ position: relative;
25
+ top: 0.6rem;
26
+ margin-right: 0.5rem;
27
+
28
+ @include bp.lt(bp.get(sm)) {
29
+ margin: 0 0.5rem;
30
+ }
31
+ }
32
+
33
+ /* post's title */
34
+ > a {
35
+ @extend %no-bottom-border;
36
+
37
+ font-size: 1.1rem;
38
+
39
+ @include bp.lt(bp.get(sm)) {
40
+ @include mx.text-ellipsis;
41
+ }
42
+ }
43
+ }
44
+ }
45
+
46
+ /* tag icon */
47
+ #page-tag h1 > i {
48
+ font-size: 1.2rem;
49
+ }
50
+
51
+ #page-category h1 > i {
52
+ font-size: 1.25rem;
53
+ }
54
+
55
+ #page-category,
56
+ #page-tag,
57
+ #access-lastmod {
58
+ a:hover {
59
+ @extend %link-hover;
60
+
61
+ margin-bottom: -1px; /* Avoid jumping */
62
+ }
63
+ }
@@ -0,0 +1,51 @@
1
+ .graph-container {
2
+ width: 100%;
3
+ height: 80vh;
4
+ display: flex;
5
+ justify-content: center;
6
+ position: relative;
7
+ border-radius: 0.7em;
8
+ border: 1px solid var(--graph-border) !important;
9
+ overflow: hidden;
10
+ align-items: center;
11
+ }
12
+
13
+ .post-node {
14
+ r: 10;
15
+ fill: var(--graph-post-node-color);
16
+ stroke: var(--graph-post-node-stroke-color);
17
+ stroke-width: 1.5px;
18
+ }
19
+
20
+ .post-node:hover {
21
+ fill: var(--graph-post-node-hover-color);
22
+ stroke: var(--graph-post-node-hover-stroke-color);
23
+ }
24
+
25
+ .tag-node {
26
+ fill: var(--graph-tag-node-color);
27
+ stroke: var(--graph-tag-node-stroke-color);
28
+ stroke-width: 1.5px;
29
+ }
30
+
31
+ .tag-node:hover {
32
+ fill: var(--graph-tag-node-hover-color);
33
+ stroke: var(--graph-tag-node-hover-stroke-color);
34
+ }
35
+
36
+ .post-label {
37
+ text-anchor: middle;
38
+ font-size: 12px;
39
+ fill: var(--text-color);
40
+ }
41
+
42
+ .tag-label {
43
+ text-anchor: middle;
44
+ font-size: 12px;
45
+ fill: var(--text-color);
46
+ }
47
+
48
+ .link {
49
+ stroke: var(--graph-edges-color);
50
+ stroke-opacity: 0.5;
51
+ }
@@ -0,0 +1,173 @@
1
+ @use '../abstracts/variables' as v;
2
+ @use '../abstracts/breakpoints' as bp;
3
+ @use '../abstracts/placeholders';
4
+
5
+ #post-list {
6
+ margin-top: 2rem;
7
+
8
+ @include bp.lg {
9
+ margin-top: 2.5rem;
10
+ }
11
+
12
+ .card-wrapper {
13
+ &:hover {
14
+ text-decoration: none;
15
+ }
16
+
17
+ &:not(:last-child) {
18
+ margin-bottom: 1.25rem;
19
+ }
20
+ }
21
+
22
+ .card {
23
+ border: 0;
24
+ background: none;
25
+
26
+ %img-radius {
27
+ border-radius: v.$radius-lg v.$radius-lg 0 0;
28
+
29
+ @include bp.md {
30
+ border-radius: 0 v.$radius-lg v.$radius-lg 0;
31
+ }
32
+ }
33
+
34
+ .preview-img {
35
+ @extend %img-radius;
36
+
37
+ img {
38
+ @extend %img-radius;
39
+ }
40
+ }
41
+
42
+ .card-body {
43
+ height: 100%;
44
+ padding: 1rem;
45
+
46
+ @include bp.md {
47
+ padding: 1.75rem 1.75rem 1.25rem;
48
+ }
49
+
50
+ .card-title {
51
+ @extend %text-clip;
52
+
53
+ color: var(--heading-color) !important;
54
+ font-size: 1.25rem;
55
+ }
56
+
57
+ %muted {
58
+ color: var(--text-muted-color) !important;
59
+ }
60
+
61
+ .card-text {
62
+ @include bp.md {
63
+ display: inherit !important;
64
+ }
65
+
66
+ &.content {
67
+ @extend %muted;
68
+
69
+ p {
70
+ @extend %text-clip;
71
+
72
+ line-height: 1.5;
73
+ margin: 0;
74
+ }
75
+ }
76
+ }
77
+
78
+ .post-meta {
79
+ @extend %muted;
80
+
81
+ i {
82
+ &:not(:first-child) {
83
+ margin-left: 1.5rem;
84
+
85
+ @include bp.md {
86
+ margin-left: 1.75rem;
87
+ }
88
+ }
89
+ }
90
+
91
+ em {
92
+ @extend %normal-font-style;
93
+
94
+ color: inherit;
95
+ }
96
+
97
+ > div:first-child {
98
+ display: block;
99
+
100
+ @extend %text-ellipsis;
101
+ }
102
+ }
103
+ }
104
+ }
105
+ } /* #post-list */
106
+
107
+ .pagination {
108
+ color: var(--text-color);
109
+ font-family: Lato, sans-serif;
110
+ justify-content: space-evenly;
111
+
112
+ @include bp.lg {
113
+ font-size: 0.85rem;
114
+ justify-content: center;
115
+ }
116
+
117
+ a:hover {
118
+ text-decoration: none;
119
+ }
120
+
121
+ .page-item {
122
+ @include bp.lt(bp.get(lg)) {
123
+ &:not(:first-child):not(:last-child) {
124
+ display: none;
125
+ }
126
+ }
127
+
128
+ @include bp.lg {
129
+ &:not(:last-child) {
130
+ margin-right: 0.7rem;
131
+ }
132
+ }
133
+
134
+ .page-link {
135
+ color: var(--btn-patinator-text-color);
136
+ padding: 0 0.6rem;
137
+ display: -webkit-box;
138
+ -webkit-box-pack: center;
139
+ -webkit-box-align: center;
140
+ border-radius: 0.5rem;
141
+ border: 0;
142
+ background-color: inherit;
143
+ }
144
+
145
+ &.active {
146
+ .page-link {
147
+ background-color: var(--btn-paginator-hover-color);
148
+ }
149
+ }
150
+
151
+ &:not(.active) {
152
+ .page-link {
153
+ &:hover {
154
+ box-shadow: inset var(--btn-border-color) 0 0 0 1px;
155
+ }
156
+ }
157
+ }
158
+
159
+ &.disabled {
160
+ cursor: not-allowed;
161
+
162
+ .page-link {
163
+ color: rgba(108, 117, 125, 0.57);
164
+ }
165
+ }
166
+ } /* .page-item */
167
+
168
+ .page-index {
169
+ @include bp.lg {
170
+ display: none;
171
+ }
172
+ }
173
+ }
@@ -0,0 +1,8 @@
1
+ @forward 'search';
2
+ @forward 'home';
3
+ @forward 'post';
4
+ @forward 'categories';
5
+ @forward 'tags';
6
+ @forward 'archives';
7
+ @forward 'category-tag';
8
+ @forward 'graph';