charlie-lee-theme 0.1.0 → 0.2.0
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/README.md +3 -0
- data/_layouts/home.html +6 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 985fa9a6a6776abbd86d9eb288097f20b7290c42
|
|
4
|
+
data.tar.gz: ec2ec249f57e039a9df4399b9277c003277e09f3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7d10578103f70774e4730f95779cb9f67bdf1417df8e12c7e5eee5f722ebdcf108e1ec7c7430a07d070509dc901342844c6485e1163735fc4b467573c1753f31
|
|
7
|
+
data.tar.gz: 20ebcbccbc1d409250a7fd94d916b9d75ef9ca25e780cc1d3d2a02e1338b21c5b03d5d8884f55efd9acac37ae6eb91e27925532b724dd0368183a7addb86c29a
|
data/README.md
CHANGED
|
@@ -59,10 +59,13 @@ Post contents.
|
|
|
59
59
|
|
|
60
60
|
Creates a page with a grid displaying recent posts. The content entered on the page will be displayed as text in the page's hero image.
|
|
61
61
|
|
|
62
|
+
If a collection is specified, the pages in that will be displayed instead of the recent posts.
|
|
63
|
+
|
|
62
64
|
```yaml
|
|
63
65
|
---
|
|
64
66
|
title: Home
|
|
65
67
|
layout: home
|
|
68
|
+
collection: posts
|
|
66
69
|
---
|
|
67
70
|
Hero image text.
|
|
68
71
|
```
|
data/_layouts/home.html
CHANGED
|
@@ -13,7 +13,12 @@
|
|
|
13
13
|
</header>
|
|
14
14
|
|
|
15
15
|
<div class="gallery cols-3">
|
|
16
|
-
{%
|
|
16
|
+
{% if page.collection %}
|
|
17
|
+
{% assign items = site[page.collection] %}
|
|
18
|
+
{% else %}
|
|
19
|
+
{% assign items = site.posts %}
|
|
20
|
+
{% endif %}
|
|
21
|
+
{% for entry in items %}
|
|
17
22
|
<article>
|
|
18
23
|
<h2>{{ entry.title }}</h2>
|
|
19
24
|
<a href="{{ entry.url }}"><span>Read</span></a>
|