jekyll-theme-fica 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1ec04477a6ed001e626c13403d6249d7b135f7cb4eb320b3a6e1f0a671f1e6f6
4
- data.tar.gz: 653d8463cb6d551d283dc9e9124939fc3ad763a82bba5fe5cd0998ef3c5980b5
3
+ metadata.gz: 694089c011995f8ed477a3369ec936642a0adf7ee939d285adcf908206b4d484
4
+ data.tar.gz: 3c47e2fbc0b51f2be2fabdabd00533cdcba4b4f396f12c68de2317a15e148fe1
5
5
  SHA512:
6
- metadata.gz: d5ecbff44f07354e64419f7836c503e9fd368c7cc47fe5828e484792524e8bb0e64e2e6a896dd6d085510f7a305c1f5b7ee1e900724c4dcb0483b5aaaf48d622
7
- data.tar.gz: 55e35b081aa779887b16eec7ceed95e5b6923be248ebde08e78ff10e2e641c39cb94f0c18ba085391d4ca72ac39d442d6b6f9f3f2283decdd590ab1a6b5e77e5
6
+ metadata.gz: 6dd4aad6bbb015043784b0056367cee24e25a6121f2d03951e07e1ee89c2742d1da37236704ad7c6e3906dc871899b5e6e96046f52420525fb694830746b6a4e
7
+ data.tar.gz: 63624b586cda01eb3dd32e17dd28f44ea83fc7e5e94f50fbb1a82b51905a0c1b7224322d21f1489de8eee0a363548669af95280daf7900a1c0933b3745671242
data/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  <img src="https://user-images.githubusercontent.com/100028421/160099110-7571a93c-a1a1-4f45-b969-d7f4dccc3b4c.png"/>
2
2
 
3
-
4
3
  You can preview the theme to [see what it looks like](https://involts.github.io/jekyll-theme-fica/) or
5
- [download it today !](https://github.com/Involts/jekyll-theme-fica/zipball/master)
4
+ [download it today!](https://github.com/Involts/jekyll-theme-fica/zipball/master)
6
5
 
7
6
  [![Gem Version](https://badge.fury.io/rb/jekyll-theme-fica.svg)](https://badge.fury.io/rb/jekyll-theme-fica)
7
+
8
8
  ## Installation and first use
9
9
 
10
10
  Add this line to your Jekyll site's `Gemfile`:
@@ -16,52 +16,66 @@ gem "jekyll-theme-fica"
16
16
  And add this line to your Jekyll site's `_config.yml`:
17
17
 
18
18
  ```yaml
19
+ # if you run it locally:
19
20
  theme: jekyll-theme-fica
20
- ```
21
-
22
21
 
22
+ # if you using GitHub-Pages:
23
+ remote_theme: Involts/jekyll-theme-fica
24
+ ```
23
25
  to install all the dependencies:
24
-
26
+ ```
25
27
  $ script/bootstrap
26
-
28
+ ```
29
+ or
30
+ ```
31
+ $ bundle install
32
+ ```
27
33
  and run, to run your jekyll site:
28
-
34
+ ```
29
35
  $ script/build
36
+ ```
37
+ or
38
+ ```
39
+ $ bundle exec jekyll serve
40
+ ```
30
41
  ## Note:
31
- Before publishing the site to github-pages, replace the varable of baseurl:
32
42
 
33
- if you have brought a doman remove the varable below:
34
- ```
35
- # _config.yml
36
- baseurl: [Your Repository Name]
37
- ```
38
- If you want to create a external link in the headers Links remove `{{site.baseurl}}` on `_includes/Header.html`:
43
+ Before publishing the site to github-pages, replace the varable of baseurl:
44
+
45
+ if you have brought a doman remove the varable below:
46
+
47
+ ```
48
+ # _config.yml
49
+ baseurl: /jekyll-fica-theme
50
+ ```
51
+
52
+ If you want to create a external link in the headers Links remove `{{site.baseurl}}` on `_includes/Header.html`:
39
53
 
40
54
  Before:
41
- ```
42
- <div class="trigger">
43
- <a class="page-link" href="{{site.header.header_link_1}}">{{site.header.header_name_1}}</a>
44
- <a class="page-link" href="{{site.baseurl}}{{site.header.header_link_2}}">{{site.header.header_name_2}}</a>
45
- <a class="page-link" href="{{site.baseurl}}{{site.header.header_link_3}}">{{site.header.header_name_3}}</a>
46
- </div>
47
- ```
48
55
 
49
- After:
50
- ```
51
- <div class="trigger">
52
- <a class="page-link" href="{{site.header.header_link_1}}">{{site.header.header_name_1}}</a>
53
- <a class="page-link" href="{{site.header.header_link_2}}">{{site.header.header_name_2}}</a>
54
- <a class="page-link" href="{{site.header.header_link_3}}">{{site.header.header_name_3}}</a>
55
- </div>
56
- ```
56
+ ```
57
+ <div class="trigger">
58
+ <a class="page-link" href="{{site.header.header_link_1}}">{{site.header.header_name_1}}</a>
59
+ <a class="page-link" href="{{site.baseurl}}{{site.header.header_link_2}}">{{site.header.header_name_2}}</a>
60
+ <a class="page-link" href="{{site.baseurl}}{{site.header.header_link_3}}">{{site.header.header_name_3}}</a>
61
+ </div>
62
+ ```
57
63
 
64
+ After:
58
65
 
66
+ ```
67
+ <div class="trigger">
68
+ <a class="page-link" href="{{site.header.header_link_1}}">{{site.header.header_name_1}}</a>
69
+ <a class="page-link" href="{{site.header.header_link_2}}">{{site.header.header_name_2}}</a>
70
+ <a class="page-link" href="{{site.header.header_link_3}}">{{site.header.header_name_3}}</a>
71
+ </div>
72
+ ```
59
73
 
60
74
  # Customizations
61
75
 
62
- ## Customizing '_config.yml'
76
+ ## Customizing `_config.yml`
63
77
 
64
- Fica Theme will respect the following variables, in your '_config.yml' file:
78
+ Fica Theme will respect the following variables, in your `_config.yml` file:
65
79
 
66
80
  ```
67
81
  title: [The title of your site]
@@ -69,7 +83,9 @@ author: [The auther of the site]
69
83
  name: [The owner of the site]
70
84
  description: [A short description of your site's purpose]
71
85
  ```
86
+
72
87
  Change the links of your site header:
88
+
73
89
  ```
74
90
  header:
75
91
  header_name_1: Download
@@ -79,25 +95,29 @@ header:
79
95
  header_name_3: About
80
96
  header_link_3: /About/
81
97
  ```
98
+
82
99
  ## Customizing the Styles, Vriables and Color Scheme:
83
- if you like to override the default styles of the theme, go to '_sass/Custom-Styles.scss'.
84
100
 
85
- if you like to override the default Variables of the theme, go to '_sass/Custom-Variable.scss'.
101
+ if you like to override the default styles of the theme, go to `_sass/Custom-Styles.scss`.
86
102
 
87
- if you like to change the colors of the site, go to '_sass/Color_scheme.scss'.
103
+ if you like to override the default Variables of the theme, go to `_sass/Custom-Variable.scss`.
88
104
 
105
+ if you like to change the colors of the Dark Theme in the site, go to `_sass/themes/Dark_Theme.scss`.
89
106
 
107
+ if you like to change the colors of the Light Theme in the site, go to `_sass/themes/Light_Theme.scss`.
108
+
109
+ Want to change [the themes?](#how-to-change-dark-mode-to-light-mode)
90
110
  ## How to replace the logo on the header ?
91
111
 
92
112
  Replace logo.png at the top of your site.
93
- Make sure that the logo is 16x16 px to avoid overlapping the title.
113
+ Make sure that the logo is 16x16 px to avoid overlapping the title.
94
114
 
95
115
  ## how to replace the pictue at the homepage ?
96
116
 
97
- Replace 'assets/img/fica_ad.png'.
117
+ Replace `assets/img/fica_ad.png`
98
118
  # Customizing Google Analytics code
99
119
 
100
- 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.
120
+ 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.
101
121
 
102
122
  ## Contributing
103
123
 
@@ -116,7 +136,7 @@ If you'd like to preview the theme locally (for example, in the process of propo
116
136
  ### Running tests
117
137
 
118
138
  The theme contains a minimal test suite, to ensure a site with the theme would build successfully. To run the tests, simply run `script/build`. You'll need to run `script/bootstrap` once before the test script will work.
139
+
119
140
  ## License
120
141
 
121
142
  The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
122
-
data/_layouts/home.html CHANGED
@@ -3,7 +3,33 @@
3
3
  {%- include Head.html -%}
4
4
 
5
5
  <body>
6
- {%- include Header.html -%}
6
+ <header class="site-header-home">
7
+ {%- assign default_paths = site.pages | map: "path" -%}
8
+ <div class="wrapper_header"><a class="site-title" rel="author" href="{{site.baseurl}}/">{{site.title}}</a><nav class="site-nav">
9
+ <input type="checkbox" id="nav-trigger" class="nav-trigger" />
10
+ <label for="nav-trigger">
11
+ <span class="menu-icon">
12
+ <svg viewBox="0 0 18 15" width="18px" height="15px">
13
+ <path d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.032C17.335,0,18,0.665,18,1.484L18,1.484z M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.032C17.335,6.031,18,6.696,18,7.516L18,7.516z M18,13.516C18,14.335,17.335,15,16.516,15H1.484 C0.665,15,0,14.335,0,13.516l0,0c0-0.82,0.665-1.483,1.484-1.483h15.032C17.335,12.031,18,12.695,18,13.516L18,13.516z"/>
14
+ </svg>
15
+ </span>
16
+ </label>
17
+ <div class="trigger">
18
+ <a class="page-link" href="{{site.header.header_link_1}}">{{site.header.header_name_1}}</a>
19
+ <a class="page-link" href="{{site.baseurl}}{{site.header.header_link_2}}">{{site.header.header_name_2}}</a>
20
+ <a class="page-link" href="{{site.baseurl}}{{site.header.header_link_3}}">{{site.header.header_name_3}}</a>
21
+ </div>
22
+ </nav></div>
23
+ <div class="trigger">
24
+ {%- for path in page_paths -%}
25
+ {%- assign my_page = site.pages | where: "path", path | first -%}
26
+ {%- if my_page.title -%}
27
+ <a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
28
+ {%- endif -%}
29
+ {%- endfor -%}
30
+ </div>
31
+ </nav>
32
+ </header>
7
33
  <header class="page-header" role="banner">
8
34
  <div class="wrapper">
9
35
  <p class="page-header-title">{{site.title}}</p>
data/_layouts/post.html CHANGED
@@ -1,34 +1,34 @@
1
- ---
2
- layout: default
3
- ---
4
- <article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">
5
-
6
- <header class="post-header">
7
- <h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h1>
8
- <p class="post-meta">
9
- {%- assign date_format = site.fica.date_format | default: "%b %-d, %Y" -%}
10
- <time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
11
- {{ page.date | date: date_format }}
12
- </time>
13
- {%- if page.modified_date -%}
14
- ~
15
- {%- assign mdate = page.modified_date | date_to_xmlschema -%}
16
- <time class="dt-modified" datetime="{{ mdate }}" itemprop="dateModified">
17
- {{ mdate | date: date_format }}
18
- </time>
19
- {%- endif -%}
20
- {%- if page.author -%}
21
- • {% for author in page.author %}
22
- <span itemprop="author" itemscope itemtype="http://schema.org/Person">
23
- <span class="p-author h-card" itemprop="name">{{ author }}</span></span>
24
- {%- if forloop.last == false %}, {% endif -%}
25
- {% endfor %}
26
- {%- endif -%}</p>
27
- <a href="{{site.baseurl}}/Post/" class="btn">Go Back</a>
28
- </header>
29
- <div class="post-content e-content" itemprop="articleBody">
30
- {{ content }}
31
-
32
-
33
- <a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
34
- </article>
1
+ ---
2
+ layout: default
3
+ ---
4
+ <article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">
5
+
6
+ <header class="post-header">
7
+ <h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h1>
8
+ <p class="post-meta">
9
+ {%- assign date_format = site.fica.date_format | default: "%b %-d, %Y" -%}
10
+ <time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
11
+ {{ page.date | date: date_format }}
12
+ </time>
13
+ {%- if page.modified_date -%}
14
+ ~
15
+ {%- assign mdate = page.modified_date | date_to_xmlschema -%}
16
+ <time class="dt-modified" datetime="{{ mdate }}" itemprop="dateModified">
17
+ {{ mdate | date: date_format }}
18
+ </time>
19
+ {%- endif -%}
20
+ {%- if page.author -%}
21
+ • {% for author in page.author %}
22
+ <span itemprop="author" itemscope itemtype="http://schema.org/Person">
23
+ <span class="p-author h-card" itemprop="name">{{ author }}</span></span>
24
+ {%- if forloop.last == false %}, {% endif -%}
25
+ {% endfor %}
26
+ {%- endif -%}</p>
27
+ <a href="{{site.baseurl}}/Post/" class="btn">Go Back</a>
28
+ </header>
29
+ <div class="post-content e-content" itemprop="articleBody">
30
+ {{ content }}
31
+
32
+
33
+ <a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
34
+ </article>
data/_sass/Base.scss CHANGED
@@ -51,7 +51,7 @@ body {
51
51
  }
52
52
 
53
53
  &::-webkit-scrollbar-thumb {
54
- background: $text-color;
54
+ background: $scroll_bar_bg_color;
55
55
  border-radius: 4px;
56
56
  }
57
57
  }
@@ -189,7 +189,7 @@ a {
189
189
  */
190
190
  blockquote {
191
191
  color: $blockquote-text-color;
192
- border-left: 4px solid $border-color-01;
192
+ border-left: 4px solid $code-background-color;
193
193
  padding-left: $spacing-unit / 2;
194
194
  @include relative-font-size(1.125);
195
195
  font-style: italic;
@@ -211,8 +211,9 @@ pre,
211
211
  code {
212
212
  font-family: $code-font-family;
213
213
  font-size: 0.9375em;
214
- border: 1px solid $border-color-01;
214
+ border: 1px solid $code-background-color;
215
215
  border-radius: 4px;
216
+ font-weight: bold;
216
217
  background-color: $code-background-color;
217
218
 
218
219
  &::-webkit-scrollbar {
@@ -225,7 +226,7 @@ code {
225
226
  }
226
227
 
227
228
  &::-webkit-scrollbar-thumb {
228
- background: $text-color;
229
+ background: $scroll_bar_bg_color;
229
230
  border-radius: 4px;
230
231
  }
231
232
  }
@@ -320,7 +321,7 @@ pre {
320
321
  }
321
322
 
322
323
  .github {
323
- color: #f9f9f9;
324
+ color: $Github;
324
325
  }
325
326
 
326
327
  .svg-icon {
@@ -332,6 +333,10 @@ pre {
332
333
  vertical-align: text-bottom;
333
334
  }
334
335
 
336
+ .gitlab {
337
+ color: $Github;
338
+ }
339
+
335
340
  /**
336
341
  * Tables
337
342
  */
@@ -347,13 +352,13 @@ table {
347
352
  width: 7px;
348
353
  height: 9px;
349
354
  }
350
-
355
+
351
356
  &::-webkit-scrollbar-track {
352
- background-color: $code-background-color;
357
+ background-color: $background-color;
353
358
  }
354
-
359
+
355
360
  &::-webkit-scrollbar-thumb {
356
- background: $text-color;
361
+ background: $scroll_bar_bg_color;
357
362
  border-radius: 4px;
358
363
  }
359
364
  tr {
@@ -394,4 +399,3 @@ dl {
394
399
  margin-inline-start: 40px;
395
400
  }
396
401
  }
397
-
@@ -1,2 +1,2 @@
1
- // Placeholder to allow defining custom styles that override everything else.
2
- // (Use `_sass/minima/custom-variables.scss` to override variable defaults)
1
+ // Placeholder to allow defining custom styles that override everything else.
2
+ // (Use `_sass/minima/custom-variables.scss` to override variable defaults)
@@ -1 +1 @@
1
- // Placeholder to allow overriding predefined variables smoothly.
1
+ // Placeholder to allow overriding predefined variables smoothly.
@@ -8,7 +8,7 @@ $transition-links: color 0.3s;
8
8
 
9
9
  $base-font-family: 'Roboto', sans-serif !default;
10
10
  $code-font-family: "Menlo", "Inconsolata", "Consolas", "Roboto Mono", "Ubuntu Mono", "Liberation Mono", "Courier New", monospace;
11
- $base-font-size: 16px !default;
11
+ $base-font-size: 17px !default;
12
12
  $base-font-weight: 400 !default;
13
13
  $small-font-size: $base-font-size * 0.875 !default;
14
14
  $base-line-height: 1.5 !default;
data/_sass/Layout.scss CHANGED
@@ -13,6 +13,16 @@
13
13
  position: relative;
14
14
  }
15
15
 
16
+ .site-header-home {
17
+ background-color: $home-header-title-color;
18
+ border-top: 5px solid $home-header-title-color;
19
+ border-bottom: 5px solid $home-header-title-color;
20
+ min-height: $spacing-unit * 1.865;
21
+ line-height: $base-line-height * $base-font-size * 2.25;
22
+
23
+ // Positioning context for the mobile navigation icon
24
+ position: relative;
25
+ }
16
26
  .site-title {
17
27
  @include relative-font-size(1.625);
18
28
  font-weight: 690;
@@ -27,7 +37,7 @@
27
37
 
28
38
  &,
29
39
  &:visited {
30
- color: $site-title-color;
40
+ color: $text-color;
31
41
  }
32
42
 
33
43
  &:hover {
@@ -52,7 +62,7 @@
52
62
  }
53
63
  .page-header {
54
64
  border-top: 10px solid $home-header-title-color;
55
- color: $site-title-color;
65
+ color: $text-color;
56
66
  background-color: $home-header-title-color;
57
67
  border-bottom: 5px solid $home-header-title-color;
58
68
  padding-bottom: 10px;
@@ -165,6 +175,7 @@
165
175
  float: right;
166
176
  border: none;
167
177
  background-color: inherit;
178
+
168
179
 
169
180
  label[for="nav-trigger"] {
170
181
  display: none;
@@ -211,11 +222,11 @@
211
222
  padding-left: 0;
212
223
  padding-bottom: 4px;
213
224
  font-size: larger;
214
- color: #f0ffff;
225
+ color: $text-color;
215
226
  }
216
227
 
217
228
  &:first-child:hover {
218
- color: #f0ffff;
229
+ color: $text-color;
219
230
  }
220
231
 
221
232
  &:last-child {
@@ -232,7 +243,7 @@
232
243
  }
233
244
  .Product_footer {
234
245
  list-style: none;
235
- color: #f0ffff;
246
+ color: $text-color;
236
247
  width: calc(100% - (#{$spacing-unit} / 2));
237
248
  padding: 0 ($spacing-unit / 2);
238
249
 
@@ -241,12 +252,12 @@
241
252
  padding-left: 0;
242
253
  padding-bottom: 1px;
243
254
  font-size: 0.6cm;
244
- color: #f0ffff;
255
+ color: $text-color;
245
256
  font-weight: 900;
246
257
  }
247
258
 
248
259
  &:last-child:hover {
249
- color: #f0ffff;
260
+ color: $text-color;
250
261
  }
251
262
 
252
263
  &:last-child {
@@ -256,7 +267,7 @@
256
267
  }
257
268
 
258
269
  &:hover {
259
- color: #f0ffff;
270
+ color: $text-color;
260
271
  text-decoration: none;
261
272
  }
262
273
  }
@@ -340,7 +351,7 @@
340
351
 
341
352
  .post-meta {
342
353
  font-size: $small-font-size;
343
- color: $site-title-color;
354
+ color: $text-color;
344
355
  }
345
356
 
346
357
  .post-link {
@@ -421,7 +432,7 @@
421
432
  border: 1px solid transparent;
422
433
 
423
434
  &.pager-edge {
424
- color: $border-color-01;
435
+ color: $code-background-color;
425
436
  border: 1px dashed;
426
437
  }
427
438
  }
@@ -459,4 +470,5 @@
459
470
  background-color: $btn-color-hover;
460
471
  border-color: $btn-color-hover;
461
472
  }
462
- }
473
+ }
474
+