steve-for-jekyll 1.2 → 1.2.2
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 -9
- data/LICENSE.txt +21 -21
- data/README.md +1 -195
- data/_includes/blog/custom-widgets.html +3 -3
- data/_includes/blog/sidebar.html +42 -42
- data/_includes/footer/custom-text.html +5 -5
- data/_includes/footer.html +11 -11
- data/_includes/head.html +1 -9
- data/_includes/header/menu.html +12 -12
- data/_includes/header.html +17 -17
- data/_includes/search-form.html +13 -13
- data/_layouts/archive.html +21 -21
- data/_layouts/default.html +18 -18
- data/_layouts/home.html +23 -23
- data/_layouts/page.html +15 -15
- data/_layouts/post.html +115 -115
- data/_sass/steve/_layout.scss +477 -472
- data/_sass/steve-for-jekyll.scss +51 -51
- data/assets/css/screen.scss +34 -34
- data/assets/js/responsive-videos.js +79 -79
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 938078277c4889e23800a3fb856b64f9c7b4a128fe35ebee9582c7b14f1dc2c4
|
4
|
+
data.tar.gz: 33fb95f23406ea85b899bd12f12a99989d45b6f6d83910d05660ccd5640e8de9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1bcc7e393f0abf93701a82319266ac27d2ae5347b759e9060c5f85b93ac7f25ea8cea1fa5d36c0a380103625d4220bd46cdc0893dfad4beae720b58931621bb2
|
7
|
+
data.tar.gz: 11430b86ce07eb2066435c8b73801b8d53824d0550f84320f70e42d00fa831fe3b281e86b38011062e0b1bf65fb3db54a98b4f91dd78e9ce05c6a305c23ecf7a
|
data/404.html
CHANGED
@@ -1,9 +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 %}
|
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
@@ -26,201 +26,7 @@ Or install it yourself as:
|
|
26
26
|
|
27
27
|
$ gem install steve
|
28
28
|
|
29
|
-
|
30
|
-
|
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
|
-
- [jekyll-loading-lazy](https://github.com/gildesmarais/jekyll-loading-lazy) — adds `loading="lazy"` to all images and frames on your pages and posts.
|
181
|
-
|
182
|
-
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.
|
183
|
-
|
184
|
-
### Comments
|
185
|
-
|
186
|
-
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:
|
187
|
-
|
188
|
-
- `name`
|
189
|
-
- `email`
|
190
|
-
- `website`
|
191
|
-
- `message`
|
192
|
-
|
193
|
-
[Follow these instructions](https://staticman.net/docs/getting-started.html) to set up your Staticman instance.
|
194
|
-
|
195
|
-
You can also customize your comments' section and submit form adding the `site.comments` object in your `_config.yml`:
|
196
|
-
|
197
|
-
```yaml
|
198
|
-
comments:
|
199
|
-
title: Comments
|
200
|
-
form_title: New Comment
|
201
|
-
date_format: "%b %e, %Y @ %l:%M %P"
|
202
|
-
staticman_endpoint: # Get yours on <https://staticman.net>
|
203
|
-
notice: |+ # Accepts Markdown
|
204
|
-
Please be nice in the comments.
|
205
|
-
|
206
|
-
Comments are moderated, so it can take a while for your's to show up.
|
207
|
-
|
208
|
-
Also, you can use [Markdown](https://daringfireball.net/projects/markdown).
|
209
|
-
fields:
|
210
|
-
name:
|
211
|
-
label: Name
|
212
|
-
placeholder: "John Appleseed"
|
213
|
-
email:
|
214
|
-
label: Email address
|
215
|
-
placeholder: "your@email.net"
|
216
|
-
website:
|
217
|
-
label: Website
|
218
|
-
placeholder: "https://john.blog/"
|
219
|
-
message:
|
220
|
-
label: Message
|
221
|
-
placeholder: Your comment message
|
222
|
-
submit: Submit Comment
|
223
|
-
```
|
29
|
+
Steve will work out-of-the-box when installed, but it has plenty of options for you to make it yours. [Refer to the theme documentation](https://github.com/esporo/steve/wiki) to learn how to add menus, comments, change your theme style or set up Steve's options.
|
224
30
|
|
225
31
|
## Contributing
|
226
32
|
|
@@ -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 %}
|
data/_includes/blog/sidebar.html
CHANGED
@@ -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 %}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
{% comment %}
|
2
|
-
Create a file like this and add your own custom content that should be shown at the bottom of your website.
|
3
|
-
{% endcomment %}
|
4
|
-
|
5
|
-
{{ site.description }}
|
1
|
+
{% comment %}
|
2
|
+
Create a file like this and add your own custom content that should be shown at the bottom of your website.
|
3
|
+
{% endcomment %}
|
4
|
+
|
5
|
+
{{ site.description }}
|
data/_includes/footer.html
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
<footer class="colophon">
|
2
|
-
<div class="site-info">
|
3
|
-
<h5>
|
4
|
-
<a href="{{ site.url }}">{{ site.title }}</a>
|
5
|
-
</h5>
|
6
|
-
|
7
|
-
{% include footer/custom-text.html %}
|
8
|
-
</div>
|
9
|
-
|
10
|
-
{% include footer/links.html %}
|
11
|
-
</footer>
|
1
|
+
<footer class="colophon">
|
2
|
+
<div class="site-info">
|
3
|
+
<h5>
|
4
|
+
<a href="{{ site.url }}">{{ site.title }}</a>
|
5
|
+
</h5>
|
6
|
+
|
7
|
+
{% include footer/custom-text.html %}
|
8
|
+
</div>
|
9
|
+
|
10
|
+
{% include footer/links.html %}
|
11
|
+
</footer>
|
data/_includes/head.html
CHANGED
@@ -2,15 +2,7 @@
|
|
2
2
|
<meta charset="utf-8" />
|
3
3
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
4
4
|
|
5
|
-
|
6
|
-
{%- if page.title -%}
|
7
|
-
{{ page.title }} ({{ site.title }})
|
8
|
-
{%- else -%}
|
9
|
-
{{ site.title }} - {{ site.tagline }}
|
10
|
-
{%- endif -%}
|
11
|
-
</title>
|
12
|
-
|
13
|
-
{% seo title=false %}
|
5
|
+
{% seo %}
|
14
6
|
|
15
7
|
<link rel="stylesheet" href="{{ '/assets/css/screen.css' | relative_url }}" />
|
16
8
|
{% feed_meta %}
|
data/_includes/header/menu.html
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
{% if site.data.menu %}
|
2
|
-
<nav class="site-menu">
|
3
|
-
{% for item in site.data.menu %}
|
4
|
-
<a class="menu-item" href="{{ item.url }}"
|
5
|
-
{% if item.external %} rel="external" {% endif %}
|
6
|
-
{% if item.color %} style="background-color: {{ item.color }}" {% endif %}
|
7
|
-
>
|
8
|
-
{{ item.title }}
|
9
|
-
</a>
|
10
|
-
{% endfor %}
|
11
|
-
</nav>
|
12
|
-
{% endif %}
|
1
|
+
{% if site.data.menu %}
|
2
|
+
<nav class="site-menu">
|
3
|
+
{% for item in site.data.menu %}
|
4
|
+
<a class="menu-item" href="{{ item.url }}"
|
5
|
+
{% if item.external %} rel="external" {% endif %}
|
6
|
+
{% if item.color %} style="background-color: {{ item.color }}" {% endif %}
|
7
|
+
>
|
8
|
+
{{ item.title }}
|
9
|
+
</a>
|
10
|
+
{% endfor %}
|
11
|
+
</nav>
|
12
|
+
{% endif %}
|
data/_includes/header.html
CHANGED
@@ -1,17 +1,17 @@
|
|
1
|
-
{% capture site_branding %}
|
2
|
-
<a href="{{ "/" | relative_url }}">
|
3
|
-
{% if site.logo %}
|
4
|
-
<img class="logo" src="{{ site.logo }}" alt="{{ site.title }}" />
|
5
|
-
{% else %}
|
6
|
-
{{ site.title }}
|
7
|
-
{% endif %}
|
8
|
-
</a>
|
9
|
-
{% endcapture %}
|
10
|
-
|
11
|
-
<header class="masthead">
|
12
|
-
{% if page.title %}
|
13
|
-
<p class="site-title">{{ site_branding }}</p>
|
14
|
-
{% else %}
|
15
|
-
<h1 class="site-title">{{ site_branding }}</h1>
|
16
|
-
{% endif %} {% include header/menu.html %}
|
17
|
-
</header>
|
1
|
+
{% capture site_branding %}
|
2
|
+
<a href="{{ "/" | relative_url }}">
|
3
|
+
{% if site.logo %}
|
4
|
+
<img class="logo" src="{{ site.logo }}" alt="{{ site.title }}" />
|
5
|
+
{% else %}
|
6
|
+
{{ site.title }}
|
7
|
+
{% endif %}
|
8
|
+
</a>
|
9
|
+
{% endcapture %}
|
10
|
+
|
11
|
+
<header class="masthead">
|
12
|
+
{% if page.title %}
|
13
|
+
<p class="site-title">{{ site_branding }}</p>
|
14
|
+
{% else %}
|
15
|
+
<h1 class="site-title">{{ site_branding }}</h1>
|
16
|
+
{% endif %} {% include header/menu.html %}
|
17
|
+
</header>
|
data/_includes/search-form.html
CHANGED
@@ -1,13 +1,13 @@
|
|
1
|
-
<form action="//duckduckgo.com" method="get" {% if include.class %}class="{{ include.class }}"{% endif %}>
|
2
|
-
<label for="search_terms">{{ site.steve.search.label }}</label>
|
3
|
-
|
4
|
-
<div class="search-controls">
|
5
|
-
|
6
|
-
<input id="search_terms" placeholder="{{ site.steve.search.placeholder }}" type="search" name="q" required />
|
7
|
-
<input type="hidden" name="sites" value="{{ site.url | remove: 'https://' }}" />
|
8
|
-
<button type="submit">
|
9
|
-
{{ site.steve.search.submit }}
|
10
|
-
</button>
|
11
|
-
|
12
|
-
</div>
|
13
|
-
</form>
|
1
|
+
<form action="//duckduckgo.com" method="get" {% if include.class %}class="{{ include.class }}"{% endif %}>
|
2
|
+
<label for="search_terms">{{ site.steve.search.label }}</label>
|
3
|
+
|
4
|
+
<div class="search-controls">
|
5
|
+
|
6
|
+
<input id="search_terms" placeholder="{{ site.steve.search.placeholder }}" type="search" name="q" required />
|
7
|
+
<input type="hidden" name="sites" value="{{ site.url | remove: 'https://' }}" />
|
8
|
+
<button type="submit">
|
9
|
+
{{ site.steve.search.submit }}
|
10
|
+
</button>
|
11
|
+
|
12
|
+
</div>
|
13
|
+
</form>
|
data/_layouts/archive.html
CHANGED
@@ -1,21 +1,21 @@
|
|
1
|
-
---
|
2
|
-
layout: blog
|
3
|
-
---
|
4
|
-
|
5
|
-
<header class="archive-header">
|
6
|
-
{% if page.date %}
|
7
|
-
<h1>
|
8
|
-
{{ site.steve.archives.date }}<br />
|
9
|
-
<strong>{{ page.date | date: site.steve.date_formats.archives[page.type] }}</strong>
|
10
|
-
</h1>
|
11
|
-
{% else %}
|
12
|
-
<h1>
|
13
|
-
{{ site.steve.archives[page.type] }}<br />
|
14
|
-
<strong>{{ page.title }}</strong>
|
15
|
-
</h1>
|
16
|
-
{% endif %}
|
17
|
-
</header>
|
18
|
-
|
19
|
-
{% for post in page.posts %}
|
20
|
-
{% include blog/post.html full_post=false %}
|
21
|
-
{% endfor %}
|
1
|
+
---
|
2
|
+
layout: blog
|
3
|
+
---
|
4
|
+
|
5
|
+
<header class="archive-header">
|
6
|
+
{% if page.date %}
|
7
|
+
<h1>
|
8
|
+
{{ site.steve.archives.date }}<br />
|
9
|
+
<strong>{{ page.date | date: site.steve.date_formats.archives[page.type] }}</strong>
|
10
|
+
</h1>
|
11
|
+
{% else %}
|
12
|
+
<h1>
|
13
|
+
{{ site.steve.archives[page.type] }}<br />
|
14
|
+
<strong>{{ page.title }}</strong>
|
15
|
+
</h1>
|
16
|
+
{% endif %}
|
17
|
+
</header>
|
18
|
+
|
19
|
+
{% for post in page.posts %}
|
20
|
+
{% include blog/post.html full_post=false %}
|
21
|
+
{% endfor %}
|
data/_layouts/default.html
CHANGED
@@ -1,18 +1,18 @@
|
|
1
|
-
<!doctype html>
|
2
|
-
<html lang="{{ page.lang | default: site.lang }}">
|
3
|
-
{% include head.html %}
|
4
|
-
|
5
|
-
<body class="{{ page.layout | prepend: 'layout-' }}">
|
6
|
-
{% include header.html %}
|
7
|
-
|
8
|
-
<main class="container">
|
9
|
-
{{ content }}
|
10
|
-
</main>
|
11
|
-
|
12
|
-
{% include footer.html %}
|
13
|
-
|
14
|
-
{% if content contains "iframe" %}
|
15
|
-
<script src="{% link assets/js/responsive-videos.js %}"></script>
|
16
|
-
{% endif %}
|
17
|
-
</body>
|
18
|
-
</html>
|
1
|
+
<!doctype html>
|
2
|
+
<html lang="{{ page.lang | default: site.lang }}">
|
3
|
+
{% include head.html %}
|
4
|
+
|
5
|
+
<body class="{{ page.layout | prepend: 'layout-' }}">
|
6
|
+
{% include header.html %}
|
7
|
+
|
8
|
+
<main class="container">
|
9
|
+
{{ content }}
|
10
|
+
</main>
|
11
|
+
|
12
|
+
{% include footer.html %}
|
13
|
+
|
14
|
+
{% if content contains "iframe" %}
|
15
|
+
<script src="{% link assets/js/responsive-videos.js %}"></script>
|
16
|
+
{% endif %}
|
17
|
+
</body>
|
18
|
+
</html>
|
data/_layouts/home.html
CHANGED
@@ -1,23 +1,23 @@
|
|
1
|
-
---
|
2
|
-
layout: blog
|
3
|
-
---
|
4
|
-
|
5
|
-
{% for post in paginator.posts %}
|
6
|
-
{% include blog/post.html %}
|
7
|
-
{% endfor %}
|
8
|
-
|
9
|
-
{% if paginator.total_pages > 1 %}
|
10
|
-
<nav class="content-navigation">
|
11
|
-
{% if paginator.previous_page %}
|
12
|
-
<a class="nav-link prev-link" href="{{ paginator.previous_page_path | relative_url }}" rel="prev">
|
13
|
-
{{ site.steve.pagination.next_page }}
|
14
|
-
</a>
|
15
|
-
{% endif %}
|
16
|
-
|
17
|
-
{% if paginator.next_page %}
|
18
|
-
<a class="nav-link next-link" href="{{ paginator.next_page_path | relative_url }}" rel="next">
|
19
|
-
{{ site.steve.pagination.prev_page }}
|
20
|
-
</a>
|
21
|
-
{% endif %}
|
22
|
-
</nav>
|
23
|
-
{% endif %}
|
1
|
+
---
|
2
|
+
layout: blog
|
3
|
+
---
|
4
|
+
|
5
|
+
{% for post in paginator.posts %}
|
6
|
+
{% include blog/post.html %}
|
7
|
+
{% endfor %}
|
8
|
+
|
9
|
+
{% if paginator.total_pages > 1 %}
|
10
|
+
<nav class="content-navigation">
|
11
|
+
{% if paginator.previous_page %}
|
12
|
+
<a class="nav-link prev-link" href="{{ paginator.previous_page_path | relative_url }}" rel="prev">
|
13
|
+
{{ site.steve.pagination.next_page }}
|
14
|
+
</a>
|
15
|
+
{% endif %}
|
16
|
+
|
17
|
+
{% if paginator.next_page %}
|
18
|
+
<a class="nav-link next-link" href="{{ paginator.next_page_path | relative_url }}" rel="next">
|
19
|
+
{{ site.steve.pagination.prev_page }}
|
20
|
+
</a>
|
21
|
+
{% endif %}
|
22
|
+
</nav>
|
23
|
+
{% endif %}
|