jekyll-theme-editorial 1.0.4 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +102 -3
- data/_config.yml +1 -0
- data/_includes/articles.html +5 -1
- data/_includes/author.html +3 -3
- data/_includes/authors.html +1 -1
- data/_includes/authors_byline.html +13 -7
- data/_includes/mini-posts.html +2 -2
- data/_includes/post_header.html +1 -1
- data/_includes/posts.html +3 -3
- data/_includes/project.html +57 -0
- data/_includes/projects.html +6 -72
- data/_includes/series.html +1 -2
- data/_layouts/post.html +4 -3
- data/_pages/people.html +1 -1
- data/assets/images/index.html +4 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0bfa4f15c18670ce1b6a98e57c3c4e9cc7d328556f0b509eeaf5e392b1370e6c
|
4
|
+
data.tar.gz: 7bbb29941b7d2877635f9c5649fc6be620c39870c636747d270b043931f4fa86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd69f9070261ccd67fe2419a761858cc257e781a3d7b251c5ade1e8f5cb19b544f1422faf41a1bf55f9313db2f87c5e225de820a8f89dc4fbfa4e1ef5a42e58d
|
7
|
+
data.tar.gz: 7b28ee9d890714636a1d2894afc617fd06d5cde420354155af9ff6212babfe5f3271675f78417a721e31060c0df75d0899a7f9c47f3f98f13c369714f0413fe9
|
data/README.md
CHANGED
@@ -1090,7 +1090,7 @@ collections:
|
|
1090
1090
|
```
|
1091
1091
|
|
1092
1092
|
#### People page defaults
|
1093
|
-
We'll also need to add some page defaults to the `_config.yml` file for people pages, under the `defaults` key:
|
1093
|
+
We'll also need to add some page defaults to the `_config.yml` file for people pages, under the `defaults` key that we defined earlier:
|
1094
1094
|
|
1095
1095
|
```yaml
|
1096
1096
|
- scope:
|
@@ -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,9 +1160,108 @@ 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 look like:
|
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
|
+
|
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
|
+
|
1163
1194
|
### Add Projects
|
1164
1195
|
|
1165
|
-
|
1196
|
+
Projects are just another type of collection that are neither date-based posts nor people. You can use them for any kind of collection you'd like, visually renaming the collection to something more suitable to your purposes, even if the theme calls the collection "projects" internally. We'll largely go through the same steps as adding people.
|
1197
|
+
|
1198
|
+
#### Set up the Projects collection
|
1199
|
+
As with the people collection, configure Jekyll in the `_config.yml` file to output our projects collection:
|
1200
|
+
|
1201
|
+
```yaml
|
1202
|
+
###################
|
1203
|
+
# Collections
|
1204
|
+
###################
|
1205
|
+
collections:
|
1206
|
+
people:
|
1207
|
+
output: true
|
1208
|
+
pages:
|
1209
|
+
output: true
|
1210
|
+
projects: # find/put projects in `\_projects`
|
1211
|
+
output: true
|
1212
|
+
```
|
1213
|
+
|
1214
|
+
#### Project page defaults
|
1215
|
+
Let's add in the relevant page defaults to the `_config.yml` file under the `defaults` key we defined earlier:
|
1216
|
+
|
1217
|
+
```yaml
|
1218
|
+
- scope:
|
1219
|
+
path: ""
|
1220
|
+
type: "projects"
|
1221
|
+
values:
|
1222
|
+
layout: "project"
|
1223
|
+
menus: 'projects' # used by jekyll-menus plugin
|
1224
|
+
type: "projects"
|
1225
|
+
image_path: "/assets/images/"
|
1226
|
+
comments: false
|
1227
|
+
published: false
|
1228
|
+
```
|
1229
|
+
#### Create some projects
|
1230
|
+
As before, nothing will have changed at this point until we add some projects. We'll again just copy them from the Editorial theme gem rather than create them from scratch. If necessary, use `bundle info` again to find the theme gem from which to copy the `_projects` folder with its 4 project files inside into your site folder:
|
1231
|
+
|
1232
|
+
```sh
|
1233
|
+
:~/my-jekyll-site$ bundle info --path jekyll-theme-editorial
|
1234
|
+
```
|
1235
|
+
Then, after you save the `_config.yml` file, restart, and refresh the browser, you should see three new menu items under "Projects" in the menu sidebar for the added project pages (as with authors, the 4th is unpublished). By the way, now that we have some projects, we're showing their mini-post cards in the sidebar as well!
|
1236
|
+
|
1237
|
+
|
1238
|
+
### Add the Projects index page
|
1239
|
+
|
1240
|
+
Similar to what we did with authors, we'll use the theme's `projects.html` include to list out standard project blocks for the projects index page. We set the page's `permalink` in the front matter to `/projects/` so that it overrides the ugly default HTML index page. If there are no published projects, we'll just show a little message stating as much. Save this file as `_pages/projects.html` (not to be confused with `_includes/projects.html` which is provided by the Editorial theme gem).
|
1241
|
+
|
1242
|
+
```liquid
|
1243
|
+
---
|
1244
|
+
title: Projects
|
1245
|
+
date: 2020-03-01 01:23:45 -0800
|
1246
|
+
permalink: /projects/
|
1247
|
+
---
|
1248
|
+
|
1249
|
+
<p>These projects are the bomb. Well, not really a bomb, but <em>da bomb</em>, y'know, like awesome but more explosive or something. Anyway check em out and make happy noises <em>en masse</em>.</p>
|
1250
|
+
|
1251
|
+
{% include projects.html %}
|
1252
|
+
```
|
1253
|
+
Now you can click on "Projects" in the sidebar menu and hopefully see a nicely formatted list of the 3 published projects. You can toggle the `published` status of the fourth project to see that one as well.
|
1254
|
+
|
1255
|
+
### Toggle summaries and dates for project pages
|
1256
|
+
|
1257
|
+
Our sample project pages have extended summaries which we'd like to show. At the same time, our projects index page is displaying a page creation date that looks odd in the upper right corner of page content area. We can fix both via two site configuration settings in `_config.yml`:
|
1258
|
+
|
1259
|
+
```yaml
|
1260
|
+
include_summary: [projects] # collections for which to show the summary in the header
|
1261
|
+
exclude_dates: [people, pages] # collections for which to not show dates in the header
|
1262
|
+
```
|
1263
|
+
Add these two lines to `_config.yml` and restart Jekyll to see the date disappear on the projects index page (which is part of the `pages` collection, not the `projects` colllection) and summaries on each of the individual published project pages (which *are* part of the `projects` collection). While we're at it, we removed publication dates from people pages too.
|
1264
|
+
|
1166
1265
|
|
1167
1266
|
## Setup Notes
|
1168
1267
|
|
data/_config.yml
CHANGED
@@ -24,6 +24,7 @@ timezone: America/Los_Angeles # set this to a standardized TZ na
|
|
24
24
|
date_format: # optional; set the way dates are formatted throughout the site - see https://ruby-doc.org/core/Time.html#method-i-strftime
|
25
25
|
|
26
26
|
|
27
|
+
|
27
28
|
###################
|
28
29
|
# Build settings
|
29
30
|
###################
|
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,9 +20,12 @@ 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
|
-
{%-if site.show.
|
25
|
+
{%-if site.show.authors and include.page_type=="index"-%}
|
26
|
+
{%-assign show_authors = true-%}
|
27
|
+
{%-assign has_author_cards = false-%}
|
28
|
+
{%-elsif site.show.post_authors and page.type=="posts"-%}
|
26
29
|
{%-assign show_authors = true-%}
|
27
30
|
{%-assign has_author_cards = true-%}
|
28
31
|
{%-elsif site.show.project_authors and page.type=="projects"-%}
|
@@ -35,6 +38,9 @@ local:
|
|
35
38
|
{%-assign show_authors = false-%}
|
36
39
|
{%-endif-%}
|
37
40
|
{%-assign has_author_cards = false-%}
|
41
|
+
{%-elsif site.show.authors-%}
|
42
|
+
{%-assign show_authors = true-%}
|
43
|
+
{%-assign has_author_cards = false-%}
|
38
44
|
{%-else-%}
|
39
45
|
{%-assign show_authors = false-%}
|
40
46
|
{%-assign has_author_cards = false-%}
|
@@ -43,16 +49,16 @@ local:
|
|
43
49
|
{%-if site.show.authors and show_authors-%}
|
44
50
|
<ul class="inline csv authors">
|
45
51
|
{%-for slug in authors-%}
|
46
|
-
{%-assign author = site.people |
|
52
|
+
{%-assign author = site.people | where: 'handle', slug | first-%}
|
47
53
|
{%-assign author_name = author.name | default: slug-%}
|
48
54
|
{%-if author.published and has_author_cards %}
|
49
|
-
<li><a href="#{{-author.handle-}}" class="p-author" title="Read {{ author.handle-}}'s excerpt below">{{-author_name-}}</a></li>
|
55
|
+
<li><a href="#{{-author.handle-}}" class="p-author" itemprop="author" title="Read {{ author.handle-}}'s excerpt below">{{-author_name-}}</a></li>
|
50
56
|
{%-elsif author.published and peeps.output-%}
|
51
|
-
<li><a href="{{-author.url-}}" rel="author" class="p-author u-author" title="Read {{
|
57
|
+
<li><a href="{{-author.url-}}" rel="author" class="p-author u-author" itemprop="author" title="Read {{ author_name | split: ' ' | first-}}'s bio">{{-author_name-}}</a></li>
|
52
58
|
{%-elsif author.published-%}
|
53
|
-
<li class="p-author">{{-author_name-}}</li>
|
59
|
+
<li class="p-author" itemprop="author">{{-author_name-}}</li>
|
54
60
|
{%-elsif has_author_cards %}
|
55
|
-
<li><a href="#{{-slug-}}" class="p-author" title="Read {{ slug-}}'s excerpt below">{{-slug-}}</a></li>
|
61
|
+
<li><a href="#{{-slug-}}" class="p-author" itemprop="author" title="Read {{ slug-}}'s excerpt below">{{-slug-}}</a></li>
|
56
62
|
{%-else-%}
|
57
63
|
<li class="p-author">{{-slug-}}</li>
|
58
64
|
{%-endif-%}
|
data/_includes/mini-posts.html
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
{%-assign published_projects = site.projects | where: 'published', true
|
2
|
-
{%-assign project_menu = site.data.menus.sidebar | find: 'identifier', 'projects'
|
1
|
+
{%-assign published_projects = site.projects | where: 'published', true-%}
|
2
|
+
{%-assign project_menu = site.data.menus.sidebar | find: 'identifier', 'projects'-%}
|
3
3
|
{%-if published_projects != empty %}
|
4
4
|
<!-- Section - Mini-posts -->
|
5
5
|
<section>
|
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/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-%}
|
@@ -0,0 +1,57 @@
|
|
1
|
+
{%-comment-%}
|
2
|
+
lists a project as a section card given a project hash
|
3
|
+
|
4
|
+
inputs:
|
5
|
+
project the project to render
|
6
|
+
dependencies:
|
7
|
+
site.show.authors used to determine whether to show authors
|
8
|
+
site.show.project_authors used to determine whether to show authors
|
9
|
+
site.title used to determine whether to show separator
|
10
|
+
local:
|
11
|
+
modified_date the proejct's modification date, if any, that differs from project.date
|
12
|
+
{%-endcomment-%}
|
13
|
+
|
14
|
+
{%-if project.published %}
|
15
|
+
<article itemid="{{-project.url|absolute_url-}}" class="h-entry project-card row gtr-50 gtr-uniform" itemscope itemtype="http://schema.org/Article">
|
16
|
+
{% if project.images-%}
|
17
|
+
<div class="col-4 col-12-small">
|
18
|
+
<figure>
|
19
|
+
<a href="{{-project.url-}}" class="image fit" title="Learn more about '{{-project.title-}}'">
|
20
|
+
{% include item_image.html-%}
|
21
|
+
</a>
|
22
|
+
</figure>
|
23
|
+
<div class="snug smaller categories">{%-include categories.html %}</div>
|
24
|
+
{%-if project.series %}
|
25
|
+
<div class="snug series" title="This project is part of a series">{{ project.series | replace: '-',' ' | split: " " | join: "-----" | camelcase | split: "-----" | join: " "-}}</div>
|
26
|
+
{%-endif %}
|
27
|
+
</div>
|
28
|
+
{%-endif %}
|
29
|
+
<div class="col-8 col-12-small">
|
30
|
+
{%-assign modified_date = project.modified_date | default: project.last_modified_at-%}
|
31
|
+
{%-if modified_date-%}
|
32
|
+
{% include date_modified.html item_date=modified_date lead_in='last modified: '-%}
|
33
|
+
{%-endif %}
|
34
|
+
<header class="tight">
|
35
|
+
<span class="header-aside">{% include item_date.html %}</span>
|
36
|
+
<h3><a href="{{-project.url-}}" itemprop="name" class="u-url p-name" title="Learn more about '{{-project.title-}}'">{{-project.title-}}</a></h3>
|
37
|
+
<p class="subtitle p-subtitle" itemprop="alternativeHeadline">{{-project.subtitle-}}</p>
|
38
|
+
{%-if site.show.project_authors and site.show.authors and project.author or project.location-%}
|
39
|
+
<div class="byline">
|
40
|
+
{% include authors_byline.html page_type="index" author=project.author-%}
|
41
|
+
{%-if project.location-%}
|
42
|
+
{% if project.author or site.title-%}{{-" | "-}}{%-endif %}
|
43
|
+
<span class="p-location" itemprop="location" title="Post location">{{-project.location-}}</span>
|
44
|
+
{%-endif %}
|
45
|
+
</div>
|
46
|
+
{%-endif-%}
|
47
|
+
</header>
|
48
|
+
{% if include.summary or project.summary or project.excerpt-%}
|
49
|
+
<div class="summary p-summary" itemprop="abstract">
|
50
|
+
{{-include.summary | default: project.summary | default: project.excerpt | markdownify-}}
|
51
|
+
</div>
|
52
|
+
{%-endif %}
|
53
|
+
{%-include tags.html %}
|
54
|
+
</div>
|
55
|
+
</article>
|
56
|
+
<hr class="major"/>
|
57
|
+
{% endif %}
|
data/_includes/projects.html
CHANGED
@@ -1,88 +1,22 @@
|
|
1
1
|
{%-comment-%}
|
2
2
|
lists projects as section cards given a projects hash
|
3
3
|
|
4
|
-
inputs:
|
5
|
-
dependencies:
|
4
|
+
inputs:
|
6
5
|
projects the projects to render
|
6
|
+
dependencies:
|
7
7
|
site.projects used as the default if `projects` isn't available already
|
8
|
-
|
9
|
-
site.show.authors used to determine whether to show authors
|
10
|
-
site.show.project_authors used to determine whether to show authors
|
11
|
-
site.people lookup authors in the people array
|
12
|
-
site.title use as the author, as a last resort
|
8
|
+
page.layout used to see if projects should be set to site.projects
|
13
9
|
local:
|
14
10
|
projects default to site.projects if not already provided
|
15
11
|
published_projects projects filtered for `published==true`
|
16
|
-
placeholder placeholder.png file to use in case no other page image is available
|
17
|
-
auth the author's handle, used for unpublished authors in place of their name
|
18
|
-
author the looked-up author in site.people
|
19
12
|
{%-endcomment-%}
|
20
13
|
|
21
|
-
{%-if page.layout == "page"-%}
|
22
|
-
|
23
|
-
{%-endif-%}
|
24
|
-
{%-assign published_projects = projects | where: 'published', true-%}
|
14
|
+
{%-if page.layout == "page"-%}{%-assign projects = site.projects-%}{%-endif-%}
|
15
|
+
{%-assign published_projects = projects | where: 'published', true-%}
|
25
16
|
|
26
17
|
{%-if published_projects != empty %}
|
27
18
|
{%-for project in published_projects %}
|
28
|
-
{
|
29
|
-
<article itemid="{{-project.url|absolute_url-}}" class="h-entry project-card row gtr-50 gtr-uniform" itemscope itemtype="http://schema.org/Article">
|
30
|
-
{% if project.images-%}
|
31
|
-
<div class="col-4 col-12-small">
|
32
|
-
<figure>
|
33
|
-
<a href="{{-project.url-}}" class="image fit" title="Learn more about '{{-project.title-}}'">
|
34
|
-
{% include item_image.html-%}
|
35
|
-
</a>
|
36
|
-
</figure>
|
37
|
-
<div class="snug smaller categories">{%-include categories.html %}</div>
|
38
|
-
{%-if project.series %}
|
39
|
-
<div class="snug series" title="This project is part of a series">{{ project.series | replace: '-',' ' | split: " " | join: "-----" | camelcase | split: "-----" | join: " "-}}</div>
|
40
|
-
{%-endif %}
|
41
|
-
</div>
|
42
|
-
{%-endif %}
|
43
|
-
<div class="col-8 col-12-small">
|
44
|
-
{%-assign modified_date = project.modified_date | default: project.last_modified_at-%}
|
45
|
-
{%-if modified_date-%}
|
46
|
-
{% include date_modified.html item_date=modified_date lead_in='last modified: '-%}
|
47
|
-
{%-endif %}
|
48
|
-
<header class="tight">
|
49
|
-
<span class="header-aside">{% include item_date.html %}</span>
|
50
|
-
<h3><a href="{{-project.url-}}" itemprop="name" class="u-url p-name" title="Learn more about '{{-project.title-}}'">{{-project.title-}}</a></h3>
|
51
|
-
<p class="subtitle p-subtitle" itemprop="alternativeHeadline">{{-project.subtitle-}}</p>
|
52
|
-
{%-if site.show.project_authors and site.show.authors and project.author or project.location-%}
|
53
|
-
<p class="byline">
|
54
|
-
{%-if site.show.authors %}
|
55
|
-
{%-for auth in project.author-%}
|
56
|
-
{%-assign author = site.people | find: 'handle', auth-%}
|
57
|
-
{%-if author.published and author.url-%}
|
58
|
-
<a href="{{-author.url-}}" rel="author" itemprop="author" class="u-author p-author" title="Read {{ author.name | split: ' ' | first-}}'s bio">{{-author.name-}}</a>
|
59
|
-
{%-elsif author.published-%}
|
60
|
-
<span itemprop="author" class="p-author">{{-author.name-}}</span>
|
61
|
-
{%-else-%}
|
62
|
-
<span itemprop="author" class="p-author">{{-auth-}}</span>
|
63
|
-
{%-endif-%}
|
64
|
-
{%-unless forloop.last %}, {% endunless-%}
|
65
|
-
{%-else-%}
|
66
|
-
<span itemprop="author" class="p-author">{{-site.title-}}</span>
|
67
|
-
{%-endfor-%}
|
68
|
-
{%-if project.location and project.author or site.title-%}{{-" | "-}}{%-endif-%}
|
69
|
-
{%-endif %}
|
70
|
-
{%-if project.location %}
|
71
|
-
<span class="p-location" itemprop="location" title="Post location">{{-project.location-}}</span>
|
72
|
-
{%-endif %}
|
73
|
-
</p>
|
74
|
-
{%-endif-%}
|
75
|
-
</header>
|
76
|
-
{% if include.summary or project.summary or project.excerpt-%}
|
77
|
-
<div class="summary p-summary" itemprop="abstract">
|
78
|
-
{{-include.summary | default: project.summary | default: project.excerpt | markdownify-}}
|
79
|
-
</div>
|
80
|
-
{%-endif %}
|
81
|
-
{%-include tags.html %}
|
82
|
-
</div>
|
83
|
-
</article>
|
84
|
-
<hr class="major"/>
|
85
|
-
{% endif %}
|
19
|
+
{% include project.html %}
|
86
20
|
{% endfor %}
|
87
21
|
{% else %}
|
88
22
|
<h2>Oof!</h2>
|
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/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>
|
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.9
|
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-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -143,6 +143,7 @@ files:
|
|
143
143
|
- _includes/post_header.html
|
144
144
|
- _includes/post_nav.html
|
145
145
|
- _includes/posts.html
|
146
|
+
- _includes/project.html
|
146
147
|
- _includes/projects.html
|
147
148
|
- _includes/responsive_banner.html
|
148
149
|
- _includes/scripts.html
|
@@ -236,6 +237,7 @@ files:
|
|
236
237
|
- assets/css/github.css
|
237
238
|
- assets/css/main.css
|
238
239
|
- assets/css/user.css
|
240
|
+
- assets/images/index.html
|
239
241
|
- assets/images/logo.png
|
240
242
|
- assets/images/pic01-thumb.jpg
|
241
243
|
- assets/images/pic01.jpg
|