steve-for-jekyll 1.2.2 → 1.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/_layouts/post.html CHANGED
@@ -1,115 +1,115 @@
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 %}
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 %}