steve-for-jekyll 0.1.0 → 1.0.3
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 +154 -5
- data/_config.yml +70 -51
- data/_includes/blog/custom-widgets.html +3 -0
- data/_includes/blog/post.html +43 -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/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 +92 -96
- data/_sass/{steve.scss → steve-for-jekyll.scss} +51 -51
- data/_sass/steve/_base.scss +222 -248
- data/_sass/steve/_layout.scss +397 -380
- data/assets/css/screen.scss +34 -34
- data/assets/js/responsive-videos.js +79 -79
- metadata +84 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30db961533c03e5fc57450d2c60ed9bfb0eb0fb2db2458fe18d1feb6bfd6c7d9
|
4
|
+
data.tar.gz: 8a5ca288b685b1615a4a81533d3133529053230375d423df62c5c39465b3f4ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8eb77604f98315bccef6cc7a5ed5ebcceebfdcb247d95ff252dabc317a6cbcd11b79b3715de976ac728962835360a34eef889a57d0706a42219eec80152bf2b5
|
7
|
+
data.tar.gz: 9e72a82ba9e616b20310c69748bf61b173caeed4fa856fb87a2bae4c39ee8f4bef6f46c27744a472242676ded7205352561bea9fe8117d0b557a37217b4e46b2
|
data/404.html
ADDED
data/LICENSE.txt
CHANGED
@@ -1,21 +1,21 @@
|
|
1
|
-
The MIT License (MIT)
|
2
|
-
|
3
|
-
Copyright (c) 2021 Arthur Freitas
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
13
|
-
all copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
-
THE SOFTWARE.
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2021 Arthur Freitas
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Steve for Jekyll
|
2
2
|
|
3
|
-
Steve is a charming and fun blog theme for [Jekyll](https://jekyllrb.com/), the static site generator. It's developed by [@arthrfrts](https://github.com/arthrfrts) to be used on the [Esporo](https://esporo.net/)
|
3
|
+
Steve is a charming and fun blog theme for [Jekyll](https://jekyllrb.com/), the static site generator. It's developed by [@arthrfrts](https://github.com/arthrfrts) to be used on the [Esporo](https://esporo.net/) websites — but feel free to use it in any project you may find it fitting.
|
4
4
|
|
5
5
|
See it in action on the [demo site](https://esporo.github.io/steve).
|
6
6
|
|
@@ -28,11 +28,161 @@ Or install it yourself as:
|
|
28
28
|
|
29
29
|
## Usage
|
30
30
|
|
31
|
-
|
31
|
+
Steve is made to be used with zero-configuration needed. Even so, you can customize it further with theme settings, style variables, content includes and plugin-specific configurations. We will guide you through each one of those.
|
32
|
+
|
33
|
+
### Theme settings
|
34
|
+
|
35
|
+
Steve's settings are defined in your site's `_config.yml`:
|
36
|
+
|
37
|
+
```yaml
|
38
|
+
steve:
|
39
|
+
intensedebate_account: # get one at <https://intensedebate.com/install>
|
40
|
+
archives: # Prefixes used with archive titles
|
41
|
+
date: Posts from
|
42
|
+
tag: More about…
|
43
|
+
category: Posts filed in
|
44
|
+
date_formats: # Uses <http://strftime.net>
|
45
|
+
post: "%b %e, %Y" # The date format used in the post layout.
|
46
|
+
archives: # The date formats for the archive layout.
|
47
|
+
day: "%b %e, %Y"
|
48
|
+
month: "%b, %Y"
|
49
|
+
year: "%Y"
|
50
|
+
page_404: |+
|
51
|
+
The page you're looking for could not be found.
|
52
|
+
|
53
|
+
Maybe the search can help.
|
54
|
+
pagination: # Strings used in the blog- and post-pagination.
|
55
|
+
next_page: "« Next"
|
56
|
+
prev_page: "Previous »"
|
57
|
+
prev_post: "Previous:"
|
58
|
+
next_post: "Next:"
|
59
|
+
post: # Strings used in the post layout.
|
60
|
+
byline: "By"
|
61
|
+
tags: More about…
|
62
|
+
search: # Strings used in the search form.
|
63
|
+
label: Search this blog
|
64
|
+
placeholder: What you're looking for?
|
65
|
+
submit: Go!
|
66
|
+
```
|
67
|
+
|
68
|
+
The above are the default values that Steve will use. Feel free to change the ones you want. This is useful if you want to localize the theme strings or change the date formats used by the theme.
|
69
|
+
|
70
|
+
### Style variables
|
71
|
+
|
72
|
+
You can change Steve's appearance with a different color scheme or typography setting custom variables. Follow these instructions:
|
73
|
+
|
74
|
+
1. Create a `screen.scss` file in `assets/css`.
|
75
|
+
2. Add the following content:
|
76
|
+
|
77
|
+
```scss
|
78
|
+
---
|
79
|
+
---
|
80
|
+
|
81
|
+
@import "{{ site.theme }}";
|
82
|
+
```
|
83
|
+
|
84
|
+
3. Before the `@import` declaration, you can set the following custom SCSS variables:
|
85
|
+
|
86
|
+
```scss
|
87
|
+
/*
|
88
|
+
Color Scheme
|
89
|
+
*/
|
90
|
+
|
91
|
+
$color__background-content: #fff; // posts, pages and sidebar background color.
|
92
|
+
$color__background-body: #e4f0f6; // body background color:
|
93
|
+
$color__text: #000112; // body text color
|
94
|
+
|
95
|
+
$color__link: #4e9dd8; // color for links and accents
|
96
|
+
$color__link-hover: #2361a7; // alternate color for active or focused links and accents
|
97
|
+
|
98
|
+
$color__details: #939496; // color for details such as borders and shadows
|
99
|
+
$color__details-lighter: #f0f1f4; // lighter alternative for details
|
100
|
+
$color__details-darker: #6d6e70; // darker alternative for details
|
101
|
+
|
102
|
+
/*
|
103
|
+
Typography
|
104
|
+
*/
|
105
|
+
|
106
|
+
$font__body: sans-serif; // used for the main, body typography
|
107
|
+
$font__headings: sans-serif; // used for headings and feature elements
|
108
|
+
$font__code: monospace; // used for pre-formatted text and code.
|
109
|
+
|
110
|
+
/*
|
111
|
+
Layout
|
112
|
+
*/
|
113
|
+
$layout__container-width: 1180px; // the width of the main content (content + sidebar)
|
114
|
+
$layout__gutter: 2rem; // the spacing unit between elements.
|
115
|
+
```
|
116
|
+
|
117
|
+
You can change the values to any variable you want. Steve will replace the default values set by the theme with the ones you choose. Be sure that the variable definitions are **above** your `@import "{{ site.theme }}"` declaration.
|
118
|
+
|
119
|
+
### Content includes
|
120
|
+
|
121
|
+
Steve supports two editable areas and three different menus.
|
122
|
+
|
123
|
+
#### Editable areas
|
124
|
+
|
125
|
+
You can add any content you want in your site's sidebar or footer.
|
126
|
+
|
127
|
+
- Create a `custom-widgets.html` file in `_includes/blog/` to add custom content to your site's sidebar.
|
128
|
+
- Create a `custom-text.html` file in `_includes/footer` to add custom content to your site's footer.
|
129
|
+
|
130
|
+
#### Menus
|
131
|
+
|
132
|
+
Steve has three menu positions controlled using [Jekyll data files](https://jekyllrb.com/docs/datafiles/):
|
133
|
+
|
134
|
+
- `_data/menu.yml` — The main menu, above the website content.
|
135
|
+
- `_data/social.yml` — The social menu, in the website sidebar.
|
136
|
+
- `_data/links.yml` — And a third menu at the bottom of your website's footer.
|
137
|
+
|
138
|
+
Create the respective data file for the menu you want to use. Menus are a YAML List with the following structure:
|
139
|
+
|
140
|
+
```yaml
|
141
|
+
- title: "About this site" # The item title
|
142
|
+
url: "/about/" # The item URL or path
|
143
|
+
external: true # Optional, if the link points to an external resource.
|
144
|
+
color: "#336699" # Only on `_data/menu.yml`, the background color of this menu item.
|
145
|
+
icon: "<svg ...>" # Only on `_data/social.yml`, the SVG icon markup for this item -- get one in <https://simpleicons.org>
|
146
|
+
```
|
147
|
+
|
148
|
+
#### Blogrolls
|
149
|
+
|
150
|
+
Blogrolls are linked lists shown in your site's sidebar.Like menus, you can set up as any blogrolls as you want using the `_data/blogroll.yml` data file.
|
151
|
+
|
152
|
+
```yaml
|
153
|
+
- title: Blogroll # The blogroll title shown in the sidebar
|
154
|
+
links: # The list of links in this blogroll
|
155
|
+
- title: Link 1
|
156
|
+
url: "https://example.com"
|
157
|
+
- title: Link 2
|
158
|
+
url: "https://example.net"
|
159
|
+
- title: Link 3
|
160
|
+
url: "https://example.org"
|
161
|
+
- title: Blogroll 2
|
162
|
+
links:
|
163
|
+
- title: Link 1
|
164
|
+
url: "https://example.com"
|
165
|
+
- title: Link 2
|
166
|
+
url: "https://example.net"
|
167
|
+
- title: Link 3
|
168
|
+
url: "https://example.org"
|
169
|
+
```
|
170
|
+
|
171
|
+
### Plugin-specific settings
|
172
|
+
|
173
|
+
Steve uses the following Jekyll plugins to create sitemaps, RSS feeds, archives and much more.
|
174
|
+
|
175
|
+
- [jekyll-feed](https://github.com/jekyll/jekyll-feed) — generates the RSS feed.
|
176
|
+
- [jekyll-seo-map](https://github.com/jekyll/jekyll-seo-tag) — generates site's OpenGraph and SEO meta tags.
|
177
|
+
- [jekyll-sitemap](https://github.com/jekyll/jekyll-sitemap) — generates the XML sitemap.
|
178
|
+
- [jekyll-paginate](https://github.com/jekyll/jekyll-paginate) — paginates the home post list.
|
179
|
+
- [jekyll-archives](https://github.com/jekyll/jekyll-archives) — generates the archives by date, tag and category.
|
180
|
+
|
181
|
+
While Steve sets initial configurations for these plugins, you may want to change them in your `_config.yml`. Please refer to these plugins documentations for further reading about how to change their config options.
|
32
182
|
|
33
183
|
## Contributing
|
34
184
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
185
|
+
Bug reports and pull requests are welcome on GitHub at <https://github.com/esporo/steve>. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
36
186
|
|
37
187
|
## Development
|
38
188
|
|
@@ -41,9 +191,8 @@ To set up your environment to develop this theme, run `bundle install`.
|
|
41
191
|
Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
|
42
192
|
|
43
193
|
When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
|
44
|
-
To add a custom directory to your theme-gem, please edit the regexp in `steve.gemspec` accordingly.
|
194
|
+
To add a custom directory to your theme-gem, please edit the regexp in `steve-for-jekyll.gemspec` accordingly.
|
45
195
|
|
46
196
|
## License
|
47
197
|
|
48
198
|
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
49
|
-
|
data/_config.yml
CHANGED
@@ -1,51 +1,70 @@
|
|
1
|
-
# Site info
|
2
|
-
title: Steve for Jekyll
|
3
|
-
tagline: Charming and fun blog theme.
|
4
|
-
description: Steve is a charming and fun blog theme for Jekyll websites.
|
5
|
-
|
6
|
-
email: steve-support@esporo.net
|
7
|
-
|
8
|
-
lang: en
|
9
|
-
|
10
|
-
url: "
|
11
|
-
baseurl: ""
|
12
|
-
|
13
|
-
# Theme settings
|
14
|
-
steve:
|
15
|
-
intensedebate_account: # get one at <https://intensedebate.com/install>
|
16
|
-
|
17
|
-
date:
|
18
|
-
tag:
|
19
|
-
category:
|
20
|
-
date_formats:
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
1
|
+
# Site info
|
2
|
+
title: Steve for Jekyll
|
3
|
+
tagline: Charming and fun blog theme.
|
4
|
+
description: Steve is a charming and fun blog theme for Jekyll websites.
|
5
|
+
|
6
|
+
email: steve-support@esporo.net
|
7
|
+
|
8
|
+
lang: en
|
9
|
+
|
10
|
+
url: ""
|
11
|
+
baseurl: "/steve/"
|
12
|
+
|
13
|
+
# Theme settings
|
14
|
+
steve:
|
15
|
+
intensedebate_account: # get one at <https://intensedebate.com/install>
|
16
|
+
archives: # Prefixes used with archive titles
|
17
|
+
date: Posts from
|
18
|
+
tag: More about…
|
19
|
+
category: Posts filed in
|
20
|
+
date_formats: # Uses <http://strftime.net>
|
21
|
+
post: "%b %e, %Y"
|
22
|
+
archives:
|
23
|
+
day: "%b %e, %Y"
|
24
|
+
month: "%b, %Y"
|
25
|
+
year: "%Y"
|
26
|
+
page_404: |+
|
27
|
+
The page you're looking for could not be found.
|
28
|
+
|
29
|
+
Maybe the search can help.
|
30
|
+
pagination:
|
31
|
+
next_page: "« Next"
|
32
|
+
prev_page: "Previous »"
|
33
|
+
prev_post: "Previous:"
|
34
|
+
next_post: "Next:"
|
35
|
+
post:
|
36
|
+
byline: "By"
|
37
|
+
tags: More about…
|
38
|
+
search:
|
39
|
+
label: Search this blog
|
40
|
+
placeholder: What you're looking for?
|
41
|
+
submit: Go!
|
42
|
+
|
43
|
+
|
44
|
+
# Build settings
|
45
|
+
markdown: kramdown
|
46
|
+
permalink: "/:year/:month/:day/:title/"
|
47
|
+
|
48
|
+
theme: steve-for-jekyll
|
49
|
+
|
50
|
+
paginate: 6
|
51
|
+
paginate_path: "/page/:num/"
|
52
|
+
|
53
|
+
plugins:
|
54
|
+
- jekyll-feed
|
55
|
+
- jekyll-seo-tag
|
56
|
+
- jekyll-sitemap
|
57
|
+
- jekyll-paginate
|
58
|
+
- jekyll-archives
|
59
|
+
|
60
|
+
# Plugin: jekyll-archives
|
61
|
+
jekyll-archives:
|
62
|
+
enabled: all
|
63
|
+
layout: archive
|
64
|
+
slug_mode: default
|
65
|
+
permalinks:
|
66
|
+
day: "/:year/:month/:day/"
|
67
|
+
month: "/:year/:month/"
|
68
|
+
year: "/:year/"
|
69
|
+
category: "/:name/"
|
70
|
+
tag: "/tag/:name/"
|
data/_includes/blog/post.html
CHANGED
@@ -1,47 +1,43 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
{%
|
4
|
-
|
5
|
-
<
|
6
|
-
|
7
|
-
{%
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
{%
|
24
|
-
<a class="content-author" href="{{ author.
|
25
|
-
{{ author
|
26
|
-
</a>
|
27
|
-
{%
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
{%
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
{%
|
43
|
-
|
44
|
-
{{ post.content }}
|
45
|
-
</div>
|
46
|
-
{% endunless %}
|
47
|
-
</article>
|
1
|
+
<article class="content post">
|
2
|
+
<header class="content-header">
|
3
|
+
{% if post.title != "" %}
|
4
|
+
<h2 class="content-title">
|
5
|
+
<a href="{{ post.url | relative_url }}" rel="bookmark">{{ post.title }}</a>
|
6
|
+
</h2>
|
7
|
+
{% endif %}
|
8
|
+
|
9
|
+
<div class="content-meta">
|
10
|
+
<a class="content-date" href="{{ post.url | relative_url }}" rel="bookmark">
|
11
|
+
<time datetime="{{ post.date | date_to_xmlschema }}">
|
12
|
+
{{ post.date | date: site.steve.date_formats.post }}
|
13
|
+
</time>
|
14
|
+
</a>
|
15
|
+
|
16
|
+
{% if post.author %}
|
17
|
+
{% assign author = site.data.authors[post.author] %}
|
18
|
+
|
19
|
+
{% if author.url %}
|
20
|
+
<a class="content-author" href="{{ author.url }}" rel="author">
|
21
|
+
{{ author.name }}
|
22
|
+
</a>
|
23
|
+
{% else %}
|
24
|
+
<a class="content-author" href="{{ post.author | prepend: 'https://twitter.com/' }}" rel="author">
|
25
|
+
{{ post.author }}
|
26
|
+
</a>
|
27
|
+
{% endif %}
|
28
|
+
{% endif %}
|
29
|
+
</div>
|
30
|
+
</header>
|
31
|
+
|
32
|
+
{% if post.image %}
|
33
|
+
<figure class="content-cover">
|
34
|
+
<img src="{{ post.image.url | default: post.image }}" alt="{{ post.image.alt | default: '' }}" />
|
35
|
+
</figure>
|
36
|
+
{% endif %}
|
37
|
+
|
38
|
+
{% unless include.full_post == false %}
|
39
|
+
<div class="content-body">
|
40
|
+
{{ post.content }}
|
41
|
+
</div>
|
42
|
+
{% endunless %}
|
43
|
+
</article>
|