jekyll-nagymaros 1.1.0 → 2.0.0

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: 6b3513e60bfb42edef641f1d1c661ef166af40ccc166c286906c2ae9acdf003d
4
- data.tar.gz: edb1fe943b8c940a9711f7aa3611c7b8b32833255ef5d436c49b2a22a77f1bd9
3
+ metadata.gz: 065d28b2161ae51594cbd1f3cb082d11fcb050996c4b3a92e151c5425503ca33
4
+ data.tar.gz: 6e01089618360ca3dadfc597f915d53c9c349b5b9083d0d6c3a4d086d771dd83
5
5
  SHA512:
6
- metadata.gz: 81069f57cf157b1992d40db65224a8b49fa89f5960355aa1dcf43ace966edf9fa9b38b331c3df9718e7f727678eb405259a0861cbbacf8338d37e32bdf1dadf6
7
- data.tar.gz: 791eac3615a282132abf3cba6ca872446ba47560b44e770c80dde554e27fa2c076a871fcc82b76ddc9468905fcc595a178dce5946e3606d4571b3fc5b38f5620
6
+ metadata.gz: 5e5f974c000e913cc8536afbdbb89a9de4091486083aa5588ee4c859cfddade9f07179b24e9f6aad494082c3ddea816bbdf31b0d92aeb217f683262642dbe32b
7
+ data.tar.gz: bf1f23a5d177df399d87c8272e17e346ce90875529327801056ba05a081796cb944d73f5077647ebc84dfbcf00192f4d7932c4a62341aa05bc51fc6a0a8c7c67
data/README.md CHANGED
@@ -68,17 +68,54 @@ Core customization occurs in `_config.yml`. Aside from the usual configuration v
68
68
  <meta name="robots" content="none">
69
69
  ```
70
70
 
71
- If you set the value to `true`, however, the above code will not be included, so that crawlers will be allowed to index your site, and Jekyll will populate the head of every page with SEO tags through the `jekyll-seo-tag` plugin.
71
+ If you set the value to `true`, however, the above code will not be included, crawlers will be allowed to index your site, and Jekyll will populate the head of every page with SEO tags through the `jekyll-seo-tag` plugin.
72
72
 
73
73
  Data that appears in the theme's four default pages must be configured via YAML files located in the `_data` folder. See the corresponding files in `demo/_data` to understand how to write your own YAML, or better yet, clone these files and edit them.
74
74
 
75
75
  The order of appearance of pages in the theme's navigation bar is determined by the value of `navorder` set in each page's front matter. For example, setting `navorder: 1` will make the page appear first in the list. Note that a page will only appear in the navigation bar if the `navorder` variable is set, so it is possible to hide some pages from navigation simply by not giving this variable a value.
76
76
 
77
- Customizing the CSS is possible by creating a file `_sass/_custom.scss`. You can use this both to define new styles or to overwrite the theme's defaults. The file will be automatically compiled during build.
77
+ Customizing the CSS is possible by creating a file `_sass/_custom.scss`. You can use this both to define new styles or to overwrite the theme's defaults. The file will be automatically compiled during build.
78
+
79
+ For convenience, the customization of the theme's color scheme is also possible via YAML: in this case, create a file called `skin.yml` in your `_data` folder and assign new colors from the [Open Color](https://yeun.github.io/open-color) library using the `(color)-(number)` convention. Here is an example:
80
+
81
+ ```yaml
82
+ a:
83
+ color: blue-7
84
+ hover: blue-9
85
+ body:
86
+ bg: gray-0
87
+ color: gray-8
88
+ btn-primary:
89
+ bg: blue-5
90
+ color: gray-0
91
+ hover: blue-7
92
+ disabled: blue-3
93
+ btn-secondary:
94
+ bg: gray-4
95
+ color: gray-0
96
+ hover: gray-6
97
+ digit:
98
+ bg: gray-3
99
+ header:
100
+ bg: gray-4
101
+ index:
102
+ bg: gray-2
103
+ navbar-brand:
104
+ color: gray-8
105
+ hover: gray-9
106
+ nav-link:
107
+ color: gray-7
108
+ hover: gray-9
109
+ text-muted:
110
+ color: gray-6
111
+ hover: gray-9
112
+ ```
113
+
114
+ These are actually the theme's defaults. If no value is provided for some of these variables, or if `_data/skin.yml` does not exist at all, the theme will assume the colors above.
78
115
 
79
116
  ## Credits
80
117
 
81
- The theme builds on the following projects:
118
+ This theme builds on the following projects:
82
119
 
83
120
  - [Bootstrap](https://getbootstrap.com/)
84
121
  - [Inter](https://rsms.me/inter/)
@@ -89,4 +126,4 @@ The theme builds on the following projects:
89
126
 
90
127
  ## Bugs
91
128
 
92
- If you find any problem using this theme, please [open an issue](https://github.com/piazzai/jekyll-nagymaros/issues).
129
+ If you find any problem using the theme, please [open an issue](https://github.com/piazzai/jekyll-nagymaros/issues).
@@ -1,4 +1,4 @@
1
- <header class="bg-gray-4">
1
+ <header class="bg-{{ site.data.skin.header.bg | default: 'gray-4' }}">
2
2
  <div class="container">
3
3
  <nav class="navbar navbar-expand-sm">
4
4
  <a class="navbar-brand" href="{{ site.url }}">{{ site.title }}</a>
data/_layouts/404.html CHANGED
@@ -3,10 +3,11 @@ layout: default
3
3
  ---
4
4
 
5
5
  {% include metadata.liquid %}
6
+ {% assign digit_bg = site.data.skin.digit.bg | default: 'gray-3' %}
6
7
 
7
8
  <main>
8
9
  <div class="container text-center">
9
- {% assign span = 'class="h1 bg-gray-3 color-gray-0 rounded" id="digit"' %}
10
+ {% assign span = 'class="h1 bg-' | append: digit_bg | append: ' color-gray-0 rounded" id="digit"' %}
10
11
  <span {{ span }}>4</span>
11
12
  <span {{ span }}>0</span>
12
13
  <span {{ span }}>4</span>
data/_layouts/index.html CHANGED
@@ -4,9 +4,10 @@ layout: default
4
4
 
5
5
  {% include metadata.liquid %}
6
6
  {% include header.html %}
7
+ {% assign index_bg = site.data.skin.index.bg | default: 'gray-2' %}
7
8
 
8
9
  <main class="my-4">
9
- <div class="container px-5 py-3 bg-gray-2 rounded">
10
+ <div class="container px-5 py-3 bg-{{ index_bg }} rounded">
10
11
  <h1 class="display-3">{{ title }}</h1>
11
12
  <p class="lead">{{ description }}</p>
12
13
  <hr class="my-4">
@@ -1,44 +1,44 @@
1
1
  a {
2
- color: var(--oc-blue-7);
2
+ color: $a_color;
3
3
  text-decoration: none;
4
4
 
5
5
  &:hover {
6
- color: var(--oc-blue-9);
6
+ color: $a_hover;
7
7
  }
8
8
  }
9
9
 
10
10
  body {
11
- background-color: var(--oc-gray-0);
12
- color: var(--oc-gray-8);
11
+ background-color: $body_bg;
12
+ color: $body_color;
13
13
  font-family: "Inter", var(--bs-font-sans-serif);
14
14
  font-size: 1.15rem;
15
15
  }
16
16
 
17
17
  .btn-primary {
18
- background-color: var(--oc-blue-5) !important;
18
+ background-color: $btn-primary_bg !important;
19
19
  border-color: transparent !important;
20
- color: var(--oc-gray-0);
20
+ color: $btn-primary_color !important;
21
21
 
22
22
  &:hover,
23
23
  &:active,
24
24
  &.active {
25
- background-color: var(--oc-blue-7) !important;
25
+ background-color: $btn-primary_hover !important;
26
26
  }
27
27
 
28
28
  &.disabled {
29
- background-color: var(--oc-blue-3) !important;
29
+ background-color: $btn-primary_disabled !important;
30
30
  }
31
31
  }
32
32
 
33
33
  .btn-secondary {
34
- background-color: var(--oc-gray-4) !important;
34
+ background-color: $btn-secondary_bg !important;
35
35
  border-color: transparent !important;
36
- color: var(--oc-gray-0);
36
+ color: $btn-secondary_color !important;
37
37
 
38
38
  &:hover,
39
39
  &:active,
40
40
  &.active {
41
- background-color: var(--oc-gray-6) !important;
41
+ background-color: $btn-secondary_hover !important;
42
42
  }
43
43
  }
44
44
 
@@ -53,29 +53,29 @@ body {
53
53
  }
54
54
 
55
55
  .navbar-brand {
56
- color: var(--oc-gray-8);
56
+ color: $navbar-brand_color;
57
57
 
58
58
  &:hover {
59
- color: var(--oc-gray-9);
59
+ color: $navbar-brand_hover;
60
60
  }
61
61
  }
62
62
 
63
63
  .nav-link {
64
- color: var(--oc-gray-7);
64
+ color: $nav-link_color;
65
65
 
66
66
  &:hover {
67
- color: var(--oc-gray-9);
67
+ color: $nav-link_hover;
68
68
  }
69
69
  }
70
70
 
71
71
  .text-muted {
72
- color: var(--oc-gray-6) !important;
72
+ color: $text-muted_color !important;
73
73
 
74
74
  a {
75
75
  color: inherit;
76
76
 
77
77
  &:hover {
78
- color: var(--oc-gray-9);
78
+ color: $text-muted_hover;
79
79
  }
80
80
  }
81
81
  }
@@ -5,7 +5,24 @@
5
5
  @import "utilities";
6
6
  @import "elements";
7
7
 
8
+ $a_color: var(--oc-{{ site.data.skin.a.color | default: 'blue-7' }});
9
+ $a_hover: var(--oc-{{ site.data.skin.a.hover | default: 'blue-9' }});
10
+ $body_bg: var(--oc-{{ site.data.skin.body.bg | default: 'gray-0' }});
11
+ $body_color: var(--oc-{{ site.data.skin.body.color | default: 'gray-8' }});
12
+ $btn-primary_bg: var(--oc-{{ site.data.skin.btn-primary.bg | default: 'blue-5' }});
13
+ $btn-primary_color: var(--oc-{{ site.data.skin.btn-primary.color | default: 'gray-0' }});
14
+ $btn-primary_hover: var(--oc-{{ site.data.skin.btn-primary.hover | default: 'blue-7' }});
15
+ $btn-primary_disabled: var(--oc-{{ site.data.skin.btn-primary.disabled | default: 'blue-3' }});
16
+ $btn-secondary_bg: var(--oc-{{ site.data.skin.btn-secondary.bg | default: 'gray-4' }});
17
+ $btn-secondary_color: var(--oc-{{ site.data.skin.btn-secondary.color | default: 'gray-0' }});
18
+ $btn-secondary_hover: var(--oc-{{ site.data.skin.btn-secondary.hover | default: 'gray-6' }});
19
+ $navbar-brand_color: var(--oc-{{ site.data.skin.navbar-brand.color | default: 'gray-8' }});
20
+ $navbar-brand_hover: var(--oc-{{ site.data.skin.navbar-brand.hover | default: 'gray-9' }});
21
+ $nav-link_color: var(--oc-{{ site.data.skin.nav-link.color | default: 'gray-7' }});
22
+ $nav-link_hover: var(--oc-{{ site.data.skin.nav-link.hover | default: 'gray-9' }});
23
+ $text-muted_color: var(--oc-{{ site.data.skin.text-muted.color | default: 'gray-6' }});
24
+ $text-muted_hover: var(--oc-{{ site.data.skin.text-muted.hover | default: 'gray-9' }});
25
+
8
26
  @import "overrides/bootstrap";
9
27
  @import "overrides/leaflet";
10
-
11
28
  @import "custom";
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-nagymaros
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - piazzai
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-22 00:00:00.000000000 Z
11
+ date: 2024-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '4.3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 4.3.2
22
+ version: 4.3.3
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '4.3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 4.3.2
32
+ version: 4.3.3
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: jekyll-seo-tag
35
35
  requirement: !ruby/object:Gem::Requirement