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
data/_includes/blog/sidebar.html
CHANGED
@@ -1,39 +1,42 @@
|
|
1
|
-
{%
|
2
|
-
|
3
|
-
{%
|
4
|
-
|
5
|
-
{%
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
{%
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
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 %}
|
data/_includes/footer.html
CHANGED
@@ -1,13 +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
|
-
{
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
{% include footer/links.html %}
|
13
|
-
</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>
|
@@ -1,3 +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 %}
|
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/header.html
CHANGED
@@ -1,17 +1,17 @@
|
|
1
|
-
{% capture site_branding %}
|
2
|
-
<a href="{{
|
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/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/search-form.html
CHANGED
@@ -1,17 +1,13 @@
|
|
1
|
-
{%
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
</button>
|
15
|
-
|
16
|
-
</div>
|
17
|
-
</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,25 +1,21 @@
|
|
1
|
-
---
|
2
|
-
layout: blog
|
3
|
-
---
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
<
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
{%
|
21
|
-
|
22
|
-
|
23
|
-
{% for post in page.posts %}
|
24
|
-
{% include blog/post.html full_post=false %}
|
25
|
-
{% 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
ADDED
@@ -0,0 +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 %}
|
data/_layouts/page.html
CHANGED
@@ -1,15 +1,15 @@
|
|
1
|
-
---
|
2
|
-
layout: default
|
3
|
-
---
|
4
|
-
|
5
|
-
<article class="content page">
|
6
|
-
<header class="content-header">
|
7
|
-
<h1 class="content-title">
|
8
|
-
{{ page.title }}
|
9
|
-
</h1>
|
10
|
-
</header>
|
11
|
-
|
12
|
-
<div class="content-body">
|
13
|
-
{{ content }}
|
14
|
-
</div>
|
15
|
-
</article>
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<article class="content page">
|
6
|
+
<header class="content-header">
|
7
|
+
<h1 class="content-title">
|
8
|
+
{{ page.title }}
|
9
|
+
</h1>
|
10
|
+
</header>
|
11
|
+
|
12
|
+
<div class="content-body">
|
13
|
+
{{ content }}
|
14
|
+
</div>
|
15
|
+
</article>
|
data/_layouts/post.html
CHANGED
@@ -1,96 +1,92 @@
|
|
1
|
-
---
|
2
|
-
layout: blog
|
3
|
-
---
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
{%
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
{%
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
{%
|
28
|
-
<a class="content-author" href="{{ author.
|
29
|
-
{{ author
|
30
|
-
</a>
|
31
|
-
{%
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
{%
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
{%
|
80
|
-
|
81
|
-
{
|
82
|
-
|
83
|
-
{%
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
{%
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
{% endif %}
|
94
|
-
</nav>
|
95
|
-
{% endif %}
|
96
|
-
|
1
|
+
---
|
2
|
+
layout: blog
|
3
|
+
---
|
4
|
+
|
5
|
+
<article class="content post">
|
6
|
+
<header class="content-header">
|
7
|
+
{% if page.title != "" %}
|
8
|
+
<h1 class="content-title">
|
9
|
+
{{ page.title }}
|
10
|
+
</h1>
|
11
|
+
{% endif %}
|
12
|
+
|
13
|
+
<div class="content-meta">
|
14
|
+
<a class="content-date" href="{{ page.url }}" rel="bookmark">
|
15
|
+
<time datetime="{{ page.date | date_to_xmlschema }}">
|
16
|
+
{{ page.date | date: site.steve.date_formats.post }}
|
17
|
+
</time>
|
18
|
+
</a>
|
19
|
+
|
20
|
+
{% if page.author %}
|
21
|
+
{% assign author = site.data.authors[page.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="{{ page.author | prepend: 'https://twitter.com/' }}" rel="author">
|
29
|
+
{{ page.author }}
|
30
|
+
</a>
|
31
|
+
{% endif %}
|
32
|
+
{% endif %}
|
33
|
+
</div>
|
34
|
+
</header>
|
35
|
+
|
36
|
+
{% if page.image %}
|
37
|
+
<fig[ure class="content-cover">
|
38
|
+
<img src="{{ page.image.url | default: page.image }}" alt="{{ page.image.alt | default: '' }}" />
|
39
|
+
</fi]gure>
|
40
|
+
{% endif %}
|
41
|
+
|
42
|
+
<div class="content-body">
|
43
|
+
{{ page.content }}
|
44
|
+
</div>
|
45
|
+
|
46
|
+
{% if page.tags.size > 0 %}
|
47
|
+
<footer class="content-footer">
|
48
|
+
<p>{{ site.steve.post.tags }}</p>
|
49
|
+
|
50
|
+
<ul class="content-tags">
|
51
|
+
{% for tag in page.tags %}
|
52
|
+
<li>
|
53
|
+
{%- assign tag_slug = tag | slugify -%}
|
54
|
+
|
55
|
+
<a href="{{ site.jekyll-archives.permalinks.tag | replace: ':name', tag_slug | relative_url }}" rel="tag">
|
56
|
+
{{ tag }}
|
57
|
+
</a>
|
58
|
+
</li>
|
59
|
+
{% endfor %}
|
60
|
+
</ul>
|
61
|
+
</footer>
|
62
|
+
{% endif %}
|
63
|
+
</article>
|
64
|
+
|
65
|
+
{% if site.steve.intensedebate_account and page.comments != false %}
|
66
|
+
<section id="comments" class="content comments">
|
67
|
+
<script>
|
68
|
+
var idcomments_acct = "{{ site.steve.intensedebate_account }}";
|
69
|
+
var idcomments_post_id = "{{ post.date | date: "%s" }}";
|
70
|
+
var idcomments_post_url = "{{ post.url | absolute_url }}";
|
71
|
+
</script>
|
72
|
+
<span id="IDCommentsPostTitle" style="display:none"></span>
|
73
|
+
<script type='text/javascript' src='https://www.intensedebate.com/js/genericCommentWrapperV2.js'></script>
|
74
|
+
</section>
|
75
|
+
{% endif %}
|
76
|
+
|
77
|
+
{% if page.previous or page.next %}
|
78
|
+
<nav class="content-navigation">
|
79
|
+
{% if page.previous %}
|
80
|
+
<a class="nav-link prev-link" href="{{ page.previous.url | relative_url }}" rel="prev">
|
81
|
+
{{ site.steve.pagination.prev_post }} <strong>{{ page.previous.title }}</strong>
|
82
|
+
</a>
|
83
|
+
{% endif %}
|
84
|
+
|
85
|
+
{% if page.next %}
|
86
|
+
<a class="nav-link next-link" href="{{ page.next.url | relative_url }}" rel="next">
|
87
|
+
{{ site.steve.pagination.next_post }} <strong>{{ page.next.title }}</strong>
|
88
|
+
</a>
|
89
|
+
{% endif %}
|
90
|
+
</nav>
|
91
|
+
{% endif %}
|
92
|
+
|