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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f36bb5962380709c64210619ce62fb7a58acf00e51a9454bbfde4c7625ec1fb9
4
- data.tar.gz: 24d2926a9a9393b121b73e60c4222eefad246e8f7557c299ce8548494bcc4b4d
3
+ metadata.gz: 467974309f904b941298d515ae1b1954215768ec5a678d55c3183f2ffd0adad2
4
+ data.tar.gz: 4a8fa0fd9eae9ee72c51aca902557d44f4e44efb8dcb2dc4b0bcbf1cf924f88b
5
5
  SHA512:
6
- metadata.gz: 98f91826f9afa7ee688c18c02722191eb8d63fb75d9b9bc867d43ce35c7474eb46fee40ab296212290a5c9f9079e63b773e96b473028f485fd9741f1df4811f6
7
- data.tar.gz: 8b9d4c1810a47233e980edf3ad4b8735320ba20dee720eebf393ba2689b916b3ee52371f2010e35aea8be456b8067c1ca5d5ea54c35dfd3fd0835ab5c70929bc
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 be,
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
@@ -1,5 +1,5 @@
1
- {%-assign peeps = site.collections | find: "label", 'people'-%}
2
- {%-assign placeholder = site.static_files | find: 'name', 'placeholder.png'-%}
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 | find: 'handle', auth-%}
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-%}
@@ -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
- {%-endif-%}
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>
@@ -0,0 +1,4 @@
1
+ ---
2
+ ---
3
+
4
+ {% include 404.html %}
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.7
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