jekyll-theme-editorial 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +14 -1
- data/_includes/posts.html +3 -3
- data/_layouts/post.html +4 -3
- data/assets/images/index.html +4 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 467974309f904b941298d515ae1b1954215768ec5a678d55c3183f2ffd0adad2
|
4
|
+
data.tar.gz: 4a8fa0fd9eae9ee72c51aca902557d44f4e44efb8dcb2dc4b0bcbf1cf924f88b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1dcf2b8d173740a378bcb6bf6f02821469255050d6cdcd7aa88862cdd8ca0fdae0d7709817427996910009f92c2a184c3f5428959465554cc8dc072a2865b18
|
7
|
+
data.tar.gz: 78d81b30eb4a8ca3c107b4303c193d086889d94ce45e83efd3b71097e8c1a513ed5b3cd11243ddeea7db9553918eaf80d949a283fa963e0c01f5262de897a088
|
data/README.md
CHANGED
@@ -1166,7 +1166,7 @@ Now let's add an author or two to our lone post, so we can see author bylines an
|
|
1166
1166
|
author: [julia, petunia]
|
1167
1167
|
```
|
1168
1168
|
|
1169
|
-
Let's also remove the `layout: post` entry while we're at it, since the layout is set by the site config defaults to `post` already. The edited front matter should
|
1169
|
+
Let's also remove the `layout: post` entry while we're at it, since the layout is set by the site config defaults to `post` already. The edited front matter should look like:
|
1170
1170
|
|
1171
1171
|
```yaml
|
1172
1172
|
---
|
@@ -1178,6 +1178,19 @@ tags: [jekyll, meta, technology, code, site, editorial theme]
|
|
1178
1178
|
---
|
1179
1179
|
```
|
1180
1180
|
|
1181
|
+
Now refresh our lone post, and we should now see a byline with julia and petunia listed as authors. Julia should even be conveniently linked to her author page (and only her, because petunia is not yet published). If you navigate to her author page, you'll now see our one post listed under her "Authored Posts" section.
|
1182
|
+
|
1183
|
+
#### Add Author cards to posts
|
1184
|
+
|
1185
|
+
Instead of only linking to author pages, we can also show author cards at the bottom of posts, and link those to full author pages. To do so, we need to add a `post_authors` configuration key to `_config.yml` under the `show` key:
|
1186
|
+
|
1187
|
+
```yaml
|
1188
|
+
show: # series of switches to customize what appears on the site
|
1189
|
+
authors: true # single author blogs may want to disable showing the same author everywhere
|
1190
|
+
post_authors: true # you may still want to show the author(s) at the bottom of posts
|
1191
|
+
```
|
1192
|
+
Now restart our Jekyll server since we changed our site config, and refresh the post page to see the changes. You'll notice two author cars, one each for julia and petunia, at the bottom of the post. Our byline now helpfully links down to those author cards instead of directly to the author pages. The cards link to the full author pages instead. Notice that petunia's card doesn't link, since she's unpublished, and therefore doesn't have an author page yet.
|
1193
|
+
|
1181
1194
|
### Add Projects
|
1182
1195
|
|
1183
1196
|
TODO
|
data/_includes/posts.html
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
{%-assign peeps = site.collections |
|
2
|
-
{%-assign placeholder = site.static_files |
|
1
|
+
{%-assign peeps = site.collections | where: "label", 'people' | first-%}
|
2
|
+
{%-assign placeholder = site.static_files | where: 'name', 'placeholder.png' | first-%}
|
3
3
|
{% if paginator.posts != nil and site.paginate %}
|
4
4
|
{% assign posts = paginator.posts %}
|
5
5
|
{% elsif page.layout == "page" %}
|
@@ -35,7 +35,7 @@
|
|
35
35
|
<p class="byline">
|
36
36
|
{%-if site.show.authors-%}
|
37
37
|
{%-for auth in post.author-%}
|
38
|
-
{%-assign author = site.people |
|
38
|
+
{%-assign author = site.people | where: 'handle', auth | first-%}
|
39
39
|
{%-if author.published and peeps.output-%}
|
40
40
|
<a href="{{-author.url-}}" rel="author" itemprop="author" class="u-author p-author" title="Read {{ author.name | split: ' ' | first-}}'s bio">{{-author.name-}}</a>
|
41
41
|
{%-elsif author.published-%}
|
data/_layouts/post.html
CHANGED
@@ -18,13 +18,14 @@ layout: default
|
|
18
18
|
{%-if site.show.post_authors and page.author %}
|
19
19
|
{% include authors.html %}
|
20
20
|
{%-endif %}
|
21
|
-
{% if site.disqus.shortname-%}
|
21
|
+
{% if page.comments == true and site.disqus.shortname-%}
|
22
22
|
<hr class="major"/>
|
23
23
|
{% include disqus_comments.html %}
|
24
|
-
{%-
|
25
|
-
{% if page.comments == true-%}
|
24
|
+
{%-elsif page.comments == true-%}
|
26
25
|
<hr class="major"/>
|
27
26
|
{% include comments.html %}
|
27
|
+
{%-else-%}
|
28
|
+
<br>
|
28
29
|
{%-endif %}
|
29
30
|
<a class="u-url" href="{{-page.url | relative_url-}}" hidden></a>
|
30
31
|
</article>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-editorial
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Middle Bear
|
@@ -236,6 +236,7 @@ files:
|
|
236
236
|
- assets/css/github.css
|
237
237
|
- assets/css/main.css
|
238
238
|
- assets/css/user.css
|
239
|
+
- assets/images/index.html
|
239
240
|
- assets/images/logo.png
|
240
241
|
- assets/images/pic01-thumb.jpg
|
241
242
|
- assets/images/pic01.jpg
|