steve-for-jekyll 1.0.2 → 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.
@@ -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 %}
@@ -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 | 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>
data/_layouts/post.html CHANGED
@@ -1,92 +1,92 @@
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
-
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
+