jekyll-theme-nn 0.1.14 → 0.1.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c3efe9fae97704ae6b1053f533efd9d50dbb3a56
4
- data.tar.gz: 933c2b8d84a6e254c56788b7c9e9e3556edc03b9
3
+ metadata.gz: 131ab3b40487038d5f525d59c8e1f3c931cbb65f
4
+ data.tar.gz: 05c0e8ae831d0023979cac7631d42f5ed8340b03
5
5
  SHA512:
6
- metadata.gz: 1035e5d1e7ecca7e13984b25a9a550c362d23d7c8894a2bebf84d3ece3b56e969a0b9672194f88f31e4c9a194b695e6635c0bcd87b45feb492f338b9d4623eb5
7
- data.tar.gz: a38f4cd28e0b208487bfcbc1899586616f3773a9365e236115cbc73d1b794cdf3ab4b48764939c7832ccebfe300f5c95e716f3e0572762c6639743a63b473ab5
6
+ metadata.gz: cea84f2a4606bf6caba4c3384c5cc24f86db23a8641dbc7e0367a1890a4a1612ab4168a2f44b39110351c315fbcab49f433c8876c95e6122f602b6f870941081
7
+ data.tar.gz: 64d7b1f9e89d5714a435d3e9fa581be53afe7c7e2226f7c87610dcc336c9826baffd950ee1a4cabe7e4259c05e49e756571aaa17eea4ac7ea91ade6675de5093
@@ -1,16 +1,23 @@
1
+ {% comment %}
2
+ This template works closely with the groups used by the plugin jekyll-groupby.
3
+ {% endcomment %}
4
+
1
5
  <aside class="menu is-hidden-touch">
2
- <p class="menu-label">
3
- Categories
4
- </p>
5
- <ul class="menu-list">
6
- {% for category in site.categories %}
7
- {% assign cat_name = category | first %}
8
- {% assign cat_url = "/category/" | append: cat_name | append: ".html" %}
9
- <li>
10
- <a href="{{ cat_url | relative_url }}">
11
- {{ cat_name }}
12
- </a>
13
- </li>
14
- {% endfor %}
15
- </ul>
6
+ {% for group in site.jekyll-groupby.groups %}
7
+ <p class="menu-label">
8
+ {{ group.name }}
9
+ </p>
10
+ <ul class="menu-list">
11
+ {% for post in group.posts %}
12
+ {% assign post_slug = post.name | slugify %}
13
+ {% assign url = "/" | append: group.name | append: "/" |
14
+ append: post_slug | append: ".html" %}
15
+ <li>
16
+ <a href="{{ url | relative_url }}">
17
+ {{ post.name }}
18
+ </a>
19
+ </li>
20
+ {% endfor %}
21
+ </ul>
22
+ {% endfor %}
16
23
  </aside>
data/_layouts/group.html CHANGED
@@ -2,14 +2,30 @@
2
2
  layout: default
3
3
  ---
4
4
 
5
+ {% comment %}
6
+ This template works closely with the groups used by the plugin jekyll-groupby.
7
+ {% endcomment %}
8
+
5
9
  <p class="title is-2 has-text-info">
6
10
  {{ page.title }}
7
11
  </p>
8
12
  <p class="subtitle is-6">
9
- {{ page.posts | size }} posts in this {{ page.key }}
13
+ {% assign num_posts = page.posts | size %}
14
+ {{ num_posts }}
15
+ {% if num_posts > 1 %}
16
+ posts
17
+ {% else %}
18
+ post
19
+ {% endif %}
20
+ {% if site.data[page.group].matchline %}
21
+ {{ site.data[page.group].matchline }}
22
+ {% else %}
23
+ in this {{ page.group }}
24
+ {% endif %}
10
25
  </p>
11
26
 
12
- {% assign group_data = site.data[page.key] | where: "name", page.slug | first %}
27
+ {% assign group_data = site.data[page.group].items | where: "name", page.slug
28
+ | first %}
13
29
  {% if group_data %}
14
30
  <p class="content">
15
31
  {{ group_data.content }}
@@ -19,7 +35,7 @@ layout: default
19
35
 
20
36
  <section class="posts-group">
21
37
  {% for post in page.posts %}
22
- {% include components/post-snippet.html %}
38
+ {% include components/post-snippet.html post=post %}
23
39
 
24
40
  {% if forloop.last == false %}
25
41
  <hr>
data/_layouts/post.html CHANGED
@@ -32,6 +32,11 @@ layout: default
32
32
  {% endif %}
33
33
 
34
34
  <section class="post-content">
35
+ {% if page.featured-image %}
36
+ <div class="content">
37
+ {% include components/featured-image.html post=page %}
38
+ </div>
39
+ {% endif %}
35
40
  <div class="content has-pulled-children">
36
41
  {{ content }}
37
42
  </div>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-nn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicholas Nooney
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-09 00:00:00.000000000 Z
11
+ date: 2019-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll