steve-for-jekyll 1.2.1 → 1.2.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.
@@ -1,69 +1,69 @@
1
- <form action="{{ site.comments.staticman_endpoint }}" method="post">
2
- <h3 class="form-title">{{ site.comments.form_title }}</h3>
3
-
4
- <div class="comments-notice">
5
- {{ site.comments.notice | markdownify }}
6
- </div>
7
-
8
- <div class="comment-message-area">
9
- <label for="comment_message" class="visually-hidden">
10
- {{ site.comments.fields.message.label }}
11
- </label>
12
-
13
- <textarea
14
- id="comment_message"
15
- class="message-area"
16
- name="fields[message]"
17
- placeholder="{{ site.comments.fields.message.placeholder }}"
18
- required
19
- ></textarea>
20
- </div>
21
-
22
- <div class="comment-fields">
23
- <label for="comment_name" class="visually-hidden">
24
- {{ site.comments.fields.name.label }}
25
- </label>
26
-
27
- <input
28
- type="text"
29
- id="comment_name"
30
- class="comment-field"
31
- name="fields[name]"
32
- placeholder="{{ site.comments.fields.name.placeholder }}"
33
- required
34
- />
35
-
36
- <label for="comment_email" class="visually-hidden">
37
- {{ site.comments.fields.email.label }}
38
- </label>
39
- <input
40
- type="email"
41
- id="comment_email"
42
- class="comment-field"
43
- name="fields[email]"
44
- placeholder="{{ site.comments.fields.email.placeholder }}"
45
- required
46
- />
47
-
48
- <label for="comment_website" class="visually-hidden">
49
- {{ site.comments.fields.website.label }}
50
- </label>
51
- <input
52
- type="url"
53
- id="comment_website"
54
- class="comment-field"
55
- name="fields[website]"
56
- placeholder="{{ site.comments.fields.website.placeholder }}"
57
- />
58
- </div>
59
-
60
- <div class="comment-actions">
61
- <button class="form-submit" type="submit">
62
- {{ site.comments.fields.submit }}
63
- </button>
64
- </div>
65
-
66
- <input type="hidden" name="options[redirect]" value="{{ page.url |
67
- absolute_url }}#comments" />
68
- <input type="hidden" name="options[slug]" value="{{ page.slug }}" />
69
- </form>
1
+ <form action="{{ site.comments.staticman_endpoint }}" method="post">
2
+ <h3 class="form-title">{{ site.comments.form_title }}</h3>
3
+
4
+ <div class="comments-notice">
5
+ {{ site.comments.notice | markdownify }}
6
+ </div>
7
+
8
+ <div class="comment-message-area">
9
+ <label for="comment_message" class="visually-hidden">
10
+ {{ site.comments.fields.message.label }}
11
+ </label>
12
+
13
+ <textarea
14
+ id="comment_message"
15
+ class="message-area"
16
+ name="fields[message]"
17
+ placeholder="{{ site.comments.fields.message.placeholder }}"
18
+ required
19
+ ></textarea>
20
+ </div>
21
+
22
+ <div class="comment-fields">
23
+ <label for="comment_name" class="visually-hidden">
24
+ {{ site.comments.fields.name.label }}
25
+ </label>
26
+
27
+ <input
28
+ type="text"
29
+ id="comment_name"
30
+ class="comment-field"
31
+ name="fields[name]"
32
+ placeholder="{{ site.comments.fields.name.placeholder }}"
33
+ required
34
+ />
35
+
36
+ <label for="comment_email" class="visually-hidden">
37
+ {{ site.comments.fields.email.label }}
38
+ </label>
39
+ <input
40
+ type="email"
41
+ id="comment_email"
42
+ class="comment-field"
43
+ name="fields[email]"
44
+ placeholder="{{ site.comments.fields.email.placeholder }}"
45
+ required
46
+ />
47
+
48
+ <label for="comment_website" class="visually-hidden">
49
+ {{ site.comments.fields.website.label }}
50
+ </label>
51
+ <input
52
+ type="url"
53
+ id="comment_website"
54
+ class="comment-field"
55
+ name="fields[website]"
56
+ placeholder="{{ site.comments.fields.website.placeholder }}"
57
+ />
58
+ </div>
59
+
60
+ <div class="comment-actions">
61
+ <button class="form-submit" type="submit">
62
+ {{ site.comments.fields.submit }}
63
+ </button>
64
+ </div>
65
+
66
+ <input type="hidden" name="options[redirect]" value="{{ page.url |
67
+ absolute_url }}#comments" />
68
+ <input type="hidden" name="options[slug]" value="{{ page.slug }}" />
69
+ </form>
@@ -1,47 +1,47 @@
1
- {% if site.data.comments[page.slug] or page.comments != false %}
2
- <section id="comments" class="content">
3
- <h2 class="comments-title">
4
- {{ site.comments.title }}
5
- </h2>
6
-
7
- {% if site.data.comments[page.slug] %}
8
- <ol class="comments-list">
9
-
10
- {% assign comments = site.data.comments[page.slug] | sort: date %}
11
-
12
- {% for comment_object in site.data.comments[page.slug] %}
13
-
14
- {% assign comment = comment_object | last %}
15
-
16
- <li class="comment-item">
17
- <section class="comment">
18
- <header class="comment-meta">
19
- <img class="author-avatar" src="//www.gravatar.com/avatar/{{ comment.email }}?d=monsterid&s=64" alt="" />
20
- <h5 class="author">
21
- {% if comment.website %}
22
- <a href="{{ comment.website }}" rel="author">
23
- {{ comment.name }}
24
- </a>
25
- {% else %}
26
- {{ comment.name }}
27
- {% endif %}
28
- </h5>
29
-
30
- <time class="comment-date">
31
- {{ comment.date | date: site.comments.date_format }}
32
- </time>
33
- </header>
34
-
35
- <div class="comment-body">
36
- {{ comment.message | markdownify }}
37
- </div>
38
- </section>
39
- </li>
40
- {% endfor %}
41
-
42
- </ol>
43
- {% endif %}
44
-
45
- {% include post/comment-form.html %}
46
- </section>
47
- {% endif %}
1
+ {% if site.data.comments[page.slug] or page.comments != false %}
2
+ <section id="comments" class="content">
3
+ <h2 class="comments-title">
4
+ {{ site.comments.title }}
5
+ </h2>
6
+
7
+ {% if site.data.comments[page.slug] %}
8
+ <ol class="comments-list">
9
+
10
+ {% assign comments = site.data.comments[page.slug] | sort: date %}
11
+
12
+ {% for comment_object in site.data.comments[page.slug] %}
13
+
14
+ {% assign comment = comment_object | last %}
15
+
16
+ <li class="comment-item">
17
+ <section class="comment">
18
+ <header class="comment-meta">
19
+ <img class="author-avatar" src="//www.gravatar.com/avatar/{{ comment.email }}?d=monsterid&s=64" alt="" />
20
+ <h5 class="author">
21
+ {% if comment.website %}
22
+ <a href="{{ comment.website }}" rel="author">
23
+ {{ comment.name }}
24
+ </a>
25
+ {% else %}
26
+ {{ comment.name }}
27
+ {% endif %}
28
+ </h5>
29
+
30
+ <time class="comment-date">
31
+ {{ comment.date | date: site.comments.date_format }}
32
+ </time>
33
+ </header>
34
+
35
+ <div class="comment-body">
36
+ {{ comment.message | markdownify }}
37
+ </div>
38
+ </section>
39
+ </li>
40
+ {% endfor %}
41
+
42
+ </ol>
43
+ {% endif %}
44
+
45
+ {% include post/comment-form.html %}
46
+ </section>
47
+ {% endif %}
@@ -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>
@@ -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/blog.html CHANGED
@@ -1,9 +1,9 @@
1
- ---
2
- layout: default
3
- ---
4
-
5
- <div class="blog-page">
6
- {{ content }}
7
- </div>
8
-
9
- {% include blog/sidebar.html %}
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="blog-page">
6
+ {{ content }}
7
+ </div>
8
+
9
+ {% include blog/sidebar.html %}
@@ -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 %}
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>