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 +4 -4
- data/README.md +26 -26
- data/lib/jekyll-index-pages/version.rb +1 -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: 928db5a156d0d693eea24f717e23b54c4ecb99f1
|
4
|
+
data.tar.gz: 1356061543cb6ca18006b3e57479d1950f27f5cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
54
|
-
|
55
|
-
excerpt: posts
|
56
|
-
per_page: 10
|
57
|
-
permalink: /posts/
|
58
|
-
layout: posts
|
54
|
+
categories:
|
55
|
+
...
|
59
56
|
```
|
60
57
|
|
61
|
-
|
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
|
-
|
68
|
-
|
69
|
-
excerpt: categories
|
70
|
-
per_page: 10
|
71
|
-
permalink: /categories/
|
72
|
-
layout: categories
|
62
|
+
tags:
|
63
|
+
...
|
73
64
|
```
|
74
65
|
|
75
|
-
|
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:
|
85
|
-
excerpt:
|
83
|
+
title: :label
|
84
|
+
excerpt: :label
|
86
85
|
per_page: 10
|
87
|
-
permalink: /
|
86
|
+
permalink: /:label/
|
88
87
|
layout: tags
|
89
88
|
```
|
90
89
|
|
91
|
-
|
92
|
-
|
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
|
|