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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -0
  3. data/_layouts/home.html +6 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 037f8162ca1339436901629b17a8bf81c1061912
4
- data.tar.gz: ec342dc6b1c93ae5c12322e0c90f3af321690fd1
3
+ metadata.gz: 985fa9a6a6776abbd86d9eb288097f20b7290c42
4
+ data.tar.gz: ec2ec249f57e039a9df4399b9277c003277e09f3
5
5
  SHA512:
6
- metadata.gz: d3027913532c7d7f8acfd59d4b033afb5e715a0880b9af6f91389694b0e332b1d1bce880d6daee12a91fd071616a3aa473b117a7d50fd2ddefb254cde52bcd3c
7
- data.tar.gz: caf2cccfdc1101b33a64f91f833b3b3c082b56b6c437025d7577dbca01fb9bb4cb6c5ce622a2ab78053ad3ba13c78d0243d10687e4935067c5d9506401616715
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
- {% for entry in site.posts %}
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>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: charlie-lee-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charlie Lee