jekyll-theme-editorial 1.0.5 → 1.0.6
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/_pages/people.html +1 -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: 713298d11a3dd1673806658ae9ff4a70d1cbc83cfc06eb6cdf4dab8a9dc1b7f5
|
4
|
+
data.tar.gz: 2754deecdbd94222cab3cd46e20dca24cd7131402bff98a40ff04eccbcd06d1c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15959920203a1ee93244e6180ed4f49dd84b536450b0073a55329dfcb53c34f398ab282ff4139debd9918f69e2272edb5404a502070157f5dbdc85f40fb41129
|
7
|
+
data.tar.gz: 5fc0545414c6335f2d571ce618c91ab66895c1859a4c7a80c1d11f6718989445b67712f31a91a5fb11097669bd91142a0ffef4f1b4d7c14aaa9381734bb57e42
|
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-%}
|
data/_pages/people.html
CHANGED
@@ -7,7 +7,7 @@ excerpt: ""
|
|
7
7
|
---
|
8
8
|
|
9
9
|
{% if site.show.authors-%}
|
10
|
-
{% assign peeps = site.collections |
|
10
|
+
{% assign peeps = site.collections | where: "label", 'people' | first-%}
|
11
11
|
{% if peeps.output-%}
|
12
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>
|
13
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.6
|
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
|