jekyll-index-pages 0.1.0 → 0.1.1

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: 1ce65b6deaeb39e301bca0272d1bd62e17221afe
4
- data.tar.gz: e2d7e5c552696eae82bbb78a46403018be516513
3
+ metadata.gz: 928db5a156d0d693eea24f717e23b54c4ecb99f1
4
+ data.tar.gz: 1356061543cb6ca18006b3e57479d1950f27f5cb
5
5
  SHA512:
6
- metadata.gz: 0e1d7966321495e3c404f4736123c32b38413f4b96f228777c7b0281a536463eba5bdaf16753cc8470bed6403e19c189436c57736e89ce9c4ee23210c77ef1f9
7
- data.tar.gz: 39cf9d4784a6cd473a2267cdbd88696b0f03a7ec5400d08acc27a0a373899bd7b3bd0059ff0394e6b324149febb12b38d17b9deda9744174fe092d48dc776d9e
6
+ metadata.gz: c885ee48d6bfc01298a1ca75ba043aedf30c3d619349bab1589cf5ebcbbc68bcc31e1aa08aea474a56691423211c5dd0196799e36697eba8f98b4b6a9331295d
7
+ data.tar.gz: 42fbe6bd32b27d8d7d9cd3d7391e88a4451d83383e0f6de991d69e89709c52554807636d73d65f2b2c984d22e914818d60ed6bf581c2f6d411fa6f5d9ef81a5e
data/README.md CHANGED
@@ -46,50 +46,50 @@ using the layout named `_layouts/blog.html`. Each index page will contain up to
46
46
  20 posts. First page can be accessed at `/blog/`. Subsequent pages can be
47
47
  accessed at `/blog/<page-num>/`.
48
48
 
49
- Default values for each setting are:
49
+ If you want to generate index pages for categories, add the `categories`
50
+ setting to `index_page` section:
50
51
 
51
52
  ```yaml
52
53
  index_pages:
53
- posts:
54
- title: posts
55
- excerpt: posts
56
- per_page: 10
57
- permalink: /posts/
58
- layout: posts
54
+ categories:
55
+ ...
59
56
  ```
60
57
 
61
- If you want to generate index pages for categories, add the `categories`
62
- setting to `index_page` section:
58
+ The same reasoning applies if you want to generate index pages for tags:
63
59
 
64
60
  ```yaml
65
- # Displaying default values
66
61
  index_pages:
67
- categories:
68
- title: categories
69
- excerpt: categories
70
- per_page: 10
71
- permalink: /categories/
72
- layout: categories
62
+ tags:
63
+ ...
73
64
  ```
74
65
 
75
- Given the default values above, categories index pages can be accessed at
76
- `/categories/<category-name-slug>/`.
77
-
78
- The same reasoning applies if you want to generate index pages for tags:
66
+ Default values for each setting are:
79
67
 
80
68
  ```yaml
81
- # Displaying default values
82
69
  index_pages:
70
+ posts:
71
+ title: :label
72
+ excerpt: :label
73
+ per_page: 10
74
+ permalink: /:label/
75
+ layout: posts
76
+ categories:
77
+ title: :label
78
+ excerpt: :label
79
+ per_page: 10
80
+ permalink: /:label/
81
+ layout: categories
83
82
  tags:
84
- title: tags
85
- excerpt: tags
83
+ title: :label
84
+ excerpt: :label
86
85
  per_page: 10
87
- permalink: /tags/
86
+ permalink: /:label/
88
87
  layout: tags
89
88
  ```
90
89
 
91
- Given the default values above, tags index pages can be accessed at
92
- `/tags/<tag-name-slug>/`.
90
+ For categories and tags, `:label` variable refers to the category or tag name.
91
+ For posts, `:label` will always be equal to `post`. `:label` value is slugified
92
+ when composing the permalink.
93
93
 
94
94
  ### Including documents and pagination into templates
95
95
 
@@ -1,3 +1,3 @@
1
1
  module JekyllIndexPages
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-index-pages
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jose Miguel Venegas Mendoza