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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3e0a6795be07f919339de32014015774dfbd98eeae72ad145367cbf13fa5c09a
4
- data.tar.gz: 702e15208e6fc94b085708341143a030f1e8c949a34b3fbf48be887c807023cf
3
+ metadata.gz: 30db961533c03e5fc57450d2c60ed9bfb0eb0fb2db2458fe18d1feb6bfd6c7d9
4
+ data.tar.gz: 8a5ca288b685b1615a4a81533d3133529053230375d423df62c5c39465b3f4ea
5
5
  SHA512:
6
- metadata.gz: 43cbee9aca3fb27a80cad6bff413099ca4008131e7093983099e4b26f575772458f00f8c2b91dbef4069ee5cc092deca7f23edc5fc76350552ca3f4daae144eb
7
- data.tar.gz: 86ae5c43da11e9d2c0d7a5dc3a2431f6c4ceccc6edb6fea4f5ef072c7b8b7268e7928e60883a9d78ade0231a14ca83c5e1325f8308848c6678af57a175ff4d32
6
+ metadata.gz: 8eb77604f98315bccef6cc7a5ed5ebcceebfdcb247d95ff252dabc317a6cbcd11b79b3715de976ac728962835360a34eef889a57d0706a42219eec80152bf2b5
7
+ data.tar.gz: 9e72a82ba9e616b20310c69748bf61b173caeed4fa856fb87a2bae4c39ee8f4bef6f46c27744a472242676ded7205352561bea9fe8117d0b557a37217b4e46b2
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
@@ -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/) website.
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
- ### 1. Install dependencies
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: "&laquo; Next"
56
+ prev_page: "Previous &raquo;"
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` &mdash; The main menu, above the website content.
135
+ - `_data/social.yml` &mdash; The social menu, in the website sidebar.
136
+ - `_data/links.yml` &mdash; 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) &mdash; generates the RSS feed.
176
+ - [jekyll-seo-map](https://github.com/jekyll/jekyll-seo-tag) &mdash; generates site's OpenGraph and SEO meta tags.
177
+ - [jekyll-sitemap](https://github.com/jekyll/jekyll-sitemap) &mdash; generates the XML sitemap.
178
+ - [jekyll-paginate](https://github.com/jekyll/jekyll-paginate) &mdash; paginates the home post list.
179
+ - [jekyll-archives](https://github.com/jekyll/jekyll-archives) &mdash; 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/[USERNAME]/hello. 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.
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: "https://esporo.github.io"
11
- baseurl: ""
12
-
13
- # Theme settings
14
- steve:
15
- intensedebate_account: # get one at <https://intensedebate.com/install>
16
- archive_title:
17
- date: "Posts from"
18
- tag: "More about"
19
- category: "Category:"
20
- date_formats:
21
- archive:
22
- day: "%m/%d/%Y"
23
- month: "%m/%Y"
24
- year: "%Y"
25
- post: "%m/%d/%Y"
26
-
27
- # Build settings
28
- markdown: kramdown
29
- permalink: "/:year/:month/:day/:title/"
30
-
31
- paginate: 2
32
- paginate_path: "/page/:num/"
33
-
34
- plugins:
35
- - jekyll-feed
36
- - jekyll-seo-tag
37
- - jekyll-sitemap
38
- - jekyll-paginate
39
- - jekyll-archives
40
-
41
- # Plugin: jekyll-archives
42
- jekyll-archives:
43
- enabled: all
44
- layout: archive
45
- slug_mode: default
46
- permalinks:
47
- day: "/:year/:month/:day/"
48
- month: "/:year/:month/"
49
- year: "/:year/"
50
- category: "/:name/"
51
- 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
+ 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/"
@@ -0,0 +1,3 @@
1
+ {% comment %}
2
+ Add your custom sidebar widgets here!
3
+ {% endcomment %}
@@ -1,47 +1,43 @@
1
- {% assign lang = page.lang | default: site.lang %}
2
-
3
- {% assign locale = site.data.locales[lang] %}
4
-
5
- <article class="content post">
6
- <header class="content-header">
7
- {% if post.title != "" %}
8
- <h2 class="content-title">
9
- <a href="{{ post.url }}" rel="bookmark">{{ post.title }}</a>
10
- </h2>
11
- {% endif %}
12
-
13
- <div class="content-meta">
14
- <a class="content-date" href="{{ post.url }}" rel="bookmark">
15
- <time datetime="{{ post.date | date_to_xmlschema }}">
16
- {{ post.date | date: locale.date_formats.post }}
17
- </time>
18
- </a>
19
-
20
- {% if post.author %}
21
- {% assign author = site.data.authors[post.author] %}
22
-
23
- {% if author.url %}
24
- <a class="content-author" href="{{ author.url }}" rel="author">
25
- {{ author.name }}
26
- </a>
27
- {% else %}
28
- <a class="content-author" href="{{ site.twitter.username | append: 'https://twitter.com/' }}" rel="author">
29
- {{ post.author }}
30
- </a>
31
- {% endif %}
32
- {% endif %}
33
- </div>
34
- </header>
35
-
36
- {% if post.image %}
37
- <figure class="content-cover">
38
- <img src="{{ post.image.url | default: post.image }}" alt="{{ post.image.alt | default: '' }}" />
39
- </figure>
40
- {% endif %}
41
-
42
- {% unless include.full_post == false %}
43
- <div class="content-body">
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>