steve-for-jekyll 0.2.0 → 1.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.
- checksums.yaml +4 -4
- data/404.html +9 -0
- data/LICENSE.txt +21 -21
- data/README.md +194 -5
- data/_config.yml +96 -51
- data/_includes/blog/custom-widgets.html +3 -0
- data/_includes/blog/post.html +57 -47
- data/_includes/blog/sidebar.html +42 -39
- data/_includes/footer.html +11 -13
- data/_includes/footer/custom-text.html +5 -3
- data/_includes/header.html +17 -17
- data/_includes/header/menu.html +12 -12
- data/_includes/post/comment-form.html +69 -0
- data/_includes/post/comments.html +43 -0
- data/_includes/search-form.html +13 -17
- data/_layouts/archive.html +21 -25
- data/_layouts/default.html +18 -18
- data/_layouts/home.html +23 -0
- data/_layouts/page.html +15 -15
- data/_layouts/post.html +115 -96
- data/_sass/{steve.scss → steve-for-jekyll.scss} +51 -51
- data/_sass/steve/_base.scss +237 -248
- data/_sass/steve/_layout.scss +472 -380
- data/assets/css/screen.scss +34 -34
- data/assets/js/responsive-videos.js +79 -79
- data/staticman.yml +33 -0
- metadata +14 -9
data/assets/css/screen.scss
CHANGED
@@ -1,34 +1,34 @@
|
|
1
|
-
---
|
2
|
-
---
|
3
|
-
|
4
|
-
/*
|
5
|
-
Color Scheme
|
6
|
-
/*
|
7
|
-
|
8
|
-
// $color__background-content: #fff; // posts, pages and sidebar background color.
|
9
|
-
// $color__background-body: #e4f0f6; // body background color
|
10
|
-
// $color__text: #000112; // body text color
|
11
|
-
//
|
12
|
-
// $color__link: #4e9dd8; // color for links and accents
|
13
|
-
// $color__link-hover: #2361a7; // alternate color for active or focused links and accents
|
14
|
-
//
|
15
|
-
// $color__details: #939496; // color for details such as borders and shadows
|
16
|
-
// $color__details-lighter: #f0f1f4; // lighter alternative for details
|
17
|
-
// $color__details-darker: #6d6e70; // darker alternative for details
|
18
|
-
|
19
|
-
/*
|
20
|
-
Typography
|
21
|
-
*/
|
22
|
-
|
23
|
-
// $font__body: "Avenir Next", Corbel, "Fira Sans", "Trebuchet MS", Ubuntu, sans-serif; // used for the main, body typography
|
24
|
-
// $font__headings: $font__body; // used for headings and feature elements
|
25
|
-
// $font__code: "Cascadia Code", SFMono-Regular, Menlo, Consolas, "Fira Mono", "DejaVu Sans Mono", monospace; // used for pre-formatted text and code.
|
26
|
-
|
27
|
-
/*
|
28
|
-
Layout
|
29
|
-
*/
|
30
|
-
|
31
|
-
// $layout__container-width: 1180px; // the width of the main content (content + sidebar)
|
32
|
-
// $layout__gutter: 2rem; // the spacing unit between elements.
|
33
|
-
|
34
|
-
@import "
|
1
|
+
---
|
2
|
+
---
|
3
|
+
|
4
|
+
/*
|
5
|
+
Color Scheme
|
6
|
+
/*
|
7
|
+
|
8
|
+
// $color__background-content: #fff; // posts, pages and sidebar background color.
|
9
|
+
// $color__background-body: #e4f0f6; // body background color
|
10
|
+
// $color__text: #000112; // body text color
|
11
|
+
//
|
12
|
+
// $color__link: #4e9dd8; // color for links and accents
|
13
|
+
// $color__link-hover: #2361a7; // alternate color for active or focused links and accents
|
14
|
+
//
|
15
|
+
// $color__details: #939496; // color for details such as borders and shadows
|
16
|
+
// $color__details-lighter: #f0f1f4; // lighter alternative for details
|
17
|
+
// $color__details-darker: #6d6e70; // darker alternative for details
|
18
|
+
|
19
|
+
/*
|
20
|
+
Typography
|
21
|
+
*/
|
22
|
+
|
23
|
+
// $font__body: "Avenir Next", Corbel, "Fira Sans", "Trebuchet MS", Ubuntu, sans-serif; // used for the main, body typography
|
24
|
+
// $font__headings: $font__body; // used for headings and feature elements
|
25
|
+
// $font__code: "Cascadia Code", SFMono-Regular, Menlo, Consolas, "Fira Mono", "DejaVu Sans Mono", monospace; // used for pre-formatted text and code.
|
26
|
+
|
27
|
+
/*
|
28
|
+
Layout
|
29
|
+
*/
|
30
|
+
|
31
|
+
// $layout__container-width: 1180px; // the width of the main content (content + sidebar)
|
32
|
+
// $layout__gutter: 2rem; // the spacing unit between elements.
|
33
|
+
|
34
|
+
@import "{{ site.theme }}";
|
@@ -1,79 +1,79 @@
|
|
1
|
-
/*
|
2
|
-
Responsive videos.
|
3
|
-
*/
|
4
|
-
(function() {
|
5
|
-
var _debounce, _each, _filter, _resize, iframes, isVideo, resizeVideos, videos;
|
6
|
-
|
7
|
-
resizeVideos = function() {
|
8
|
-
_each(videos, function(video) {
|
9
|
-
var newWidth;
|
10
|
-
newWidth = video.parentElement.offsetWidth;
|
11
|
-
_resize(video, newWidth);
|
12
|
-
});
|
13
|
-
};
|
14
|
-
|
15
|
-
_each = function(items, action) {
|
16
|
-
var i, len;
|
17
|
-
i = 0;
|
18
|
-
len = items.length;
|
19
|
-
while (i < len) {
|
20
|
-
action(items[i], i);
|
21
|
-
i++;
|
22
|
-
}
|
23
|
-
};
|
24
|
-
|
25
|
-
_filter = function(items, test) {
|
26
|
-
var filtered, i, item;
|
27
|
-
filtered = [];
|
28
|
-
i = 0;
|
29
|
-
while (i < items.length) {
|
30
|
-
item = items[i];
|
31
|
-
if (test(item, i)) {
|
32
|
-
filtered.push(item);
|
33
|
-
}
|
34
|
-
i++;
|
35
|
-
}
|
36
|
-
return filtered;
|
37
|
-
};
|
38
|
-
|
39
|
-
_resize = function(video, newWidth) {
|
40
|
-
var ASPECT_RATIO, newHeight;
|
41
|
-
ASPECT_RATIO = 9 / 16;
|
42
|
-
newHeight = ASPECT_RATIO * newWidth;
|
43
|
-
video.setAttribute('width', newWidth.toString());
|
44
|
-
video.setAttribute('height', newHeight.toString());
|
45
|
-
};
|
46
|
-
|
47
|
-
_debounce = function(func, wait, immediate) {
|
48
|
-
var timeout;
|
49
|
-
timeout = void 0;
|
50
|
-
return function() {
|
51
|
-
var args, callNow, context, later;
|
52
|
-
context = this;
|
53
|
-
args = arguments;
|
54
|
-
later = function() {
|
55
|
-
timeout = null;
|
56
|
-
if (!immediate) {
|
57
|
-
func.apply(context, args);
|
58
|
-
}
|
59
|
-
};
|
60
|
-
callNow = immediate && !timeout;
|
61
|
-
clearTimeout(timeout);
|
62
|
-
timeout = setTimeout(later, wait);
|
63
|
-
if (callNow) {
|
64
|
-
func.apply(context, args);
|
65
|
-
}
|
66
|
-
};
|
67
|
-
};
|
68
|
-
|
69
|
-
iframes = document.getElementsByTagName('iframe');
|
70
|
-
|
71
|
-
isVideo = /(youtube)|(vimeo)|(cloudup)|(spotify)|(twitch)/i;
|
72
|
-
|
73
|
-
videos = _filter(iframes, function(iframe) {
|
74
|
-
return isVideo.test(iframe.getAttribute('src'));
|
75
|
-
});
|
76
|
-
|
77
|
-
resizeVideos();
|
78
|
-
|
79
|
-
}).call(this);
|
1
|
+
/*
|
2
|
+
Responsive videos.
|
3
|
+
*/
|
4
|
+
(function() {
|
5
|
+
var _debounce, _each, _filter, _resize, iframes, isVideo, resizeVideos, videos;
|
6
|
+
|
7
|
+
resizeVideos = function() {
|
8
|
+
_each(videos, function(video) {
|
9
|
+
var newWidth;
|
10
|
+
newWidth = video.parentElement.offsetWidth;
|
11
|
+
_resize(video, newWidth);
|
12
|
+
});
|
13
|
+
};
|
14
|
+
|
15
|
+
_each = function(items, action) {
|
16
|
+
var i, len;
|
17
|
+
i = 0;
|
18
|
+
len = items.length;
|
19
|
+
while (i < len) {
|
20
|
+
action(items[i], i);
|
21
|
+
i++;
|
22
|
+
}
|
23
|
+
};
|
24
|
+
|
25
|
+
_filter = function(items, test) {
|
26
|
+
var filtered, i, item;
|
27
|
+
filtered = [];
|
28
|
+
i = 0;
|
29
|
+
while (i < items.length) {
|
30
|
+
item = items[i];
|
31
|
+
if (test(item, i)) {
|
32
|
+
filtered.push(item);
|
33
|
+
}
|
34
|
+
i++;
|
35
|
+
}
|
36
|
+
return filtered;
|
37
|
+
};
|
38
|
+
|
39
|
+
_resize = function(video, newWidth) {
|
40
|
+
var ASPECT_RATIO, newHeight;
|
41
|
+
ASPECT_RATIO = 9 / 16;
|
42
|
+
newHeight = ASPECT_RATIO * newWidth;
|
43
|
+
video.setAttribute('width', newWidth.toString());
|
44
|
+
video.setAttribute('height', newHeight.toString());
|
45
|
+
};
|
46
|
+
|
47
|
+
_debounce = function(func, wait, immediate) {
|
48
|
+
var timeout;
|
49
|
+
timeout = void 0;
|
50
|
+
return function() {
|
51
|
+
var args, callNow, context, later;
|
52
|
+
context = this;
|
53
|
+
args = arguments;
|
54
|
+
later = function() {
|
55
|
+
timeout = null;
|
56
|
+
if (!immediate) {
|
57
|
+
func.apply(context, args);
|
58
|
+
}
|
59
|
+
};
|
60
|
+
callNow = immediate && !timeout;
|
61
|
+
clearTimeout(timeout);
|
62
|
+
timeout = setTimeout(later, wait);
|
63
|
+
if (callNow) {
|
64
|
+
func.apply(context, args);
|
65
|
+
}
|
66
|
+
};
|
67
|
+
};
|
68
|
+
|
69
|
+
iframes = document.getElementsByTagName('iframe');
|
70
|
+
|
71
|
+
isVideo = /(youtube)|(vimeo)|(cloudup)|(spotify)|(twitch)/i;
|
72
|
+
|
73
|
+
videos = _filter(iframes, function(iframe) {
|
74
|
+
return isVideo.test(iframe.getAttribute('src'));
|
75
|
+
});
|
76
|
+
|
77
|
+
resizeVideos();
|
78
|
+
|
79
|
+
}).call(this);
|
data/staticman.yml
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
comments:
|
2
|
+
name: steve-for-jekyll
|
3
|
+
branch: feat-staticman-support
|
4
|
+
comment: "adds staticman data"
|
5
|
+
path: "_data/comments/{options.slug}"
|
6
|
+
filename: "comment-{@timestamp}"
|
7
|
+
format: yaml
|
8
|
+
allowedFields:
|
9
|
+
- name
|
10
|
+
- email
|
11
|
+
- website
|
12
|
+
- message
|
13
|
+
generatedFields:
|
14
|
+
date:
|
15
|
+
type: date
|
16
|
+
options:
|
17
|
+
format: timestamp-seconds
|
18
|
+
requiredFields:
|
19
|
+
- name
|
20
|
+
- email
|
21
|
+
- message
|
22
|
+
transforms:
|
23
|
+
email: md5
|
24
|
+
allowedOrigins:
|
25
|
+
- "esporo.github.io"
|
26
|
+
- "localhost"
|
27
|
+
akismet:
|
28
|
+
enabled: true
|
29
|
+
author: name
|
30
|
+
authorEmail: email
|
31
|
+
authorUrl: website
|
32
|
+
content: message
|
33
|
+
type: comment
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: steve-for-jekyll
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: '1.1'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arthur Freitas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-05-
|
11
|
+
date: 2021-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -112,16 +112,16 @@ dependencies:
|
|
112
112
|
name: bundler
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- - "
|
115
|
+
- - ">="
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: '
|
117
|
+
version: '0'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- - "
|
122
|
+
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: '
|
124
|
+
version: '0'
|
125
125
|
description:
|
126
126
|
email:
|
127
127
|
- email@arthr.me
|
@@ -129,6 +129,7 @@ executables: []
|
|
129
129
|
extensions: []
|
130
130
|
extra_rdoc_files: []
|
131
131
|
files:
|
132
|
+
- 404.html
|
132
133
|
- LICENSE.txt
|
133
134
|
- README.md
|
134
135
|
- _config.yml
|
@@ -141,18 +142,22 @@ files:
|
|
141
142
|
- _includes/head.html
|
142
143
|
- _includes/header.html
|
143
144
|
- _includes/header/menu.html
|
145
|
+
- _includes/post/comment-form.html
|
146
|
+
- _includes/post/comments.html
|
144
147
|
- _includes/search-form.html
|
145
148
|
- _layouts/archive.html
|
146
149
|
- _layouts/blog.html
|
147
150
|
- _layouts/default.html
|
151
|
+
- _layouts/home.html
|
148
152
|
- _layouts/page.html
|
149
153
|
- _layouts/post.html
|
150
|
-
- _sass/steve.scss
|
154
|
+
- _sass/steve-for-jekyll.scss
|
151
155
|
- _sass/steve/_base.scss
|
152
156
|
- _sass/steve/_layout.scss
|
153
157
|
- _sass/steve/_syntax.scss
|
154
158
|
- assets/css/screen.scss
|
155
159
|
- assets/js/responsive-videos.js
|
160
|
+
- staticman.yml
|
156
161
|
homepage: https://github.com/esporo/steve
|
157
162
|
licenses:
|
158
163
|
- MIT
|
@@ -172,8 +177,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
172
177
|
- !ruby/object:Gem::Version
|
173
178
|
version: '0'
|
174
179
|
requirements: []
|
175
|
-
rubygems_version: 3.2.
|
180
|
+
rubygems_version: 3.2.15
|
176
181
|
signing_key:
|
177
182
|
specification_version: 4
|
178
|
-
summary: A charming
|
183
|
+
summary: A charming and fun Jekyll theme for blogs.
|
179
184
|
test_files: []
|