steve-for-jekyll 1.0 → 1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c51e855c1fb3004217431097199681e09854d74c217f9ef853ea18cd8e1a468b
4
- data.tar.gz: 745845b405d92e8fed26ee0a31fcf2d8b3f4ea150c4572e838c37bd84b786478
3
+ metadata.gz: 8d48b46874b23563736072e38066c55729738dbd29edd7dc0481bcf507497fe1
4
+ data.tar.gz: ba010c4c5054f45c8d00f5c6c65c01d751ef0b69c488c636b097bcfdb1afa27b
5
5
  SHA512:
6
- metadata.gz: 166223275238afedf0f4b9a1e195793df2cf020549325122cef3968029bda8aa8617ea75e331266202b8fd03a478a021e1ccc786083276fcd9a9b07c36e68938
7
- data.tar.gz: 1df804482f3eadb8ca485cecfd4d7d7cd67f9da9bfd7636c7c92986842ba3495755a67ff8962828eed153a099eb12da5bc48f0f0ee20ec677eb5954019a6dfd0
6
+ metadata.gz: c344c0f6c86e74443d634f5db2636c3a237b54d586b2c87b84c704fc65b53d177f84de24a24fa9c5c5071b618f2957df25cfe9e7db021e30447f476113c2007e
7
+ data.tar.gz: 442425b0f96ad3f7a597be65b69427133c9584447ddf0b73f292074193607203fd6f929977f5bce0b2836e5bce116670f47c3622b339b26349322a3f43566e42
data/404.html ADDED
@@ -0,0 +1,9 @@
1
+ ---
2
+ layout: page
3
+ title: 404
4
+ permalink: /404.html
5
+ ---
6
+
7
+ {{ site.steve.page_404 | markdownify }}
8
+
9
+ {% include search-form.html %}
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
@@ -73,12 +73,14 @@ You can change Steve's appearance with a different color scheme or typography se
73
73
 
74
74
  1. Create a `screen.scss` file in `assets/css`.
75
75
  2. Add the following content:
76
- ```scss
77
- ---
78
- ---
79
76
 
80
- @import "{{ site.theme }}";
81
- ```
77
+ ```scss
78
+ ---
79
+ ---
80
+
81
+ @import "{{ site.theme }}";
82
+ ```
83
+
82
84
  3. Before the `@import` declaration, you can set the following custom SCSS variables:
83
85
 
84
86
  ```scss
@@ -105,12 +107,11 @@ $font__body: sans-serif; // used for the main, body typography
105
107
  $font__headings: sans-serif; // used for headings and feature elements
106
108
  $font__code: monospace; // used for pre-formatted text and code.
107
109
 
108
-
109
110
  /*
110
111
  Layout
111
112
  */
112
113
  $layout__container-width: 1180px; // the width of the main content (content + sidebar)
113
- $layout__gutter: 2rem ; // the spacing unit between elements.
114
+ $layout__gutter: 2rem; // the spacing unit between elements.
114
115
  ```
115
116
 
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.
@@ -123,16 +124,16 @@ Steve supports two editable areas and three different menus.
123
124
 
124
125
  You can add any content you want in your site's sidebar or footer.
125
126
 
126
- * Create a `custom-widgets.html` file in `_includes/blog/` to add custom content to your site's sidebar.
127
- * Create a `custom-text.html` file in `_includes/footer` to add custom content to your site's footer.
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.
128
129
 
129
130
  #### Menus
130
131
 
131
132
  Steve has three menu positions controlled using [Jekyll data files](https://jekyllrb.com/docs/datafiles/):
132
133
 
133
- * `_data/menu.yml` — The main menu, above the website content.
134
- * `_data/social.yml` — The social menu, in the website sidebar.
135
- * `_data/links.yml` — And a third menu at the bottom of your website's footer.
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.
136
137
 
137
138
  Create the respective data file for the menu you want to use. Menus are a YAML List with the following structure:
138
139
 
@@ -151,12 +152,12 @@ Blogrolls are linked lists shown in your site's sidebar.Like menus, you can set
151
152
  ```yaml
152
153
  - title: Blogroll # The blogroll title shown in the sidebar
153
154
  links: # The list of links in this blogroll
154
- - title: Link 1
155
- url: "https://example.com"
156
- - title: Link 2
157
- url: "https://example.net"
158
- - title: Link 3
159
- url: "https://example.org"
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"
160
161
  - title: Blogroll 2
161
162
  links:
162
163
  - title: Link 1
@@ -165,7 +166,7 @@ Blogrolls are linked lists shown in your site's sidebar.Like menus, you can set
165
166
  url: "https://example.net"
166
167
  - title: Link 3
167
168
  url: "https://example.org"
168
- ```
169
+ ```
169
170
 
170
171
  ### Plugin-specific settings
171
172
 
@@ -179,6 +180,46 @@ Steve uses the following Jekyll plugins to create sitemaps, RSS feeds, archives
179
180
 
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.
181
182
 
183
+ ### Comments
184
+
185
+ Steve supports [Staticman](https://staticman.net)-powered comments, and provides initial settings from our own `staticman.yml` config file. You can create your own settings at any time, but keep in mind that Steve looks for the following fields when submitting comments:
186
+
187
+ - `name`
188
+ - `email`
189
+ - `website`
190
+ - `message`
191
+
192
+ [Follow these instructions](https://staticman.net/docs/getting-started.html) to set up your Staticman instance.
193
+
194
+ You can also customize your comments' section and submit form adding the `site.comments` object in your `_config.yml`:
195
+
196
+ ```yaml
197
+ comments:
198
+ title: Comments
199
+ form_title: New Comment
200
+ date_format: "%b %e, %Y @ %l:%M %P"
201
+ staticman_endpoint: # Get yours on <https://staticman.net>
202
+ notice: |+ # Accepts Markdown
203
+ Please be nice in the comments.
204
+
205
+ Comments are moderated, so it can take a while for your's to show up.
206
+
207
+ Also, you can use [Markdown](https://daringfireball.net/projects/markdown).
208
+ fields:
209
+ name:
210
+ label: Name
211
+ placeholder: "John Appleseed"
212
+ email:
213
+ label: Email address
214
+ placeholder: "your@email.net"
215
+ website:
216
+ label: Website
217
+ placeholder: "https://john.blog/"
218
+ message:
219
+ label: Message
220
+ placeholder: Your comment message
221
+ submit: Submit Comment
222
+ ```
182
223
  ## Contributing
183
224
 
184
225
  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.
@@ -190,9 +231,8 @@ To set up your environment to develop this theme, run `bundle install`.
190
231
  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.
191
232
 
192
233
  When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
193
- To add a custom directory to your theme-gem, please edit the regexp in `steve.gemspec` accordingly.
234
+ To add a custom directory to your theme-gem, please edit the regexp in `steve-for-jekyll.gemspec` accordingly.
194
235
 
195
236
  ## License
196
237
 
197
238
  The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
198
-
data/_config.yml CHANGED
@@ -1,70 +1,96 @@
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: "https://esporo.github.io/steve"
11
- baseurl: ""
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: "&laquo; Next"
32
- prev_page: "Previous &raquo;"
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/"
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
+ archives: # Prefixes used with archive titles
16
+ date: Posts from
17
+ tag: More about…
18
+ category: Posts filed in
19
+ date_formats: # Uses <http://strftime.net>
20
+ post: "%b %e, %Y"
21
+ archives:
22
+ day: "%b %e, %Y"
23
+ month: "%b, %Y"
24
+ year: "%Y"
25
+ page_404: |+
26
+ The page you're looking for could not be found.
27
+
28
+ Maybe the search can help.
29
+ pagination:
30
+ next_page: "&laquo; Next"
31
+ prev_page: "Previous &raquo;"
32
+ prev_post: "Previous:"
33
+ next_post: "Next:"
34
+ post:
35
+ byline: "By"
36
+ tags: More about…
37
+ search:
38
+ label: Search this blog
39
+ placeholder: What you're looking for?
40
+ submit: Go!
41
+
42
+ # Comments Settings
43
+ comments:
44
+ title: Comments
45
+ form_title: New Comment
46
+ date_format: "%b %e, %Y @ %l:%M %P"
47
+ staticman_endpoint: # Get yours on <https://staticman.net>
48
+ notice: |+
49
+ Please be nice in the comments.
50
+
51
+ Comments are moderated, so it can take a while for your's to show up.
52
+
53
+ Also, you can use [Markdown](https://daringfireball.net/projects/markdown).
54
+ fields:
55
+ name:
56
+ label: Name
57
+ placeholder: "John Appleseed"
58
+ email:
59
+ label: Email address
60
+ placeholder: "your@email.net"
61
+ website:
62
+ label: Website
63
+ placeholder: "https://john.blog/"
64
+ message:
65
+ label: Message
66
+ placeholder: Your comment message
67
+ submit: Submit Comment
68
+
69
+
70
+ # Build settings
71
+ markdown: kramdown
72
+ permalink: "/:year/:month/:day/:title/"
73
+
74
+ theme: steve-for-jekyll
75
+
76
+ paginate: 6
77
+ paginate_path: "/page/:num/"
78
+
79
+ plugins:
80
+ - jekyll-feed
81
+ - jekyll-seo-tag
82
+ - jekyll-sitemap
83
+ - jekyll-paginate
84
+ - jekyll-archives
85
+
86
+ # Plugin: jekyll-archives
87
+ jekyll-archives:
88
+ enabled: all
89
+ layout: archive
90
+ slug_mode: default
91
+ permalinks:
92
+ day: "/:year/:month/:day/"
93
+ month: "/:year/:month/"
94
+ year: "/:year/"
95
+ category: "/:name/"
96
+ tag: "/tag/:name/"
@@ -1,3 +1,3 @@
1
- {% comment %}
2
- Add your custom sidebar widgets here!
3
- {% endcomment %}
1
+ {% comment %}
2
+ Add your custom sidebar widgets here!
3
+ {% endcomment %}
@@ -1,13 +1,27 @@
1
1
  <article class="content post">
2
2
  <header class="content-header">
3
+ {% if post.category %}
4
+ <div class="content-meta">
5
+ {%- assign category_slug = post.category | slugify -%}
6
+ {%- assign category_url = site.jekyll-archives.permalinks.category -%}
7
+
8
+ <a
9
+ href="{{ category_url | replace: ':name', category_slug | relative_url }}"
10
+ rel="tag"
11
+ >
12
+ {{- post.category -}}
13
+ </a>
14
+ </div>
15
+ {% endif %}
16
+
3
17
  {% if post.title != "" %}
4
18
  <h2 class="content-title">
5
- <a href="{{ post.url }}" rel="bookmark">{{ post.title }}</a>
19
+ <a href="{{ post.url | relative_url }}" rel="bookmark">{{ post.title }}</a>
6
20
  </h2>
7
21
  {% endif %}
8
22
 
9
23
  <div class="content-meta">
10
- <a class="content-date" href="{{ post.url }}" rel="bookmark">
24
+ <a class="content-date" href="{{ post.url | relative_url }}" rel="bookmark">
11
25
  <time datetime="{{ post.date | date_to_xmlschema }}">
12
26
  {{ post.date | date: site.steve.date_formats.post }}
13
27
  </time>
@@ -1,42 +1,42 @@
1
- {% include search-form.html class="widget -search" %}
2
-
3
- {% capture custom_widgets %}
4
- {% include blog/custom-widgets.html %}
5
- {% endcapture %}
6
-
7
- {% assign custom_widgets = custom_widgets | strip | strip_newlines | normalize_whitespace %}
8
-
9
- {% if site.data.social or site.data.blogroll or custom_widgets != "" %}
10
- <aside class="widget -sidebar">
11
- {% if site.data.social %}
12
- <ul class="social-links">
13
- {% for link in site.data.social %}
14
- <li class="link">
15
- <a href="{{ link.url }}" rel="external">
16
- {{ link.icon }}
17
- </a>
18
- </li>
19
- {% endfor %}
20
- </ul>
21
- {% endif %}
22
- {% if site.data.blogroll %}
23
- {% for blogroll in site.data.blogroll %}
24
- <section class="blogroll">
25
- <h4 class="blogroll-title">{{ blogroll.title }}</h4>
26
-
27
- <ul class="blogroll-list">
28
- {% for link in blogroll.links %}
29
- <li class="link">
30
- <a href="{{ link.url }}" {% if link.external %} rel="external" {% endif %}>
31
- {{ link.title }}
32
- </a>
33
- </li>
34
- {% endfor %}
35
- </ul>
36
- </section>
37
- {% endfor %}
38
- {% endif %}
39
-
40
- {{ custom_widgets }}
41
- </aside>
42
- {% endif %}
1
+ {% include search-form.html class="widget -search" %}
2
+
3
+ {% capture custom_widgets %}
4
+ {% include blog/custom-widgets.html %}
5
+ {% endcapture %}
6
+
7
+ {% assign custom_widgets = custom_widgets | strip | strip_newlines | normalize_whitespace %}
8
+
9
+ {% if site.data.social or site.data.blogroll or custom_widgets != "" %}
10
+ <aside class="widget -sidebar">
11
+ {% if site.data.social %}
12
+ <ul class="social-links">
13
+ {% for link in site.data.social %}
14
+ <li class="link">
15
+ <a href="{{ link.url }}" rel="external">
16
+ {{ link.icon }}
17
+ </a>
18
+ </li>
19
+ {% endfor %}
20
+ </ul>
21
+ {% endif %}
22
+ {% if site.data.blogroll %}
23
+ {% for blogroll in site.data.blogroll %}
24
+ <section class="blogroll">
25
+ <h4 class="blogroll-title">{{ blogroll.title }}</h4>
26
+
27
+ <ul class="blogroll-list">
28
+ {% for link in blogroll.links %}
29
+ <li class="link">
30
+ <a href="{{ link.url }}" {% if link.external %} rel="external" {% endif %}>
31
+ {{ link.title }}
32
+ </a>
33
+ </li>
34
+ {% endfor %}
35
+ </ul>
36
+ </section>
37
+ {% endfor %}
38
+ {% endif %}
39
+
40
+ {{ custom_widgets }}
41
+ </aside>
42
+ {% endif %}