jekyll-theme-mint 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +17 -7
- data/_includes/footer.html +13 -1
- data/_includes/head.html +12 -0
- data/_includes/header.html +6 -4
- data/_sass/_layout.scss +36 -8
- data/_sass/_post.scss +1 -1
- data/_sass/_responsive.scss +20 -0
- data/_sass/dark.scss +5 -1
- data/_sass/light.scss +5 -1
- metadata +21 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 227ac8045e814711fa71511a114d05783efea04dd686d52e88e9bea38461b365
|
4
|
+
data.tar.gz: 57b2042c7ee22e5a0d93fc5c14f7cd31be571eee5c05e86bc7b351d0ea79bdf6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42ad1d17896398a92cf74a7c5d732c104ababcad4f51bbce907acf5b39a51cafa2190ad7672d01021ceab31968c2a8532b6b13e4e05a28ac3cfd1d65d55c4f28
|
7
|
+
data.tar.gz: 1b755b11260d42bd8918a2b58dc56cac10bb9f7bd9d574cdc385d355c6e35b670d4b0fa110e97fcdfe88c740fe892885b5db14f499c8df46b1f571b9f2bd6726
|
data/README.md
CHANGED
@@ -44,6 +44,16 @@ blog_theme: dark # use dark theme
|
|
44
44
|
blog_theme: auto # auto change the theme when your system and browser supported
|
45
45
|
```
|
46
46
|
|
47
|
+
### Accent color of theme
|
48
|
+
|
49
|
+
Edit `_config.yml` file to change accent color of theme.
|
50
|
+
|
51
|
+
```yaml
|
52
|
+
light-theme-accent-color: '#333'
|
53
|
+
|
54
|
+
dark-theme-accent-color: '#eee'
|
55
|
+
```
|
56
|
+
|
47
57
|
### Add social links
|
48
58
|
|
49
59
|
Edit `_config.yml` file to add your social links.
|
@@ -81,6 +91,13 @@ Edit `_config.yml` file to add your google analytics tracking id and you can ena
|
|
81
91
|
google_analytics: your_google_analystics_tracker_id
|
82
92
|
```
|
83
93
|
|
94
|
+
### Footer page
|
95
|
+
|
96
|
+
Normally, the links to the pages is displayed in the site header. If you want to display the page link on the footer, you can add this to the front matter of page.
|
97
|
+
|
98
|
+
``` yaml
|
99
|
+
is_footer: true
|
100
|
+
```
|
84
101
|
|
85
102
|
## Development
|
86
103
|
|
@@ -90,13 +107,6 @@ For test, you can run `bundle exec jekyll serve` and open your browser at `http:
|
|
90
107
|
|
91
108
|
For more information you can see here <https://jekyllrb.com/docs/themes/>.
|
92
109
|
|
93
|
-
You can also use docker-compose to set up development environment.
|
94
|
-
|
95
|
-
Just like this:
|
96
|
-
|
97
|
-
$ docker-compose run --rm app bundle
|
98
|
-
$ docker-compose up
|
99
|
-
|
100
110
|
## Build gem
|
101
111
|
|
102
112
|
$ gem build jekyll-theme-mint.gemspec
|
data/_includes/footer.html
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
<footer class='footer'>
|
2
|
-
|
2
|
+
{% assign site_footer_pages = site.pages | where: 'is_footer', true %}
|
3
|
+
|
4
|
+
{% if site_footer_pages.size > 0 %}
|
5
|
+
<ul class='footer__list'>
|
6
|
+
{% for site_footer_page in site_footer_pages %}
|
7
|
+
<li class='footer__item'>
|
8
|
+
<a href='{{ site_footer_page.url | relative_url }}'>{{ site_footer_page.title | escape }}</a>
|
9
|
+
</li>
|
10
|
+
{% endfor %}
|
11
|
+
</ul>
|
12
|
+
{% endif %}
|
13
|
+
|
14
|
+
<ul class='footer__list footer__list--social'>
|
3
15
|
{% if site.author %}
|
4
16
|
{% if site.email %}
|
5
17
|
<li class='footer__item'>
|
data/_includes/head.html
CHANGED
@@ -13,6 +13,18 @@
|
|
13
13
|
<link rel='stylesheet' href='{{ '/assets/dark.css' | relative_url }}' media="(prefers-color-scheme: dark)">
|
14
14
|
{% endcase %}
|
15
15
|
|
16
|
+
<style type='text/css' media='screen'>
|
17
|
+
:root {
|
18
|
+
{% if site.light-theme-accent-color %}
|
19
|
+
--light-theme-accent-color: {{ site.light-theme-accent-color }};
|
20
|
+
{% endif %}
|
21
|
+
|
22
|
+
{% if site.dark-theme-accent-color %}
|
23
|
+
--dark-theme-accent-color: {{ site.dark-theme-accent-color }};
|
24
|
+
{% endif %}
|
25
|
+
}
|
26
|
+
</style>
|
27
|
+
|
16
28
|
{% feed_meta %}
|
17
29
|
{% include google_analytics.html %}
|
18
30
|
</head>
|
data/_includes/header.html
CHANGED
@@ -1,9 +1,11 @@
|
|
1
1
|
<header class='header'>
|
2
|
+
<a class='header__title' href='{{ '/' | relative_url }}'>{{ site.title | escape }}</a>
|
2
3
|
<nav class='header__nav'>
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
4
|
+
{% assign site_pages = site.pages | where_exp: 'page', 'page.is_footer != true' %}
|
5
|
+
|
6
|
+
{% for site_page in site_pages %}
|
7
|
+
{% if site_page.title %}
|
8
|
+
<a class='header__nav__item {% if page.url == site_page.url %} is-active {% endif %}' href='{{ site_page.url | relative_url }}'>{{ site_page.title | escape }}</a>
|
7
9
|
{% endif %}
|
8
10
|
{% endfor %}
|
9
11
|
</nav>
|
data/_sass/_layout.scss
CHANGED
@@ -21,6 +21,9 @@ body {
|
|
21
21
|
}
|
22
22
|
|
23
23
|
.header {
|
24
|
+
display: flex;
|
25
|
+
flex-wrap: wrap;
|
26
|
+
align-items: baseline;
|
24
27
|
padding: 50px 0;
|
25
28
|
}
|
26
29
|
|
@@ -29,20 +32,29 @@ body {
|
|
29
32
|
}
|
30
33
|
|
31
34
|
.header__nav {
|
32
|
-
|
33
|
-
|
35
|
+
white-space: nowrap;
|
36
|
+
overflow: auto;
|
37
|
+
margin-top: 12px;
|
34
38
|
}
|
35
39
|
|
36
|
-
.header__nav__item
|
37
|
-
|
40
|
+
.header__nav__item,
|
41
|
+
.header__title {
|
38
42
|
text-decoration: none;
|
39
43
|
font-size: 1rem;
|
40
44
|
font-family: $serif-fonts;
|
41
|
-
color: $header-
|
45
|
+
color: $header-color;
|
46
|
+
}
|
47
|
+
|
48
|
+
.header__nav__item {
|
49
|
+
margin-right: 20px;
|
50
|
+
}
|
51
|
+
|
52
|
+
.header__nav__item.is-active {
|
53
|
+
font-weight: bold;
|
42
54
|
}
|
43
55
|
|
44
|
-
.
|
45
|
-
font-size: 1.
|
56
|
+
.header__title {
|
57
|
+
font-size: 1.6rem;
|
46
58
|
margin-right: 40px;
|
47
59
|
font-weight: bold;
|
48
60
|
}
|
@@ -78,6 +90,9 @@ body {
|
|
78
90
|
}
|
79
91
|
|
80
92
|
.footer {
|
93
|
+
display: flex;
|
94
|
+
justify-content: space-between;
|
95
|
+
align-items: center;
|
81
96
|
padding: 25px 0;
|
82
97
|
font-size: .9rem;
|
83
98
|
font-style: italic;
|
@@ -102,7 +117,20 @@ body {
|
|
102
117
|
text-decoration: none;
|
103
118
|
}
|
104
119
|
|
105
|
-
.footer__item:
|
120
|
+
.footer__list .footer__item:after {
|
121
|
+
content: '|';
|
122
|
+
margin-left: 10px;
|
123
|
+
}
|
124
|
+
|
125
|
+
.footer__list .footer__item:last-child:after {
|
126
|
+
display: none;
|
127
|
+
}
|
128
|
+
|
129
|
+
.footer__list--social .footer__item:after {
|
130
|
+
display: none;
|
131
|
+
}
|
132
|
+
|
133
|
+
.footer__list--social .footer__item:nth-child(2):before {
|
106
134
|
content: '|';
|
107
135
|
margin-right: 10px;
|
108
136
|
}
|
data/_sass/_post.scss
CHANGED
data/_sass/_responsive.scss
CHANGED
@@ -9,6 +9,10 @@
|
|
9
9
|
}
|
10
10
|
|
11
11
|
@media screen and (max-width: 480px) {
|
12
|
+
.main {
|
13
|
+
margin: 40px 0 100px;
|
14
|
+
}
|
15
|
+
|
12
16
|
.header {
|
13
17
|
padding: 30px 0;
|
14
18
|
}
|
@@ -21,4 +25,20 @@
|
|
21
25
|
.header__nav__item--title {
|
22
26
|
margin-right: 25px;
|
23
27
|
}
|
28
|
+
|
29
|
+
.footer {
|
30
|
+
display: block;
|
31
|
+
}
|
32
|
+
|
33
|
+
.footer__list--social {
|
34
|
+
margin-top: 10px;
|
35
|
+
}
|
36
|
+
|
37
|
+
.header__nav__item {
|
38
|
+
margin-right: 15px;
|
39
|
+
}
|
40
|
+
|
41
|
+
.header__title {
|
42
|
+
margin-right: 30px;
|
43
|
+
}
|
24
44
|
}
|
data/_sass/dark.scss
CHANGED
@@ -25,7 +25,7 @@ $black: #101010;
|
|
25
25
|
// specific colors for page
|
26
26
|
|
27
27
|
$body-bg-color: $black;
|
28
|
-
$header-
|
28
|
+
$header-color: var(--dark-theme-accent-color);
|
29
29
|
$footer-color: $grey;
|
30
30
|
$icon-color: $grey;
|
31
31
|
|
@@ -43,6 +43,10 @@ $post-blockquote-color: $white-darkest;
|
|
43
43
|
$post-block-color: $white-dark;
|
44
44
|
$post-block-bg-color: $grey-darkest;
|
45
45
|
|
46
|
+
:root {
|
47
|
+
--dark-theme-accent-color: #{$green};
|
48
|
+
}
|
49
|
+
|
46
50
|
@import 'normalize';
|
47
51
|
@import 'settings';
|
48
52
|
@import 'layout';
|
data/_sass/light.scss
CHANGED
@@ -25,7 +25,7 @@ $white: #fff;
|
|
25
25
|
// specific colors for page
|
26
26
|
|
27
27
|
$body-bg-color: $white;
|
28
|
-
$header-
|
28
|
+
$header-color: var(--light-theme-accent-color);
|
29
29
|
$footer-color: $grey;
|
30
30
|
$icon-color: $grey;
|
31
31
|
|
@@ -44,6 +44,10 @@ $post-blockquote-color: $black-lightest;
|
|
44
44
|
$post-block-color: $black-light;
|
45
45
|
$post-block-bg-color: $grey-lightest;
|
46
46
|
|
47
|
+
:root {
|
48
|
+
--light-theme-accent-color: #{$green};
|
49
|
+
}
|
50
|
+
|
47
51
|
@import 'normalize';
|
48
52
|
@import 'settings';
|
49
53
|
@import 'layout';
|
metadata
CHANGED
@@ -1,77 +1,77 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-mint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- aidewoode
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 1980-01-01 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
19
|
version: '3.8'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '5.0'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: '3.8'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '5.0'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: jekyll-feed
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
37
|
- - "~>"
|
32
38
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
39
|
+
version: 0.15.0
|
34
40
|
type: :runtime
|
35
41
|
prerelease: false
|
36
42
|
version_requirements: !ruby/object:Gem::Requirement
|
37
43
|
requirements:
|
38
44
|
- - "~>"
|
39
45
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
46
|
+
version: 0.15.0
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
48
|
name: jekyll-seo-tag
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
44
50
|
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: 2.5.0
|
48
51
|
- - "~>"
|
49
52
|
- !ruby/object:Gem::Version
|
50
|
-
version: 2.
|
53
|
+
version: 2.7.0
|
51
54
|
type: :runtime
|
52
55
|
prerelease: false
|
53
56
|
version_requirements: !ruby/object:Gem::Requirement
|
54
57
|
requirements:
|
55
|
-
- - ">="
|
56
|
-
- !ruby/object:Gem::Version
|
57
|
-
version: 2.5.0
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: 2.
|
60
|
+
version: 2.7.0
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: bundler
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version:
|
67
|
+
version: 2.1.4
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version:
|
74
|
+
version: 2.1.4
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: rake
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,7 +86,7 @@ dependencies:
|
|
86
86
|
- - "~>"
|
87
87
|
- !ruby/object:Gem::Version
|
88
88
|
version: '12.0'
|
89
|
-
description:
|
89
|
+
description:
|
90
90
|
email:
|
91
91
|
- aidewoode@gmail.com
|
92
92
|
executables: []
|
@@ -124,7 +124,7 @@ homepage: https://github.com/aidewoode/jekyll-theme-mint
|
|
124
124
|
licenses:
|
125
125
|
- MIT
|
126
126
|
metadata: {}
|
127
|
-
post_install_message:
|
127
|
+
post_install_message:
|
128
128
|
rdoc_options: []
|
129
129
|
require_paths:
|
130
130
|
- lib
|
@@ -139,8 +139,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
139
139
|
- !ruby/object:Gem::Version
|
140
140
|
version: '0'
|
141
141
|
requirements: []
|
142
|
-
rubygems_version: 3.
|
143
|
-
signing_key:
|
142
|
+
rubygems_version: 3.1.3
|
143
|
+
signing_key:
|
144
144
|
specification_version: 4
|
145
145
|
summary: A clean and responsive jekyll theme
|
146
146
|
test_files: []
|