jekyll-datapage-generator 1.1.0 → 1.2.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: dd656bd560804fca9c7b91ea7e0c159c81f5f11141bf8676f5220888bd5578d8
4
- data.tar.gz: 1acd71d085732fc14a01a27cceba319a20f8242ff38394b0befb262becc01782
3
+ metadata.gz: bba553a47ad814f379fc05e7b454227e93e43bf4b1fe2ffa2eb95b06e46bb1d9
4
+ data.tar.gz: 6aeb8866d0691fb14ff460860a7b0015f7a566042c3c56f00947cce5b691d034
5
5
  SHA512:
6
- metadata.gz: 574d968b486c7df5804ad9c0380d4f60a11e4234f18a2312ad6b36fedcd4cf0174756403f50fc5032baada3fa28992e37e3c9b37880e66b905efaf0077781c7d
7
- data.tar.gz: 4c8695db1c702817bd345e43c062b6b1dc93192275d0f1a8f0696c3d3ade1fe67ce104a093f9f68215ebf1cdf2455fd6fcc6c77f7480a6691ec85e7f92cd3878
6
+ metadata.gz: 491b6c004362ee4e46eb7c9ac6165cd7c7c72b7b10250cf8a6a25207e8cf7a31906c8faa41c45ec07d6728d64e1d3b7aa3a1d0490c2f96d9eb83477c9c7b8fe4
7
+ data.tar.gz: 02bb49160d57ea8c93d567c20413080420f4295cea46c491b36aca93e25b7d71d0bb37cdcfaec256a8c076c316479d64f957ed3e64384e026f6e32c09b710018
@@ -75,10 +75,10 @@ module Jekyll
75
75
  end
76
76
  end
77
77
 
78
- class DataPagesGenerator < Generator
78
+ class JekyllDatapageGenerator < Generator
79
79
  safe true
80
80
 
81
- # generate loops over _config.yml/page_gen invoking the DataPage
81
+ # the function ~generate~ loops over _config.yml/page_gen invoking the DataPage
82
82
  # constructor for each record for which we want to generate a page
83
83
 
84
84
  def generate(site)
@@ -147,7 +147,7 @@ module Jekyll
147
147
  # Thus, if you use the `extension` feature of this plugin, you
148
148
  # need to generate the links by hand
149
149
  def datapage_url(input, dir)
150
- extension = Jekyll.configuration({})['page_gen-dirs'] ? '/' : '.html'
150
+ extension = @context.registers[:site].config['page_gen-dirs'] ? '/' : '.html'
151
151
  "#{dir}/#{sanitize_filename(input)}#{extension}"
152
152
  end
153
153
  end
metadata CHANGED
@@ -1,23 +1,23 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-datapage-generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.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: 2019-12-09 00:00:00.000000000 Z
11
+ date: 2020-04-16 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email:
15
- - adolfo.villafiorita@fbk.eu
15
+ - adolfo.villafiorita@ict4g.net
16
16
  executables: []
17
17
  extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
- - lib/data_page_generator.rb
20
+ - lib/jekyll-datapage-generator.rb
21
21
  homepage:
22
22
  licenses:
23
23
  - MIT