steve-for-jekyll 1.0 → 1.1.1

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,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>
@@ -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 }}
@@ -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>
@@ -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 %}
@@ -0,0 +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
+ Submit Comment
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>
@@ -0,0 +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,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 %}
@@ -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 }}" 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 }}" 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>
data/_layouts/post.html CHANGED
@@ -1,92 +1,115 @@
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 }}" 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 }}" 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 }}" rel="next">
87
- {{ site.steve.pagination.next_post }} <strong>{{ page.next.title }}</strong>
88
- </a>
89
- {% endif %}
90
- </nav>
91
- {% endif %}
92
-
1
+ ---
2
+ layout: blog
3
+ ---
4
+
5
+ <article class="content post">
6
+ <header class="content-header">
7
+ {% if page.category %}
8
+ <div class="content-meta">
9
+ {%- assign category_slug = page.category | slugify -%}
10
+ {%- assign category_url = site.jekyll-archives.permalinks.category -%}
11
+
12
+ <a
13
+ href="{{ category_url | replace: ':name', category_slug | relative_url }}"
14
+ rel="tag"
15
+ >
16
+ {{- page.category -}}
17
+ </a>
18
+ </div>
19
+ {% endif %}
20
+
21
+ {% if page.title != "" %}
22
+ <h1 class="content-title">{{ page.title }}</h1>
23
+ {% endif %}
24
+
25
+ <div class="content-meta">
26
+ <a class="content-date" href="{{ page.url }}" rel="bookmark">
27
+ <time datetime="{{ page.date | date_to_xmlschema }}">
28
+ {{ page.date | date: site.steve.date_formats.post }}
29
+ </time>
30
+ </a>
31
+
32
+ {% if page.author %}
33
+ {% assign author = site.data.authors[page.author] %}
34
+
35
+ {% if author.url %}
36
+ <a class="content-author" href="{{ author.url }}" rel="author">
37
+ {{ author.name }}
38
+ </a>
39
+ {% else %}
40
+ <a
41
+ class="content-author"
42
+ href="{{ page.author | prepend: 'https://twitter.com/' }}"
43
+ rel="author"
44
+ >
45
+ {{ page.author }}
46
+ </a>
47
+ {% endif %}
48
+ {% endif %}
49
+ </div>
50
+ </header>
51
+
52
+ {% if page.image %}
53
+ <figure class="content-cover">
54
+ <img
55
+ src="{{ page.image.url | default: page.image }}"
56
+ alt="{{ page.image.alt | default: '' }}"
57
+ />
58
+ </figure>
59
+ {% endif %}
60
+
61
+ <div class="content-body">
62
+ {{ page.content }}
63
+ </div>
64
+
65
+ {% if page.tags.size > 0 %}
66
+ <footer class="content-footer">
67
+ <p>{{ site.steve.post.tags }}</p>
68
+
69
+ <ul class="content-tags">
70
+ {% for tag in page.tags %}
71
+ <li>
72
+ {%- assign tag_slug = tag | slugify -%}
73
+ {%- assign tag_url = site.jekyll-archives.permalinks.tag -%}
74
+
75
+ <a
76
+ href="{{ tag_url | replace: ':name', tag_slug | relative_url }}"
77
+ rel="tag"
78
+ >
79
+ {{- tag -}}
80
+ </a>
81
+ </li>
82
+ {% endfor %}
83
+ </ul>
84
+ </footer>
85
+ {% endif %}
86
+ </article>
87
+
88
+ {% include post/comments.html %}
89
+
90
+ {% if page.previous or page.next %}
91
+ <nav class="content-navigation">
92
+ {% if page.previous %}
93
+ <a
94
+ class="nav-link prev-link"
95
+ href="{{ page.previous.url | relative_url }}"
96
+ rel="prev"
97
+ >
98
+ {{ site.steve.pagination.prev_post }}
99
+
100
+ <strong>{{ page.previous.title }}</strong>
101
+ </a>
102
+ {% endif %}
103
+ {% if page.next %}
104
+ <a
105
+ class="nav-link next-link"
106
+ href="{{ page.next.url | relative_url }}"
107
+ rel="next"
108
+ >
109
+ {{ site.steve.pagination.next_post }}
110
+
111
+ <strong>{{ page.next.title }}</strong>
112
+ </a>
113
+ {% endif %}
114
+ </nav>
115
+ {% endif %}