jekyll-category-pages 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ec0cba5d790d94746c2385dfb1459b1a98744db99c325b55026cd6d2d25ea55a
4
- data.tar.gz: 21c41d59243940eb1b69990f6cd9cc9f1d8db9ff2054a7d67bf55671273495d4
3
+ metadata.gz: e27c768b3595f2ad64237f5a82e73d3df08ba623fa7f263ee3c147eb7d64de4a
4
+ data.tar.gz: ddb05693ba082eca5cdf4e9d8c2f39b735cfe1a53737bc3d5b898d81ed3fe570
5
5
  SHA512:
6
- metadata.gz: a36f3cbd9d3745365a15f0ae72bd2fdfab74e11b8d496b895e4ee2c51383c03bb0cd7f856ac358eb813aded73c94d1a07980025ec1cd7b3cee2ce8602a8758f3
7
- data.tar.gz: '060288fce419eaa422821d30976cd720d1ebab55c58b59bea4eb6ecd4009f60d50a4aa8e2b3bb58a0b52facc2b9e9cd30815f00fa34d7ac6a0e0b709f247a234'
6
+ metadata.gz: 2fcfc678651784bc17949848bedd1a523083ab84cca652f2c9dba0abc654a43e59250401bdf43a62d937369d13c5a7fdf1171e62e1f2ed3d801642928f35cbb6
7
+ data.tar.gz: fe83897d527b46e49ff93a9b211a96a2fb471ccb964515d869673f2c75e1280ec150175fcda014aebb776ef3830d49638a7f7a7e24ecf9686bdfed2ea0e801c0
data/README.md CHANGED
@@ -7,7 +7,7 @@ This plugin adds category index pages with and without pagination.
7
7
  Benefits are:
8
8
  * Easy to setup and use, fully compatible with the default [pagination
9
9
  plugin](https://github.com/jekyll/jekyll-paginate) (also cf. the
10
- [official documenation](https://jekyllrb.com/docs/pagination/)).
10
+ [official documentation](https://jekyllrb.com/docs/pagination/)).
11
11
  * Supports category keys with spaces and other special characters.
12
12
  * Complete documentation and a usage example.
13
13
  * Test coverage of key features.
@@ -154,6 +154,11 @@ module Jekyll
154
154
  def initialize(site, dir, page_name, category, category_layout, posts_in_category, use_paginator)
155
155
  @site = site
156
156
  @base = site.source
157
+ if ! File.exist?(File.join(@base, category_layout)) &&
158
+ ( site.theme && File.exist?(File.join(site.theme.root, category_layout)) )
159
+ @base = site.theme.root
160
+ end
161
+
157
162
  super(@site, @base, '', category_layout)
158
163
  @dir = dir
159
164
  @name = page_name
@@ -14,6 +14,6 @@
14
14
 
15
15
  module Jekyll
16
16
  module CategoryPages
17
- VERSION = "1.1.1".freeze
17
+ VERSION = "1.1.2".freeze
18
18
  end
19
19
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-category-pages
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dr. Wolfram Schroers
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-28 00:00:00.000000000 Z
11
+ date: 2021-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -28,22 +28,22 @@ dependencies:
28
28
  name: jekyll-paginate
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: 1.0.0
34
31
  - - "~>"
35
32
  - !ruby/object:Gem::Version
36
33
  version: '1.1'
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: 1.0.0
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- version: 1.0.0
44
41
  - - "~>"
45
42
  - !ruby/object:Gem::Version
46
43
  version: '1.1'
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: 1.0.0
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rspec
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -79,7 +79,7 @@ homepage: https://github.com/field-theory/jekyll-category-pages
79
79
  licenses:
80
80
  - MIT
81
81
  metadata: {}
82
- post_install_message:
82
+ post_install_message:
83
83
  rdoc_options: []
84
84
  require_paths:
85
85
  - lib
@@ -94,8 +94,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  - !ruby/object:Gem::Version
95
95
  version: '0'
96
96
  requirements: []
97
- rubygems_version: 3.0.3
98
- signing_key:
97
+ rubygems_version: 3.1.4
98
+ signing_key:
99
99
  specification_version: 4
100
100
  summary: Add category index pages with and without pagination.
101
101
  test_files: []