jekyll-theme-fica 0.2.2 → 0.3.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 (50) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yaml +5 -9
  3. data/404.html +12 -10
  4. data/LICENSE.txt +1 -1
  5. data/License.md +2 -8
  6. data/README.md +56 -53
  7. data/_includes/Footer.html +85 -109
  8. data/_includes/Head.html +15 -2
  9. data/_includes/Header.html +14 -10
  10. data/_includes/assets/BTT.html +1 -1
  11. data/_includes/assets/comments.html +1 -1
  12. data/_layouts/home.html +2 -2
  13. data/_layouts/post.html +5 -7
  14. data/_layouts/post_list.html +103 -0
  15. data/_posts/2022-03-31-To-Know-if-the-nav-works.md +9 -8
  16. data/_posts/{2022-04-1-Demo.md → 2022-04-1-Elements-of-Fica-Theme.md} +111 -113
  17. data/_posts/2022-04-5-Getting-Started.md +8 -9
  18. data/_posts/2022-04-6-Creating-a-new-post.md +144 -136
  19. data/_posts/2023-04-24-Fica-Customization.md +43 -0
  20. data/_sass/base.scss +79 -114
  21. data/_sass/jekyll-theme-fica.scss +1 -1
  22. data/_sass/layouts/Google-fonts.scss +103 -138
  23. data/_sass/layouts/component.scss +49 -30
  24. data/_sass/layouts/layout.scss +206 -161
  25. data/_sass/layouts/typography.scss +492 -0
  26. data/_sass/layouts/variable.scss +22 -8
  27. data/assets/css/Style.scss +1 -9
  28. data/assets/favicons/android-chrome-192x192.png +0 -0
  29. data/assets/favicons/android-chrome-512x512.png +0 -0
  30. data/assets/favicons/apple-touch-icon.png +0 -0
  31. data/assets/favicons/browserconfig.xml +9 -0
  32. data/assets/favicons/favicon-16x16.png +0 -0
  33. data/assets/favicons/favicon-32x32.png +0 -0
  34. data/assets/favicons/favicon.ico +0 -0
  35. data/assets/favicons/mstile-150x150.png +0 -0
  36. data/assets/favicons/safari-pinned-tab.svg +32 -0
  37. data/assets/favicons/site.webmanifest +19 -0
  38. data/assets/img/homepage-pic.png +0 -0
  39. data/js/Main.js +55 -2
  40. data/logo.png +0 -0
  41. data/post/index.html +3 -3
  42. metadata +24 -33
  43. data/.github/workflows/.ci_BASE_2002.yaml.swp +0 -0
  44. data/.github/workflows/.ci_LOCAL_2002.yaml.swp +0 -0
  45. data/.github/workflows/.ci_REMOTE_2002.yaml.swp +0 -0
  46. data/.github/workflows/ci_BACKUP_2002.yaml +0 -34
  47. data/.github/workflows/ci_BASE_2002.yaml +0 -27
  48. data/.github/workflows/ci_LOCAL_2002.yaml +0 -27
  49. data/.github/workflows/ci_REMOTE_2002.yaml +0 -27
  50. data/_layouts/post_home.html +0 -113
@@ -1,136 +1,144 @@
1
- ---
2
- layout: post
3
- site-title: Creating a new post
4
- author: Involts
5
- ---
6
-
7
- This post shows how to create a new post on the `Fica` Theme. Even if you have previous experience with Jekyll, this article is worth reading, because many features require specific variables to be set.
8
-
9
- # Creating a File and Naming a post
10
-
11
- Create a new file named `YYY-MM-DD-TITLE.EXTENSION` (.EXTENSION may be `.md` or `.markdown`) and put it on the `_posts` folder.
12
-
13
- # Font Matter
14
-
15
- Basic Font Matter
16
-
17
- | Font Matter | Description
18
- | --------------------------------------|------------------
19
- | `layouts` | This specifies the layout file to use. It may be `home` layout for the homepage, `post` layout for post, `default` or `page` layout/s the original look of the site, and `post-home` layout for homepage of the post/s.
20
- | `site-title` | This displays the website title. **EXCEPT THE HOMEPAGE**
21
- | `author` | This is optional for the post because the authour is set on the `_config.yml` file.
22
- | `home` | **This is only for the homepage** It displays the website title so that you will not write the website title.
23
- | `pin` | This pins the post to the top of the post-home layout.
24
-
25
- Examples:
26
-
27
- - Homepage:
28
-
29
- ```yml
30
- ---
31
- layout: home
32
- home: true
33
- ---
34
-
35
- ```
36
-
37
- - About
38
-
39
- ```yml
40
- ---
41
- layout: default
42
- site-title: About
43
- permalink: /About/
44
- ---
45
-
46
- ```
47
-
48
- - Post Home
49
-
50
- ```yml
51
- ---
52
- layout: post_home
53
- site-title: post
54
- ---
55
- ```
56
-
57
- - Post
58
-
59
- ```yml
60
- ---
61
- layout: post
62
- site-title: Creating a new post
63
- author: Involts
64
- ---
65
- ```
66
-
67
- if it is pinned:
68
- ```yml
69
- ---
70
- layout: post
71
- site-title: Creating a new post
72
- author: Involts
73
- pin: true
74
- ---
75
- ```
76
-
77
-
78
- # Syntax
79
-
80
- - Inline Code
81
-
82
- ```
83
- `inline code part`
84
- ```
85
-
86
- - Code Block
87
-
88
- Markdown symbol ``` can easily create a code block as follows:
89
-
90
- ```
91
- Plaintext Code Snippet.
92
- ```
93
- ### Specifying Language in Code Block
94
-
95
- Markdown symbol ```{language} can easily create a code block as follows:
96
-
97
- ````yml
98
- ```yml
99
- title: Fica Theme
100
- ```
101
- ````
102
-
103
- ### Line Number
104
-
105
- All languages except `plaintext`, `console`, and `terminal` will display line numbers. When you want to hide the line number of a code block, add the class `nolineno` to it:
106
-
107
- ````markdown
108
- ```bash
109
- echo 'No more line numbers'
110
- ```
111
- {: .nolineno }
112
- ````
113
-
114
- #### Liquid Codes
115
-
116
- If you want to display the `Liquid` snippet, surround the liquid code with `{% raw %}` and `{% endraw %}`:
117
-
118
- ````markdown
119
- {% raw %}
120
- ```liquid
121
- {% if product.title contains 'Pack' %}
122
- This product's title contains the word Pack.
123
- {% endif %}
124
- ```
125
- {% endraw %}
126
- ````
127
-
128
- Or adding `render_with_liquid: false` (Requires Jekyll 4.0 or higher) to the post's YAML block.
129
-
130
- ## Learn More
131
-
132
- For more knowledge about Jekyll posts, visit the [Jekyll Docs: Posts](https://jekyllrb.com/docs/posts/).
133
-
134
-
135
-
136
-
1
+ ---
2
+ layout: post
3
+ site-title: Creating a new post
4
+ author: Aziel Lance
5
+ ---
6
+
7
+ This post shows how to create a new post on the `Fica` Theme. Even if you have previous experience with Jekyll, this article is worth reading, because many features require specific variables to be set.
8
+
9
+ # Creating a File and Naming a post
10
+
11
+ Create a new file named `YYY-MM-DD-TITLE.EXTENSION` (.EXTENSION may be `.md` or `.markdown`) and put it on the `_posts` folder.
12
+
13
+ # Font Matter
14
+
15
+ Basic Font Matter
16
+
17
+ | Font Matter | Description
18
+ | --------------------------------------|------------------
19
+ | `layouts` | This specifies the layout file to use. It may be `home` layout for the homepage, `post` layout for post, `default` or `page` layout/s the original look of the site, and `post-home` layout for homepage of the post/s.
20
+ | `site-title` | This displays the website title. **EXCEPT THE HOMEPAGE**
21
+ | `author` | This is optional for the post because the authour is set on the `_config.yml` file.
22
+ | `home` | **This is only for the homepage** It displays the website title so that you will not write the website title.
23
+ | `pin` | This pins the post to the top of the post-home layout.
24
+ | `post_toc: false` | This hides the TOC(Table of Contents) in post
25
+
26
+ Examples:
27
+
28
+ - Homepage:
29
+
30
+ ```yml
31
+ ---
32
+ layout: home
33
+ home: true
34
+ ---
35
+
36
+ ```
37
+
38
+ - About
39
+
40
+ ```yml
41
+ ---
42
+ layout: default
43
+ site-title: About
44
+ permalink: /About/
45
+ ---
46
+
47
+ ```
48
+
49
+ - Post List
50
+
51
+ ```yml
52
+ ---
53
+ layout: post_list
54
+ site-title: post
55
+ ---
56
+ ```
57
+
58
+ - Post
59
+
60
+ ```yml
61
+ ---
62
+ layout: post
63
+ site-title: Creating a new post
64
+ author: aeziyehl
65
+ ---
66
+ ```
67
+
68
+ if you want to pin the post:
69
+ ```yml
70
+ ---
71
+ layout: post
72
+ site-title: Creating a new post
73
+ author: aeziyehl
74
+ pin: true
75
+ ---
76
+ ```
77
+
78
+ if you want to remove TOC in post
79
+ ```yml
80
+ layout: post
81
+ site-title: Creating a new post
82
+ author: aeziyehl
83
+ post_toc: false
84
+ ```
85
+
86
+ # Syntax
87
+
88
+ - Inline Code
89
+
90
+ ```
91
+ `inline code part`
92
+ ```
93
+
94
+ - Code Block
95
+
96
+ Markdown symbol ``` can easily create a code block as follows:
97
+
98
+ ```
99
+ Plaintext Code Snippet.
100
+ ```
101
+ ### Specifying Language in Code Block
102
+
103
+ Markdown symbol ```{language} can easily create a code block as follows:
104
+
105
+ ````yml
106
+ ```yml
107
+ title: Fica Theme
108
+ ```
109
+ ````
110
+
111
+ ### Line Number
112
+
113
+ All languages except `plaintext`, `console`, and `terminal` will display line numbers. When you want to hide the line number of a code block, add the class `nolineno` to it:
114
+
115
+ ````markdown
116
+ ```bash
117
+ echo 'No more line numbers'
118
+ ```
119
+ {: .nolineno }
120
+ ````
121
+
122
+ #### Liquid Codes
123
+
124
+ If you want to display the `Liquid` snippet, surround the liquid code with `{% raw %}` and `{% endraw %}`:
125
+
126
+ ````markdown
127
+ {% raw %}
128
+ ```liquid
129
+ {% if product.title contains 'Pack' %}
130
+ This product's title contains the word Pack.
131
+ {% endif %}
132
+ ```
133
+ {% endraw %}
134
+ ````
135
+
136
+ Or adding `render_with_liquid: false` (Requires Jekyll 4.0 or higher) to the post's YAML block.
137
+
138
+ ## Learn More
139
+
140
+ For more knowledge about Jekyll posts, visit the [Jekyll Docs: Posts](https://jekyllrb.com/docs/posts/).
141
+
142
+
143
+
144
+
@@ -0,0 +1,43 @@
1
+ ---
2
+ layout: post
3
+ site-title: Fica Customization
4
+ author: Aziel Lance
5
+ ---
6
+
7
+ The following shows how to customize the Theme.
8
+
9
+ # Code infrastructure
10
+
11
+ ## Customizing the Styles, Variables and Color Scheme:
12
+
13
+ if you like to override the default styles of the theme, go to `_sass/Custom/Styles.scss`.
14
+
15
+ if you like to override the default Variables of the theme, go to `_sass/Custom/Variable.scss`.
16
+
17
+ if you like to change the colors of the Dark Theme in the site, go to `_sass/themes/dark theme/Dark_Theme.scss`.
18
+
19
+ if you like to change the colors of the Light Theme in the site, go to `_sass/themes/dark theme/Light_Theme.scss`.
20
+
21
+ Want to change [the themes?](#how-to-change-dark-mode-to-light-mode)
22
+ ## Customizing Google Analytics code
23
+
24
+ Google has released several iterations to their Google Analytics code over the years since this theme was first created. If you would like to take advantage of the latest code, paste it into `_includes/Google-Analytics.html` in your Jekyll site.
25
+ ## Change dark mode to light mode
26
+
27
+ # Layouts
28
+ ## Replace the logo on the header
29
+ Replace logo.png at the top of your site.
30
+ Make sure that the logo is 36x36 pixels to avoid overlapping the title.
31
+
32
+ ## Replace the picture at the homepage ?
33
+
34
+ Replace `assets/img/homepage-pic.png`
35
+
36
+ Replace:
37
+
38
+ ```diff
39
+ - "themes/dark theme/theme-dark",
40
+ + "themes/light theme/theme-light",
41
+ ```
42
+
43
+ in `_sass/jekyll-theme-fica.scss`.
data/_sass/base.scss CHANGED
@@ -32,6 +32,12 @@ figure {
32
32
  padding: 0;
33
33
  }
34
34
 
35
+ * {
36
+ @include horizontal-scroll;
37
+ margin: 0;
38
+ padding: 0;
39
+ }
40
+
35
41
  // set `margin-bottom` to maintain vertical alignment
36
42
  h1,
37
43
  h2,
@@ -46,51 +52,23 @@ ul,
46
52
  ol,
47
53
  figure,
48
54
  %vertical-rhythm {
49
- margin-bottom: $font-spacing - 15;
55
+ margin-bottom: 15px;
50
56
  }
51
57
 
52
- //
53
- // body
54
- //
55
58
  body {
56
- font: $font-weight #{$font-size}/#{$line-height} $font-family;
59
+ @include body-medium;
60
+ // font: $font-weight #{$font-size}/#{$line-height} $font-family;
57
61
  color: $text-color;
58
62
  background-color: $primary_color;
59
63
  -webkit-text-size-adjust: 100%;
60
64
  font-kerning: normal;
61
- display: flex;
62
65
  min-height: 100vh;
63
66
  flex-direction: column;
64
67
  overflow-wrap: break-word;
65
- -webkit-font-smoothing: antialiased;
66
- -moz-osx-font-smoothing: grayscale;
67
-
68
- &::-webkit-scrollbar {
69
- height: 16px;
70
- }
71
-
72
- &::-webkit-scrollbar-track {
73
- background-color: transparent;
74
- }
75
-
76
- &::-webkit-scrollbar-thumb {
77
- background: rgba(128, 134, 139, 0.2);
78
- background-clip: padding-box;
79
- border: 4px solid transparent;
80
- border-radius: 10px;
81
- box-sizing: border-box;
82
-
83
- &:hover {
84
- background: rgba(128, 134, 139, 0.4);
85
- box-sizing: border-box;
86
- background-clip: padding-box;
87
- }
88
- }
68
+ display: flex;
69
+ line-height: 40px;
89
70
  }
90
71
 
91
- //
92
- // line
93
- //
94
72
  hr {
95
73
  margin-top: $font-spacing;
96
74
  margin-bottom: $font-spacing;
@@ -99,6 +77,9 @@ hr {
99
77
  border-radius: 7px;
100
78
  }
101
79
 
80
+ p {
81
+ line-height: 26px;
82
+ }
102
83
  //
103
84
  // wrapper
104
85
  //
@@ -109,20 +90,18 @@ hr {
109
90
  }
110
91
 
111
92
  .footer-wrapper {
112
- padding: 0 $font-spacing - 5 0 $font-spacing - 5;
113
- margin: 0 auto 0 auto;
114
- max-width: 1168px;
115
- }
116
-
117
-
118
- .post-wrapper {
119
93
  padding: 0 $font-spacing - 5 0 $font-spacing - 5;
120
94
  margin: 0 auto 0 auto;
121
- max-width: $content-width + 100;
95
+ max-width: 1168px;
96
+ }
97
+
98
+ .post-content {
99
+ padding: 30px $font-spacing - 5 0 $font-spacing - 5;
100
+ margin: 0 auto 0 auto;
122
101
 
123
102
  @media screen and (min-width: 1111px) {
124
- display: flex;
125
- justify-content: center;
103
+ display: grid;
104
+ grid-template-columns: 1fr 15em;
126
105
  }
127
106
  }
128
107
 
@@ -140,33 +119,22 @@ hr {
140
119
  // Headers
141
120
  //
142
121
  h1 {
143
- font-size: $font-size + 31;
144
- line-height: 1.5;
122
+ @include headline-large;
145
123
  }
146
-
147
124
  h2 {
148
- font-size: $font-size + 26;
149
- line-height: 1.5;
125
+ @include headline-medium;
150
126
  }
151
-
152
127
  h3 {
153
- font-size: $font-size + 21;
154
- line-height: 1.5;
128
+ @include headline-small;
155
129
  }
156
-
157
130
  h4 {
158
- font-size: $font-size + 16;
159
- line-height: 1.5;
131
+ @include title-large;
160
132
  }
161
-
162
133
  h5 {
163
- font-size: $font-size + 11;
164
- line-height: 1.5;
134
+ @include title-medium;
165
135
  }
166
-
167
136
  h6 {
168
- font-size: $font-size + 6;
169
- line-height: 1.5;
137
+ @include title-small;
170
138
  }
171
139
 
172
140
  //
@@ -213,6 +181,7 @@ img {
213
181
  strong {
214
182
  font-weight: 900;
215
183
  font-size: 18px;
184
+ letter-spacing: 3px;
216
185
  }
217
186
 
218
187
  //
@@ -223,7 +192,7 @@ figure > img {
223
192
  }
224
193
 
225
194
  figcaption {
226
- font-size: $small-font-size;
195
+ @include body-small;
227
196
  }
228
197
 
229
198
  //
@@ -233,7 +202,6 @@ blockquote {
233
202
  color: $blockquote-text-color;
234
203
  border-left: 4px solid $code-background-color;
235
204
  padding-left: $font-spacing / 2;
236
- @include relative-font-size(1.125);
237
205
  font-style: italic;
238
206
 
239
207
  > :last-child {
@@ -251,28 +219,24 @@ blockquote {
251
219
  //
252
220
  pre,
253
221
  code {
254
- font-size: inherit;
255
222
  border: 1px solid $code-background-color;
256
223
  border-radius: 4px;
257
224
  font-weight: 700;
258
225
  background-color: $code-background-color;
259
226
  color: $code-text-color;
260
-
261
- @include horizontal-scroll();
262
- }
263
-
264
- code {
227
+ line-height: 1.5rem;
265
228
  padding: 1px 5px;
266
229
 
230
+ @include horizontal-scroll();
267
231
  a {
268
232
  color: inherit !important;
269
233
  border-bottom: none !important;
270
234
  pointer-events: none;
271
235
  }
272
236
  }
273
-
274
237
  pre {
275
238
  overflow-x: auto;
239
+ border: 0;
276
240
 
277
241
  > code {
278
242
  border: 0;
@@ -307,7 +271,7 @@ pre {
307
271
  pre {
308
272
  margin-bottom: 0;
309
273
  font-size: $code-font-family;
310
- line-height: 1.5rem;
274
+ // line-height: 1.5rem;
311
275
  word-wrap: normal;
312
276
  /* Fixed Safari overflow-x */
313
277
  }
@@ -415,58 +379,59 @@ dl {
415
379
  }
416
380
 
417
381
  //
418
- // Error page
382
+ // 404 page
419
383
  //
420
- .container {
384
+ .container-404 {
421
385
  margin: 10px auto;
422
386
  max-width: 400px;
423
387
  text-align: center;
424
388
  background-color: $error-div-bg-color;
425
389
  border-radius: 20px;
426
390
  align-content: center;
427
-
428
- > svg {
429
- height: 220px;
430
- width: 220px;
431
- margin-left: 3px;
432
- margin-right: 5px;
433
- margin-top: 50px;
434
- fill: $error-btn-svg-color;
435
- }
436
- }
437
-
438
- .error-pagh {
439
- > p {
440
- margin-bottom: 0px;
441
- line-height: 2;
442
-
443
- &:last-child {
444
- margin-bottom: 15px;
391
+ .prompt-404 {
392
+ display: flex;
393
+ flex-direction: column;
394
+ align-items: center;
395
+ .paragraph-404 {
396
+ > p {
397
+ margin-bottom: 0px;
398
+ line-height: 2;
399
+
400
+ &:last-child {
401
+ margin-bottom: 15px;
402
+ }
403
+ }
445
404
  }
446
- }
447
- }
448
405
 
449
- .btn-error {
450
- display: inline-block;
451
- padding: 17px 16px 16px;
452
- color: #e7e7e7;
453
- background-color: #2e353e;
454
- transition: all 0.2s ease-in-out;
455
- width: 92%;
456
- border-bottom-left-radius: 20px;
457
- border-bottom-right-radius: 20px;
458
- height: 24px;
459
- line-height: 1.5;
460
-
461
- &,
462
- &:visited {
463
- color: $text-color;
464
- }
465
-
466
- &:hover {
467
- color: $btn-text-hover-color;
468
- text-decoration: none;
469
- background-color: $btn-color-hover;
470
- border-color: $btn-color-hover;
406
+ .btn-404 {
407
+ display: inline-block;
408
+ padding: 17px 16px 16px;
409
+ color: #e7e7e7;
410
+ background-color: #2e353e;
411
+ transition: all 0.2s ease-in-out;
412
+ width: 92%;
413
+ border-bottom-left-radius: 20px;
414
+ border-bottom-right-radius: 20px;
415
+
416
+ &,
417
+ &:visited {
418
+ color: $text-color;
419
+ }
420
+
421
+ &:hover {
422
+ color: $btn-text-hover-color;
423
+ text-decoration: none;
424
+ background-color: $btn-color-hover;
425
+ border-color: $btn-color-hover;
426
+ }
427
+ }
428
+ > svg {
429
+ height: 220px;
430
+ width: 220px;
431
+ margin-left: 3px;
432
+ margin-right: 5px;
433
+ margin-top: 50px;
434
+ fill: $error-btn-svg-color;
435
+ }
471
436
  }
472
437
  }
@@ -1 +1 @@
1
- @import "layouts/variable", "colors/dark-theme/theme-dark", "layouts/Google-fonts", "base", "layouts/layout","layouts/component"
1
+ @import "layouts/variable", "colors/dark-theme/theme-dark", "layouts/Google-fonts", "layouts/typography.scss", "base", "layouts/layout","layouts/component"