jekyll-theme-acg 1.0.1 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +53 -1
  3. data/_config.yml +25 -17
  4. data/{source/_includes → _includes}/README.md +0 -0
  5. data/_includes/article.html +8 -0
  6. data/{source/_includes → _includes}/footer.html +2 -4
  7. data/_includes/header.html +27 -0
  8. data/_includes/item-category.html +26 -0
  9. data/_includes/item-date.html +10 -0
  10. data/_includes/item-pin.html +2 -0
  11. data/_includes/item-tag.html +29 -0
  12. data/_includes/posts.html +53 -0
  13. data/_includes/style.html +22 -0
  14. data/{source/_includes → _includes}/toc.html +0 -0
  15. data/_layouts/categories.html +21 -0
  16. data/_layouts/category.html +14 -0
  17. data/{source/_includes/head.html → _layouts/default.html} +12 -9
  18. data/_layouts/home.html +54 -0
  19. data/_layouts/page.html +13 -0
  20. data/_layouts/post.html +24 -0
  21. data/_layouts/tag.html +14 -0
  22. data/_layouts/tags.html +21 -0
  23. data/_sass/markdown.scss +86 -0
  24. data/_sass/root.scss +99 -0
  25. data/_sass/scrollbar.scss +24 -0
  26. data/assets/404.html +6 -0
  27. data/assets/about.md +11 -0
  28. data/assets/categories.html +4 -0
  29. data/assets/css/style.scss +5 -0
  30. data/assets/tags.html +4 -0
  31. data/index.html +3 -0
  32. metadata +73 -31
  33. data/source/_includes/body.html +0 -5
  34. data/source/_includes/header.html +0 -31
  35. data/source/_includes/main.html +0 -12
  36. data/source/_includes/style.html +0 -80
  37. data/source/_layouts/default.html +0 -8
  38. data/source/_layouts/home.html +0 -125
  39. data/source/_layouts/post.html +0 -44
  40. data/source/_sass/markdown.scss +0 -35
  41. data/source/_sass/root.scss +0 -39
  42. data/source/assets/css/style.scss +0 -16
@@ -0,0 +1,13 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {% assign color = page.color | default: site.color %}
6
+
7
+ <div class="w-acg min-h-screen mt-16">
8
+ <div class="w-full py-16 text-{{ color }}-50 flex flex-col justify-center items-center content-center">
9
+ <div class="text-center text-4xl font-serif">{{ page.title }}</div>
10
+ <div class="text-center text-base font-sans">{{ page.description }}</div>
11
+ </div>
12
+ <article class="w-full my-4 mx-auto p-4 rounded-lg text-black bg-{{ color }}-50 bg-opacity-75 markdown-body">{{ content }}</article>
13
+ </div>
@@ -0,0 +1,24 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ {% assign color = page.color | default: site.color %}
5
+ {% assign title = page.title | default: site.title %}
6
+ {% assign description = page.description | default: site.description %}
7
+
8
+ <div class="w-full mt-16 p-16 flex flex-col justify-center items-center select-none text-{{ color }}-50">
9
+ <div class="w-3/4 py-4 text-center font-serif text-4xl">{{ title }}</div>
10
+ <div class="w-2/3 py-1 text-center font-sans text-base">{{ description }}</div>
11
+ </div>
12
+
13
+ {% include article.html %}
14
+
15
+ <div class="mx-auto flex justify-between w-acg space-x-4">
16
+ <a class="w-1/2 p-4 flex items-center rounded-lg shadow-xl flex-grow bg-{{ color }}-50 bg-opacity-75 {% unless page.next.id %}opacity-0{% endunless %}" {% if page.next.id %}href="{{ page.next.id | relative_url }}"{% endif %}>
17
+ <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 flex-shrink-0 text-{{ color }}-600" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 15l-3-3m0 0l3-3m-3 3h8M3 12a9 9 0 1118 0 9 9 0 01-18 0z" /></svg>
18
+ <span class="ml-4">{{ page.next.title | default: "" }}</span>
19
+ </a>
20
+ <a class="w-1/2 p-4 flex items-center flex-row-reverse rounded-lg shadow-xl flex-grow bg-{{ color }}-50 bg-opacity-75 {% unless page.previous.id %}opacity-0{% endunless %}" {% if page.previous.id %}href="{{ page.previous.id | relative_url }}"{% endif %}>
21
+ <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 flex-shrink-0 text-{{ color }}-600" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 9l3 3m0 0l-3 3m3-3H8m13 0a9 9 0 11-18 0 9 9 0 0118 0z" /></svg>
22
+ <span class="mr-4">{{ page.previous.title | default: "" }}</span>
23
+ </a>
24
+ </div>
data/_layouts/tag.html ADDED
@@ -0,0 +1,14 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ {% assign color = page.color | default: site.color %}
5
+ {% assign title = page.title | capitalize %}
6
+
7
+ <div class="w-acg min-h-screen">
8
+ <div class="w-full mt-16 p-16 flex justify-center">
9
+ {% include item-tag.html name=page.title zoom=true %}
10
+ </div>
11
+ <div class="w-full m-auto p-4 flex flex-col space-y-4">
12
+ {% include posts.html posts=page.posts %}
13
+ </div>
14
+ </div>
@@ -0,0 +1,21 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ {% assign color = page.color | default: site.color %}
5
+ {% assign tagList = "" | split: "" %}
6
+ {% for item in site.tags %}
7
+ {% assign tagName = item[0] %}
8
+ {% assign tagList = tagList | push: tagName %}
9
+ {% endfor %}
10
+ {% assign tagList = tagList | sort %}
11
+
12
+ <div class="min-h-screen py-16 flex flex-wrap justify-center items-center content-center select-none">
13
+ <div class="w-full py-8 font-serif text-4xl text-{{ color }}-50 text-center">{{ site.tagtitle | default: "TAGS" }}</div>
14
+
15
+ {% for tagName in tagList %}
16
+ {% assign tagCount = site.tags[tagName].size %}
17
+ <div class="m-1 px-2 bg-{{ color }}-50 bg-opacity-75 rounded">
18
+ {% include item-tag.html name=tagName count=tagCount %}
19
+ </div>
20
+ {% endfor %}
21
+ </div>
@@ -0,0 +1,86 @@
1
+ .markdown-body h1,
2
+ .markdown-body h2 {
3
+ border-bottom-color: var(--theme-600);
4
+ }
5
+ .markdown-body hr {
6
+ background-color: var(--theme-600);
7
+ }
8
+
9
+ .markdown-body blockquote {
10
+ color: var(--theme-500);
11
+ border-left-color: var(--theme-600);
12
+ }
13
+
14
+ .markdown-body code:not(.hljs) {
15
+ color: var(--theme-600);
16
+ }
17
+
18
+ .markdown-body a {
19
+ font-weight: 500;
20
+ color: var(--theme-600);
21
+ }
22
+ .markdown-body a:hover {
23
+ text-decoration: underline;
24
+ }
25
+ .markdown-body a.reversefootnote {
26
+ font-family: monospace;
27
+ }
28
+
29
+ .markdown-body .highlight pre,
30
+ .markdown-body pre {
31
+ background-color: rgba(0, 0, 0, 0.75);
32
+ }
33
+
34
+ .markdown-body ol {
35
+ list-style-type: decimal;
36
+ }
37
+ .markdown-body ol ol,
38
+ .markdown-body ul ol {
39
+ list-style-type: lower-roman;
40
+ }
41
+ .markdown-body ol ol ol,
42
+ .markdown-body ul ol ol,
43
+ .markdown-body ol ul ol,
44
+ .markdown-body ul ul ol {
45
+ list-style-type: lower-alpha;
46
+ }
47
+ .markdown-body ul {
48
+ list-style-type: disc;
49
+ }
50
+ .markdown-body ul ul,
51
+ .markdown-body ol ul {
52
+ list-style-type: circle;
53
+ }
54
+ .markdown-body ul ul ul,
55
+ .markdown-body ol ul ul,
56
+ .markdown-body ul ol ul,
57
+ .markdown-body ol ol ul {
58
+ list-style-type: square;
59
+ }
60
+
61
+ .markdown-body .footnotes {
62
+ padding-top: 2em;
63
+ }
64
+
65
+ .markdown-body .task-list-item {
66
+ display: flex;
67
+ align-items: center;
68
+ }
69
+ .markdown-body .task-list-item input[type="checkbox"] {
70
+ appearance: none;
71
+ }
72
+ .markdown-body .task-list-item input[type="checkbox"]::before {
73
+ content: "";
74
+ display: block;
75
+ width: 1em;
76
+ height: 1em;
77
+ line-height: 1;
78
+ margin-right: 0.5em;
79
+ text-align: center;
80
+ border-radius: 4px;
81
+ color: white;
82
+ background-color: var(--theme-600);
83
+ }
84
+ .markdown-body .task-list-item input[type="checkbox"][checked]::before{
85
+ content: "\2713";
86
+ }
data/_sass/root.scss ADDED
@@ -0,0 +1,99 @@
1
+ :root {
2
+ --gray-50: #F9FAFB;
3
+ --gray-100: #F3F4F6;
4
+ --gray-200: #E5E7EB;
5
+ --gray-300: #D1D5DB;
6
+ --gray-400: #9CA3AF;
7
+ --gray-500: #6B7280;
8
+ --gray-600: #4B5563;
9
+ --gray-700: #374151;
10
+ --gray-800: #1F2937;
11
+ --gray-900: #111827;
12
+
13
+ --red-50: #FEF2F2;
14
+ --red-100: #FEE2E2;
15
+ --red-200: #FECACA;
16
+ --red-300: #FCA5A5;
17
+ --red-400: #F87171;
18
+ --red-500: #EF4444;
19
+ --red-600: #DC2626;
20
+ --red-700: #B91C1C;
21
+ --red-800: #991B1B;
22
+ --red-900: #7F1D1D;
23
+
24
+ --yellow-50: #FFFBEB;
25
+ --yellow-100: #FEF3C7;
26
+ --yellow-200: #FDE68A;
27
+ --yellow-300: #FCD34D;
28
+ --yellow-400: #FBBF24;
29
+ --yellow-500: #F59E0B;
30
+ --yellow-600: #D97706;
31
+ --yellow-700: #B45309;
32
+ --yellow-800: #92400E;
33
+ --yellow-900: #78350F;
34
+
35
+ --green-50: #ECFDF5;
36
+ --green-100: #D1FAE5;
37
+ --green-200: #A7F3D0;
38
+ --green-300: #6EE7B7;
39
+ --green-400: #34D399;
40
+ --green-500: #10B981;
41
+ --green-600: #059669;
42
+ --green-700: #047857;
43
+ --green-800: #065F46;
44
+ --green-900: #064E3B;
45
+
46
+ --blue-50: #EFF6FF;
47
+ --blue-100: #DBEAFE;
48
+ --blue-200: #BFDBFE;
49
+ --blue-300: #93C5FD;
50
+ --blue-400: #60A5FA;
51
+ --blue-500: #3B82F6;
52
+ --blue-600: #2563EB;
53
+ --blue-700: #1D4ED8;
54
+ --blue-800: #1E40AF;
55
+ --blue-900: #1E3A8A;
56
+
57
+ --indigo-50: #EEF2FF;
58
+ --indigo-100: #E0E7FF;
59
+ --indigo-200: #C7D2FE;
60
+ --indigo-300: #A5B4FC;
61
+ --indigo-400: #818CF8;
62
+ --indigo-500: #6366F1;
63
+ --indigo-600: #4F46E5;
64
+ --indigo-700: #4338CA;
65
+ --indigo-800: #3730A3;
66
+ --indigo-900: #312E81;
67
+
68
+ --purple-50: #F5F3FF;
69
+ --purple-100: #EDE9FE;
70
+ --purple-200: #DDD6FE;
71
+ --purple-300: #C4B5FD;
72
+ --purple-400: #A78BFA;
73
+ --purple-500: #8B5CF6;
74
+ --purple-600: #7C3AED;
75
+ --purple-700: #6D28D9;
76
+ --purple-800: #5B21B6;
77
+ --purple-900: #4C1D95;
78
+
79
+ --pink-50: #FDF2F8;
80
+ --pink-100: #FCE7F3;
81
+ --pink-200: #FBCFE8;
82
+ --pink-300: #F9A8D4;
83
+ --pink-400: #F472B6;
84
+ --pink-500: #EC4899;
85
+ --pink-600: #DB2777;
86
+ --pink-700: #BE185D;
87
+ --pink-800: #9D174D;
88
+ --pink-900: #831843;
89
+ }
90
+
91
+ .bg-blur {
92
+ backdrop-filter: blur(8px);
93
+ }
94
+ .max-w-acg {
95
+ max-width: MIN(90%, 768px);
96
+ }
97
+ .w-acg {
98
+ width: MIN(90%, 768px);
99
+ }
@@ -0,0 +1,24 @@
1
+ ::-webkit-scrollbar {
2
+ width: 4px;
3
+ height: 4px;
4
+ }
5
+ ::-webkit-scrollbar-track-piece {
6
+ background: var(--theme-200);
7
+ }
8
+ ::-webkit-scrollbar-thumb {
9
+ border-radius: 4px;
10
+ background-color: var(--theme-600);
11
+ background-image: repeating-linear-gradient(
12
+ -45deg,
13
+ var(--theme-600) 0,
14
+ var(--theme-600) 32px,
15
+ var(--theme-400) 32px,
16
+ var(--theme-400) 36px
17
+ );
18
+ }
19
+ ::-webkit-scrollbar-thumb:vertical {
20
+ height: 4px;
21
+ }
22
+ ::-webkit-scrollbar-thumb:horizontal {
23
+ width: 4px;
24
+ }
data/assets/404.html ADDED
@@ -0,0 +1,6 @@
1
+ ---
2
+ layout: default
3
+ title: 404
4
+ description: Page Not Found.
5
+ permalink: /404.html
6
+ ---
data/assets/about.md ADDED
@@ -0,0 +1,11 @@
1
+ ---
2
+ layout: page
3
+ title: About
4
+ description: Info about this theme.
5
+ permalink: /about.html
6
+ ---
7
+
8
+ ## Jekyll Theme ACG
9
+
10
+ - [Github](https://github.com/coderzhaoziwei/jekyll-theme-acg)
11
+ - [RubyGems](https://rubygems.org/gems/jekyll-theme-acg)
@@ -0,0 +1,4 @@
1
+ ---
2
+ layout: categories
3
+ permalink: /categories.html
4
+ ---
@@ -0,0 +1,5 @@
1
+ ---
2
+ ---
3
+ @import "root";
4
+ @import "markdown";
5
+ @import "scrollbar";
data/assets/tags.html ADDED
@@ -0,0 +1,4 @@
1
+ ---
2
+ layout: tags
3
+ permalink: /tags.html
4
+ ---
data/index.html ADDED
@@ -0,0 +1,3 @@
1
+ ---
2
+ layout: home
3
+ ---
metadata CHANGED
@@ -1,22 +1,22 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-acg
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Coder Zhao
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-22 00:00:00.000000000 Z
11
+ date: 2021-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '4.0'
19
+ version: 4.2.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: '5.0'
@@ -24,40 +24,68 @@ dependencies:
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - ">="
27
+ - - "~>"
28
28
  - !ruby/object:Gem::Version
29
- version: '4.0'
29
+ version: 4.2.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '5.0'
33
+ - !ruby/object:Gem::Dependency
34
+ name: kramdown-parser-gfm
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: jekyll-sass-converter
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
33
61
  - !ruby/object:Gem::Dependency
34
62
  name: jekyll-feed
35
63
  requirement: !ruby/object:Gem::Requirement
36
64
  requirements:
37
- - - "~>"
65
+ - - ">="
38
66
  - !ruby/object:Gem::Version
39
- version: '0.9'
67
+ version: '0'
40
68
  type: :runtime
41
69
  prerelease: false
42
70
  version_requirements: !ruby/object:Gem::Requirement
43
71
  requirements:
44
- - - "~>"
72
+ - - ">="
45
73
  - !ruby/object:Gem::Version
46
- version: '0.9'
74
+ version: '0'
47
75
  - !ruby/object:Gem::Dependency
48
76
  name: jekyll-seo-tag
49
77
  requirement: !ruby/object:Gem::Requirement
50
78
  requirements:
51
- - - "~>"
79
+ - - ">="
52
80
  - !ruby/object:Gem::Version
53
- version: '2.1'
81
+ version: '0'
54
82
  type: :runtime
55
83
  prerelease: false
56
84
  version_requirements: !ruby/object:Gem::Requirement
57
85
  requirements:
58
- - - "~>"
86
+ - - ">="
59
87
  - !ruby/object:Gem::Version
60
- version: '2.1'
88
+ version: '0'
61
89
  - !ruby/object:Gem::Dependency
62
90
  name: jekyll-gist
63
91
  requirement: !ruby/object:Gem::Requirement
@@ -87,7 +115,7 @@ dependencies:
87
115
  - !ruby/object:Gem::Version
88
116
  version: '0'
89
117
  - !ruby/object:Gem::Dependency
90
- name: jekyll-spaceship
118
+ name: jekyll-archives
91
119
  requirement: !ruby/object:Gem::Requirement
92
120
  requirements:
93
121
  - - ">="
@@ -101,7 +129,7 @@ dependencies:
101
129
  - !ruby/object:Gem::Version
102
130
  version: '0'
103
131
  - !ruby/object:Gem::Dependency
104
- name: kramdown-parser-gfm
132
+ name: jekyll-spaceship
105
133
  requirement: !ruby/object:Gem::Requirement
106
134
  requirements:
107
135
  - - ">="
@@ -128,7 +156,7 @@ dependencies:
128
156
  - - ">="
129
157
  - !ruby/object:Gem::Version
130
158
  version: '0'
131
- description:
159
+ description: This a theme for Jekyll, which still under development.
132
160
  email: coderzhaoziwei@outlook.com
133
161
  executables: []
134
162
  extensions: []
@@ -137,20 +165,34 @@ files:
137
165
  - LICENSE
138
166
  - README.md
139
167
  - _config.yml
140
- - source/_includes/README.md
141
- - source/_includes/body.html
142
- - source/_includes/footer.html
143
- - source/_includes/head.html
144
- - source/_includes/header.html
145
- - source/_includes/main.html
146
- - source/_includes/style.html
147
- - source/_includes/toc.html
148
- - source/_layouts/default.html
149
- - source/_layouts/home.html
150
- - source/_layouts/post.html
151
- - source/_sass/markdown.scss
152
- - source/_sass/root.scss
153
- - source/assets/css/style.scss
168
+ - _includes/README.md
169
+ - _includes/article.html
170
+ - _includes/footer.html
171
+ - _includes/header.html
172
+ - _includes/item-category.html
173
+ - _includes/item-date.html
174
+ - _includes/item-pin.html
175
+ - _includes/item-tag.html
176
+ - _includes/posts.html
177
+ - _includes/style.html
178
+ - _includes/toc.html
179
+ - _layouts/categories.html
180
+ - _layouts/category.html
181
+ - _layouts/default.html
182
+ - _layouts/home.html
183
+ - _layouts/page.html
184
+ - _layouts/post.html
185
+ - _layouts/tag.html
186
+ - _layouts/tags.html
187
+ - _sass/markdown.scss
188
+ - _sass/root.scss
189
+ - _sass/scrollbar.scss
190
+ - assets/404.html
191
+ - assets/about.md
192
+ - assets/categories.html
193
+ - assets/css/style.scss
194
+ - assets/tags.html
195
+ - index.html
154
196
  homepage: https://github.com/coderzhaoziwei/jekyll-theme-acg
155
197
  licenses:
156
198
  - MIT