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 +4 -4
- data/_includes/components/menu.html +21 -14
- data/_layouts/group.html +19 -3
- data/_layouts/post.html +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 131ab3b40487038d5f525d59c8e1f3c931cbb65f
|
4
|
+
data.tar.gz: 05c0e8ae831d0023979cac7631d42f5ed8340b03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
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
|
-
{
|
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.
|
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.
|
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-
|
11
|
+
date: 2019-05-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|