jekyll-theme-editorial 1.0.2 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +19 -1
- data/_includes/articles.html +5 -1
- data/_includes/author.html +3 -3
- data/_includes/authors.html +1 -1
- data/_includes/authors_byline.html +5 -2
- data/_includes/post_header.html +1 -1
- data/_includes/series.html +1 -2
- data/_layouts/author.html +1 -0
- data/_pages/people.html +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f36bb5962380709c64210619ce62fb7a58acf00e51a9454bbfde4c7625ec1fb9
|
4
|
+
data.tar.gz: 24d2926a9a9393b121b73e60c4222eefad246e8f7557c299ce8548494bcc4b4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98f91826f9afa7ee688c18c02722191eb8d63fb75d9b9bc867d43ce35c7474eb46fee40ab296212290a5c9f9079e63b773e96b473028f485fd9741f1df4811f6
|
7
|
+
data.tar.gz: 8b9d4c1810a47233e980edf3ad4b8735320ba20dee720eebf393ba2689b916b3ee52371f2010e35aea8be456b8067c1ca5d5ea54c35dfd3fd0835ab5c70929bc
|
data/README.md
CHANGED
@@ -1137,7 +1137,7 @@ permalink: /people/ # trailing slash makes it an `index.html` file ins
|
|
1137
1137
|
---
|
1138
1138
|
|
1139
1139
|
{% if site.show.authors-%}
|
1140
|
-
{% assign peeps = site.collections |
|
1140
|
+
{% assign peeps = site.collections | where: "label", 'people' | first-%}
|
1141
1141
|
{% if peeps.output-%}
|
1142
1142
|
<p>Our wonderful authors love to share tales of wonder and zeal. Sometimes they go overboard and fall into the waters of silliness or cynicism. We hope you do understand, and take that into the highest consideration.</p>
|
1143
1143
|
<hr class="major"/>
|
@@ -1160,6 +1160,24 @@ If all went well, you should be able to refresh the ugly people index listing an
|
|
1160
1160
|
|
1161
1161
|
### Add Authors to our lone post
|
1162
1162
|
|
1163
|
+
Now let's add an author or two to our lone post, so we can see author bylines and related posts on author pages. Add the follow yaml front matter to your `_posts/20yy-mm-dd-welcome-to-jekyll.md` file:
|
1164
|
+
|
1165
|
+
```yaml
|
1166
|
+
author: [julia, petunia]
|
1167
|
+
```
|
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,
|
1170
|
+
|
1171
|
+
```yaml
|
1172
|
+
---
|
1173
|
+
title: "Welcome to Jekyll!"
|
1174
|
+
author: [julia, petunia]
|
1175
|
+
date: 2020-08-01 11:48:57 -0700
|
1176
|
+
categories: jekyll update
|
1177
|
+
tags: [jekyll, meta, technology, code, site, editorial theme]
|
1178
|
+
---
|
1179
|
+
```
|
1180
|
+
|
1163
1181
|
### Add Projects
|
1164
1182
|
|
1165
1183
|
TODO
|
data/_includes/articles.html
CHANGED
@@ -18,7 +18,7 @@ local:
|
|
18
18
|
{%-assign list_limit = include.list_limit | default: site.related_posts_limit | default: 6-%}
|
19
19
|
|
20
20
|
{%-case article_type-%}
|
21
|
-
{%-when 'posts'-%} {%-assign articles = site.posts
|
21
|
+
{%-when 'posts'-%} {%-if page.handle != empty and page.handle != "" and page.handle != nil-%}{%-assign articles = site.posts | where: 'author', page.handle-%}{%-else-%}{%-assign articles = site.posts-%}{%-endif-%}
|
22
22
|
{%-when 'related_posts'-%} {%-assign articles = site.related_posts | where: 'author', page.handle | default: site.related_posts-%}
|
23
23
|
{%-when 'projects'-%} {%-assign articles = site.projects | where: 'author', page.handle | default: site.projects-%}
|
24
24
|
{%-when 'authors'-%} {%-assign articles = site.people | where: 'author', page.handle | default: site.posts-%}
|
@@ -33,10 +33,14 @@ local:
|
|
33
33
|
<h2>{{-include.section_title | default: "Articles"-}}</h2>
|
34
34
|
</header>
|
35
35
|
<div class="{{-article_type }} posts">
|
36
|
+
{%-if articles != empty-%}
|
36
37
|
{%-for article in articles limit:list_limit-%}
|
37
38
|
{%-unless article.published == false-%}
|
38
39
|
{% include article.html %}
|
39
40
|
{%-endunless-%}
|
40
41
|
{%-endfor-%}
|
42
|
+
{%-else-%}
|
43
|
+
<article class="post-card">Looks like there are no {{ include.section_title | default: "Articles" }} here yet!</article>
|
44
|
+
{%-endif-%}
|
41
45
|
</div>
|
42
46
|
</section>
|
data/_includes/author.html
CHANGED
@@ -16,9 +16,9 @@ local:
|
|
16
16
|
auth the author's handle, included only on authored pages;
|
17
17
|
`auth` also determines the `authored` boolean value
|
18
18
|
{%-endcomment-%}
|
19
|
-
{%-assign peeps = site.collections |
|
20
|
-
{%-assign next_post = site.posts |
|
21
|
-
{%-assign authored
|
19
|
+
{%-assign peeps = site.collections | where: "label", 'people' | first-%}
|
20
|
+
{%-assign next_post = site.posts | where_exp: 'item', "item.author contains auth" | where_exp: 'item', "item.url != page.url" | first %}
|
21
|
+
{%-if auth != empty and auth != "" and auth != nil-%}{%-assign authored = true-%}{%-else-%}{%-assign authored = false-%}{%-endif-%}
|
22
22
|
{%-if include.show_next == false %-}{%-assign show_next = false-%}{%-else-%}{%-assign show_next = true-%}{%-endif-%}
|
23
23
|
{%-if include.show_social == false %-}{%-assign show_social = false-%}{%-else-%}{%-assign show_social = true-%}{%-endif-%}
|
24
24
|
<!-- Author - {{ author.handle | default: auth }} -->
|
data/_includes/authors.html
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
<hr class="sigil"/>
|
9
9
|
{%-endif %}
|
10
10
|
{%-for auth in page.author %}
|
11
|
-
{%-assign author = site.people |
|
11
|
+
{%-assign author = site.people | where: 'handle', auth | first-%}
|
12
12
|
{%-if author.published %}
|
13
13
|
{% include author.html %}
|
14
14
|
{%-else-%}
|
@@ -20,7 +20,7 @@ local:
|
|
20
20
|
{%-endcomment-%}
|
21
21
|
|
22
22
|
{%-assign authors = include.author | default: page.author-%}
|
23
|
-
{%-assign peeps = site.collections |
|
23
|
+
{%-assign peeps = site.collections | where: "label", 'people' | first-%}
|
24
24
|
|
25
25
|
{%-if site.show.post_authors and page.type=="posts"-%}
|
26
26
|
{%-assign show_authors = true-%}
|
@@ -35,6 +35,9 @@ local:
|
|
35
35
|
{%-assign show_authors = false-%}
|
36
36
|
{%-endif-%}
|
37
37
|
{%-assign has_author_cards = false-%}
|
38
|
+
{%-elsif site.show.authors-%}
|
39
|
+
{%-assign show_authors = true-%}
|
40
|
+
{%-assign has_author_cards = false-%}
|
38
41
|
{%-else-%}
|
39
42
|
{%-assign show_authors = false-%}
|
40
43
|
{%-assign has_author_cards = false-%}
|
@@ -43,7 +46,7 @@ local:
|
|
43
46
|
{%-if site.show.authors and show_authors-%}
|
44
47
|
<ul class="inline csv authors">
|
45
48
|
{%-for slug in authors-%}
|
46
|
-
{%-assign author = site.people |
|
49
|
+
{%-assign author = site.people | where: 'handle', slug | first-%}
|
47
50
|
{%-assign author_name = author.name | default: slug-%}
|
48
51
|
{%-if author.published and has_author_cards %}
|
49
52
|
<li><a href="#{{-author.handle-}}" class="p-author" title="Read {{ author.handle-}}'s excerpt below">{{-author_name-}}</a></li>
|
data/_includes/post_header.html
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
<!-- Post Header -->
|
2
|
-
{%-assign peeps = site.collections |
|
2
|
+
{%-assign peeps = site.collections | where: "label", 'people' | first-%}
|
3
3
|
{%-assign authors = include.author | default: page.author-%}
|
4
4
|
{%-assign page_title = include.page_title | default: page.title-%}
|
5
5
|
{%-assign subtitle = include.subtitle | default: page.subtitle-%}
|
data/_includes/series.html
CHANGED
@@ -10,11 +10,10 @@
|
|
10
10
|
{%-when 'pages'-%} {%-assign series_collection = site.pages-%}
|
11
11
|
{%-when 'people'-%} {%-assign series_collection = site.people-%}
|
12
12
|
{%-endcase-%}
|
13
|
-
{%-assign series = series_collection |
|
13
|
+
{%-assign series = series_collection | where: "series", page.series | where: "published", true | sort: 'date' %}
|
14
14
|
<!-- Series Aside -->
|
15
15
|
<aside class="series">
|
16
16
|
<header>
|
17
|
-
{% assign series_titles = series | find: title, page.title | map: 'title'-%}
|
18
17
|
<h3>{{ page.series | replace: '-',' ' | capitalize }} <span class="header-aside"> - {% if page.type=='people'-%}group{%-else-%}{{ include.series_type | default: page.type | append: "-@$remove@me" | remove: "s-@$remove@me" }} series</span>{%-endif-%}</h3>
|
19
18
|
</header>
|
20
19
|
<ol class="series">
|
data/_layouts/author.html
CHANGED
data/_pages/people.html
CHANGED
@@ -3,10 +3,11 @@ title: Authors
|
|
3
3
|
date: 2020-01-02 01:23:45 -0800
|
4
4
|
author_bio: "<p>We're still working on this bio!</p>"
|
5
5
|
permalink: /people/ # trailing slash makes it an `index.html` file inside the `/people/` directory, rather than a `people.html` file in the root
|
6
|
+
excerpt: ""
|
6
7
|
---
|
7
8
|
|
8
9
|
{% if site.show.authors-%}
|
9
|
-
{% assign peeps = site.collections |
|
10
|
+
{% assign peeps = site.collections | where: "label", 'people' | first-%}
|
10
11
|
{% if peeps.output-%}
|
11
12
|
<p>Our wonderful authors love to share tales of wonder and zeal. Sometimes they go overboard and fall into the waters of silliness or cynicism. We hope you do understand, and take that into the highest consideration.</p>
|
12
13
|
<hr class="major"/>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Middle Bear
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-08-
|
11
|
+
date: 2020-08-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|