jekyll-category-pages 1.0.0 → 1.0.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
- SHA1:
3
- metadata.gz: 729a4240777ec89a28d3fe0b835dd735e9c14352
4
- data.tar.gz: 96bbf4220a73525d2433b9e5646450ad9fccec14
2
+ SHA256:
3
+ metadata.gz: 0cc642f94e6dbd98b6c0379c2dff3753a53ad799ccda158d6fae282791b3213b
4
+ data.tar.gz: 9f1fb07f5d2a4740f26716c34f1a0bcffc3732ab803c98e3bbf2f96e32a32108
5
5
  SHA512:
6
- metadata.gz: e6733ba05be842bf0ebfa01e54345eb12802e467d782e5597c7ee4ffb0a356dbf4b6a2452d78117c838472996e62227bde4e2ae82a3ec23ae5a1219b8e169421
7
- data.tar.gz: 075ad1385dac2cfcca6f10852a6fa0795f2fc378d00b20753eef1e4ec5fa9223cfb50c2ee3501d68b482fe5b93417b81372feff071e054d4a3d1bc5629d529e7
6
+ metadata.gz: 0a3d51cca9c1311339e4fc229927841c1cffa6fd107388cf4bdf7afc2b12669d5fe251dbb528d8e2981f61f1be1c0583b97e86a1f9bd85698e9e60722936894d
7
+ data.tar.gz: 1f1639fbf0f5adc24ad74d620854fddbc4bfe632082ce688bccb1caea3b876f36d9e77301600d5a9d48364e3989d3037fafa46ac761465c0c7298d0799b18950
data/README.md CHANGED
@@ -39,8 +39,8 @@ page for the `Category Pages Plugin` category.
39
39
  Note that the YAML `categories` entry should always use brackets `[]`
40
40
  to make it explicit that it is an array!
41
41
 
42
- You can find this example in the `example` directory of the [git
43
- repository](https://github.com/field-theory/jekyll-category-pages).
42
+ You can find this example in the `example` directory of the
43
+ [git repository](https://github.com/field-theory/jekyll-category-pages).
44
44
 
45
45
  ### The example project
46
46
 
@@ -56,14 +56,9 @@ The result is put in `example/_site`.
56
56
  ## Installation and setup
57
57
 
58
58
  Installation is straightforward (like other plugins):
59
- 1. Add the plugin to the site's `Gemfile` and configuration file:
60
- ```ruby
61
- group :jekyll_plugins do
62
- gem "jekyll-category-pages"
63
- end
64
- ```
65
- and run `bundle install`. If you want to use pagination, also
66
- install the `jekyll-paginate` gem:
59
+ 1. Add the plugin to the site's `Gemfile` and configuration file and
60
+ also install the `jekyll-paginate` gem (the latter is a required
61
+ dependency even if you don't use it):
67
62
  ```ruby
68
63
  group :jekyll_plugins do
69
64
  gem "jekyll-paginate"
@@ -153,6 +148,21 @@ characters in category names.
153
148
  An example listing can be found in `example/index.html` which
154
149
  shows a full listing of categories with corresponding links.
155
150
 
151
+ ### Categories on a single page
152
+
153
+ Listing the categories in a single page is particularly simple since
154
+ the categories listed in the YAML front matter are directly available
155
+ as strings in `page.categories`. However, unlike the site-wide
156
+ category list in `site.categories` the content of `page.categories`
157
+ are just strings and can thus be added as follows (with references):
158
+ ```html
159
+ <ul>
160
+ {% for category in page.categories %}
161
+ <li><a href="{{ site.url }}/path-to-category-index/{{ category | url_encode }}/index.html">{{ category }}</a></li>
162
+ {% endfor %}
163
+ </ul>
164
+ ```
165
+
156
166
  ## Development
157
167
 
158
168
  This project contains a `Rakefile` that supports the following
@@ -14,6 +14,6 @@
14
14
 
15
15
  module Jekyll
16
16
  module CategoryPages
17
- VERSION = "1.0.0".freeze
17
+ VERSION = "1.0.1".freeze
18
18
  end
19
19
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-category-pages
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dr. Wolfram Schroers
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-12-15 00:00:00.000000000 Z
12
+ date: 2018-08-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jekyll
@@ -96,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
96
  version: '0'
97
97
  requirements: []
98
98
  rubyforge_project:
99
- rubygems_version: 2.6.10
99
+ rubygems_version: 2.7.6
100
100
  signing_key:
101
101
  specification_version: 4
102
102
  summary: Add category index pages with and without pagination.