steve-for-jekyll 0.1.0
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 +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +49 -0
- data/_config.yml +51 -0
- data/_includes/blog/custom-widgets.html +0 -0
- data/_includes/blog/post.html +47 -0
- data/_includes/blog/sidebar.html +39 -0
- data/_includes/footer.html +13 -0
- data/_includes/footer/custom-text.html +3 -0
- data/_includes/footer/links.html +11 -0
- data/_includes/head.html +17 -0
- data/_includes/header.html +17 -0
- data/_includes/header/menu.html +12 -0
- data/_includes/search-form.html +17 -0
- data/_layouts/archive.html +25 -0
- data/_layouts/blog.html +9 -0
- data/_layouts/default.html +18 -0
- data/_layouts/page.html +15 -0
- data/_layouts/post.html +96 -0
- data/_sass/steve.scss +51 -0
- data/_sass/steve/_base.scss +248 -0
- data/_sass/steve/_layout.scss +380 -0
- data/_sass/steve/_syntax.scss +252 -0
- data/assets/css/screen.scss +34 -0
- data/assets/js/responsive-videos.js +79 -0
- metadata +109 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 3e0a6795be07f919339de32014015774dfbd98eeae72ad145367cbf13fa5c09a
|
4
|
+
data.tar.gz: 702e15208e6fc94b085708341143a030f1e8c949a34b3fbf48be887c807023cf
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 43cbee9aca3fb27a80cad6bff413099ca4008131e7093983099e4b26f575772458f00f8c2b91dbef4069ee5cc092deca7f23edc5fc76350552ca3f4daae144eb
|
7
|
+
data.tar.gz: 86ae5c43da11e9d2c0d7a5dc3a2431f6c4ceccc6edb6fea4f5ef072c7b8b7268e7928e60883a9d78ade0231a14ca83c5e1325f8308848c6678af57a175ff4d32
|
data/LICENSE.txt
ADDED
@@ -0,0 +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.
|
data/README.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# Steve for Jekyll
|
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.
|
4
|
+
|
5
|
+
See it in action on the [demo site](https://esporo.github.io/steve).
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your Jekyll site's `Gemfile`:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem "steve-for-jekyll"
|
13
|
+
```
|
14
|
+
|
15
|
+
And add this line to your Jekyll site's `_config.yml`:
|
16
|
+
|
17
|
+
```yaml
|
18
|
+
theme: steve-for-jekyll
|
19
|
+
```
|
20
|
+
|
21
|
+
And then execute:
|
22
|
+
|
23
|
+
$ bundle
|
24
|
+
|
25
|
+
Or install it yourself as:
|
26
|
+
|
27
|
+
$ gem install steve
|
28
|
+
|
29
|
+
## Usage
|
30
|
+
|
31
|
+
### 1. Install dependencies
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
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.
|
36
|
+
|
37
|
+
## Development
|
38
|
+
|
39
|
+
To set up your environment to develop this theme, run `bundle install`.
|
40
|
+
|
41
|
+
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
|
+
|
43
|
+
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.
|
45
|
+
|
46
|
+
## License
|
47
|
+
|
48
|
+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
49
|
+
|
data/_config.yml
ADDED
@@ -0,0 +1,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: "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/"
|
File without changes
|
@@ -0,0 +1,47 @@
|
|
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>
|
@@ -0,0 +1,39 @@
|
|
1
|
+
{% assign lang = page.lang | default: site.lang %}
|
2
|
+
|
3
|
+
{% assign locale = site.data.locales[lang] %}
|
4
|
+
|
5
|
+
{% include search-form.html class="widget -search" %}
|
6
|
+
|
7
|
+
<aside class="widget -sidebar">
|
8
|
+
{% if site.data.social %}
|
9
|
+
<ul class="social-links">
|
10
|
+
{% for link in site.data.social %}
|
11
|
+
<li class="link">
|
12
|
+
<a href="{{ link.url }}" rel="external">
|
13
|
+
{{ link.icon }}
|
14
|
+
</a>
|
15
|
+
</li>
|
16
|
+
{% endfor %}
|
17
|
+
</ul>
|
18
|
+
{% endif %}
|
19
|
+
|
20
|
+
{% if site.data.blogroll %}
|
21
|
+
{% for blogroll in site.data.blogroll %}
|
22
|
+
<section class="blogroll">
|
23
|
+
<h4 class="blogroll-title">{{ blogroll.title }}</h4>
|
24
|
+
|
25
|
+
<ul class="blogroll-list">
|
26
|
+
{% for link in blogroll.links %}
|
27
|
+
<li class="link">
|
28
|
+
<a href="{{ link.url }}" {% if link.external %} rel="external" {% endif %}>
|
29
|
+
{{ link.title }}
|
30
|
+
</a>
|
31
|
+
</li>
|
32
|
+
{% endfor %}
|
33
|
+
</ul>
|
34
|
+
</section>
|
35
|
+
{% endfor %}
|
36
|
+
{% endif %}
|
37
|
+
|
38
|
+
{% include blog/custom-widgets.html %}
|
39
|
+
</aside>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
{% if site.data.links %}
|
2
|
+
<ul class="external-links">
|
3
|
+
{% for link in site.data.links %}
|
4
|
+
<li class="link">
|
5
|
+
<a href="{{ link.url }}" {% if link.external %} rel="external" {% endif %}>
|
6
|
+
{{ link.title }}
|
7
|
+
</a>
|
8
|
+
</li>
|
9
|
+
{% endfor %}
|
10
|
+
</ul>
|
11
|
+
{% endif %}
|
data/_includes/head.html
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
<head>
|
2
|
+
<meta charset="utf-8" />
|
3
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
4
|
+
|
5
|
+
<title>
|
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 %}
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="{{ '/assets/css/screen.css' | relative_url }}" />
|
16
|
+
{% feed_meta %}
|
17
|
+
</head>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
{% capture site_branding %}
|
2
|
+
<a href="{{ site.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>
|
@@ -0,0 +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 %}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
{% assign lang = page.lang | default: site.lang %}
|
2
|
+
|
3
|
+
{% assign locale = site.data.locales[lang] %}
|
4
|
+
|
5
|
+
<form action="//duckduckgo.com" method="get" {% if include.class %}class="{{ include.class }}"{% endif %}>
|
6
|
+
<label for="search_terms">{{ locale.search.label }}</label>
|
7
|
+
|
8
|
+
<div class="search-controls">
|
9
|
+
|
10
|
+
<input id="search_terms" placeholder="{{ locale.search.placeholder }}" type="search" name="q" required />
|
11
|
+
<input type="hidden" name="sites" value="{{ site.url | remove: 'https://' }}" />
|
12
|
+
<button type="submit">
|
13
|
+
{{ locale.search.submit }}
|
14
|
+
</button>
|
15
|
+
|
16
|
+
</div>
|
17
|
+
</form>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
---
|
2
|
+
layout: blog
|
3
|
+
---
|
4
|
+
|
5
|
+
{% assign lang = page.lang | default: site.lang %}
|
6
|
+
|
7
|
+
{% assign locale = site.data.locales[lang] %}
|
8
|
+
|
9
|
+
<header class="archive-header">
|
10
|
+
{% if page.date %}
|
11
|
+
<h1>
|
12
|
+
{{ locale.archives.date }}<br />
|
13
|
+
<strong>{{ page.date | date: locale.date_formats.archives[page.type] }}</strong>
|
14
|
+
</h1>
|
15
|
+
{% else %}
|
16
|
+
<h1>
|
17
|
+
{{ locale.archives[page.type] }}<br />
|
18
|
+
<strong>{{ page.title }}</strong>
|
19
|
+
</h1>
|
20
|
+
{% endif %}
|
21
|
+
</header>
|
22
|
+
|
23
|
+
{% for post in page.posts %}
|
24
|
+
{% include blog/post.html full_post=false %}
|
25
|
+
{% endfor %}
|
data/_layouts/blog.html
ADDED
@@ -0,0 +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>
|
data/_layouts/page.html
ADDED
data/_layouts/post.html
ADDED
@@ -0,0 +1,96 @@
|
|
1
|
+
---
|
2
|
+
layout: blog
|
3
|
+
---
|
4
|
+
|
5
|
+
{% assign lang = page.lang | default: site.lang %}
|
6
|
+
|
7
|
+
{% assign locale = site.data.locales[lang] %}
|
8
|
+
|
9
|
+
<article class="content post">
|
10
|
+
<header class="content-header">
|
11
|
+
{% if page.title != "" %}
|
12
|
+
<h1 class="content-title">
|
13
|
+
{{ page.title }}
|
14
|
+
</h1>
|
15
|
+
{% endif %}
|
16
|
+
|
17
|
+
<div class="content-meta">
|
18
|
+
<a class="content-date" href="{{ page.url }}" rel="bookmark">
|
19
|
+
<time datetime="{{ page.date | date_to_xmlschema }}">
|
20
|
+
{{ page.date | date: locale.date_formats.post }}
|
21
|
+
</time>
|
22
|
+
</a>
|
23
|
+
|
24
|
+
{% if page.author %}
|
25
|
+
{% assign author = site.data.authors[page.author] %}
|
26
|
+
|
27
|
+
{% if author.url %}
|
28
|
+
<a class="content-author" href="{{ author.url }}" rel="author">
|
29
|
+
{{ author.name }}
|
30
|
+
</a>
|
31
|
+
{% else %}
|
32
|
+
<a class="content-author" href="{{ site.twitter.username | append: 'https://twitter.com/' }}" rel="author">
|
33
|
+
{{ page.author }}
|
34
|
+
</a>
|
35
|
+
{% endif %}
|
36
|
+
{% endif %}
|
37
|
+
</div>
|
38
|
+
</header>
|
39
|
+
|
40
|
+
{% if page.image %}
|
41
|
+
<fig[ure class="content-cover">
|
42
|
+
<img src="{{ page.image.url | default: page.image }}" alt="{{ page.image.alt | default: '' }}" />
|
43
|
+
</fi]gure>
|
44
|
+
{% endif %}
|
45
|
+
|
46
|
+
<div class="content-body">
|
47
|
+
{{ page.content }}
|
48
|
+
</div>
|
49
|
+
|
50
|
+
{% if page.tags.size > 0 %}
|
51
|
+
<footer class="content-footer">
|
52
|
+
<p>{{ locale.post.tags }}</p>
|
53
|
+
|
54
|
+
<ul class="content-tags">
|
55
|
+
{% for tag in page.tags %}
|
56
|
+
<li>
|
57
|
+
{%- assign tag_slug = tag | slugify -%}
|
58
|
+
|
59
|
+
<a href="{{ site.jekyll-archives.permalinks.tag | replace: ':name', tag_slug }}" rel="tag">
|
60
|
+
{{ tag }}
|
61
|
+
</a>
|
62
|
+
</li>
|
63
|
+
{% endfor %}
|
64
|
+
</ul>
|
65
|
+
</footer>
|
66
|
+
{% endif %}
|
67
|
+
</article>
|
68
|
+
|
69
|
+
{% if site.steve.intensedebate_account and page.comments != false %}
|
70
|
+
<section id="comments" class="content comments">
|
71
|
+
<script>
|
72
|
+
var idcomments_acct = "{{ site.steve.intensedebate_account }}";
|
73
|
+
var idcomments_post_id = "{{ post.date | date: "%s" }}";
|
74
|
+
var idcomments_post_url = "{{ post.url | absolute_url }}";
|
75
|
+
</script>
|
76
|
+
<span id="IDCommentsPostTitle" style="display:none"></span>
|
77
|
+
<script type='text/javascript' src='https://www.intensedebate.com/js/genericCommentWrapperV2.js'></script>
|
78
|
+
</section>
|
79
|
+
{% endif %}
|
80
|
+
|
81
|
+
{% if page.previous or page.next %}
|
82
|
+
<nav class="content-navigation">
|
83
|
+
{% if page.previous %}
|
84
|
+
<a class="nav-link prev-link" href="{{ page.previous.url }}" rel="prev">
|
85
|
+
{{ locale.pagination.prev_post }} <strong>{{ page.previous.title }}</strong>
|
86
|
+
</a>
|
87
|
+
{% endif %}
|
88
|
+
|
89
|
+
{% if page.next %}
|
90
|
+
<a class="nav-link next-link" href="{{ page.next.url }}" rel="next">
|
91
|
+
{{ locale.pagination.next_post }} <strong>{{ page.next.title }}</strong>
|
92
|
+
</a>
|
93
|
+
{% endif %}
|
94
|
+
</nav>
|
95
|
+
{% endif %}
|
96
|
+
|