jekyll-datapage-generator 1.3.0 → 1.4.0

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: 2c4222dd94a2eb9d6d1bfeb4720e3290cede06d8fcd5b26c5f486971ad5637eb
4
- data.tar.gz: 5b9ede0b2e57e72530407ee918fcfab1eafee4e62d31695d1dc3643408b06bf6
3
+ metadata.gz: 3480681cfd1c5cc3aa7fd93ad8fba21ed3da3ec60f18a317e468a405275acb28
4
+ data.tar.gz: 6f09fced6877377d98bb9955adfce02d569c7cd74d344ef3d7287faafef975cb
5
5
  SHA512:
6
- metadata.gz: a25d45ab2887639d335c0b9cd693076f6d53ad3a20f35e3beb649fee97484dd65c513271d6c740a48c075fe1549d1a078ecd09a7aaf4780e8721fb465cf93e68
7
- data.tar.gz: 945584ac766e1b0dfbb28966a07730a2f6575686b4af130315f1aa4fa0652d1ae33545675fa5f122f3965008389dcb04ff349bdd9f9694b21eb93d9c31c3104e
6
+ metadata.gz: da7627b4a7af988d51f3068110df14546fd09e9c936707686e1ff88ff5755f3ea2059cc7892ebf5b6ffe278f92fb0e0fcff69eb1081b35e3bfea1b776cbcca9b
7
+ data.tar.gz: 5c09dc020b178fb75fc1eca26e51130e9f0069fc17fdac3d27bd4b9cdc3dc1872a89ec866e9f0e3283059f313da1d732c5dbd9e2d54fdb1b3ef17590afc4bd32
@@ -94,7 +94,17 @@ module Jekyll
94
94
  @name = (index_files ? "index" : filename) + "." + extension.to_s
95
95
 
96
96
  self.process(@name)
97
- self.read_yaml(File.join(base, '_layouts'), template + ".html")
97
+
98
+ if @site.layouts[template].path.end_with? 'html'
99
+ @path = @site.layouts[template].path.dup
100
+ else
101
+ @path = File.join(@site.layouts[template].path, @site.layouts[template].name)
102
+ end
103
+
104
+ base_path = @site.layouts[template].path
105
+ base_path.slice! @site.layouts[template].name
106
+ self.read_yaml(base_path, @site.layouts[template].name)
107
+
98
108
  self.data['title'] = raw_title
99
109
 
100
110
  # add all the information defined in _data for the current record to the
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-datapage-generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adolfo Villafiorita
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-13 00:00:00.000000000 Z
11
+ date: 2021-07-02 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email:
@@ -38,7 +38,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
38
38
  - !ruby/object:Gem::Version
39
39
  version: '0'
40
40
  requirements: []
41
- rubygems_version: 3.1.2
41
+ rubygems_version: 3.0.3
42
42
  signing_key:
43
43
  specification_version: 4
44
44
  summary: Generate one page per yaml record in Jekyll sites.