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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bba553a47ad814f379fc05e7b454227e93e43bf4b1fe2ffa2eb95b06e46bb1d9
|
4
|
+
data.tar.gz: 6aeb8866d0691fb14ff460860a7b0015f7a566042c3c56f00947cce5b691d034
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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 =
|
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.
|
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:
|
11
|
+
date: 2020-04-16 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|
15
|
-
- adolfo.villafiorita@
|
15
|
+
- adolfo.villafiorita@ict4g.net
|
16
16
|
executables: []
|
17
17
|
extensions: []
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
|
-
- lib/
|
20
|
+
- lib/jekyll-datapage-generator.rb
|
21
21
|
homepage:
|
22
22
|
licenses:
|
23
23
|
- MIT
|