jekyll-optional-front-matter 0.3.0 → 0.3.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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 6eeefc377af0eae52b1381c3643ea84433db2b9252cd12a0bc51c30e9ab9b5a6
|
4
|
+
data.tar.gz: dc59a912c8a92f3ad171d57b274439aa828c727ba0336edb2cd3de550606bcd3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f3d07a3e1b3b8ca641169ff3c1ecef1c0e5c4b291b8aac6e41c8a88d4b572b10307d557ec4bacf2f25b7574997c637e46e8efdd20a4f1b5f458520350b31471
|
7
|
+
data.tar.gz: 58d5eeb9184d60a222c0a00082a9c0ebc1e19039aaa983a95240f07c7687f4fa63e0fbf991f897dcd085227514fc84ec781b5590540557d1626084bc71795493
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module JekyllOptionalFrontMatter
|
2
4
|
class Generator < Jekyll::Generator
|
3
5
|
attr_accessor :site
|
@@ -5,9 +7,9 @@ module JekyllOptionalFrontMatter
|
|
5
7
|
safe true
|
6
8
|
priority :normal
|
7
9
|
|
8
|
-
CONFIG_KEY = "optional_front_matter"
|
9
|
-
ENABLED_KEY = "enabled"
|
10
|
-
CLEANUP_KEY = "remove_originals"
|
10
|
+
CONFIG_KEY = "optional_front_matter"
|
11
|
+
ENABLED_KEY = "enabled"
|
12
|
+
CLEANUP_KEY = "remove_originals"
|
11
13
|
|
12
14
|
def initialize(site)
|
13
15
|
@site = site
|
@@ -16,6 +18,7 @@ module JekyllOptionalFrontMatter
|
|
16
18
|
def generate(site)
|
17
19
|
@site = site
|
18
20
|
return if disabled?
|
21
|
+
|
19
22
|
site.pages.concat(pages_to_add)
|
20
23
|
site.static_files -= static_files_to_remove if cleanup?
|
21
24
|
end
|
@@ -53,11 +56,13 @@ module JekyllOptionalFrontMatter
|
|
53
56
|
# Does the given Jekyll::Page match our filename blacklist?
|
54
57
|
def blacklisted?(page)
|
55
58
|
return false if whitelisted?(page)
|
59
|
+
|
56
60
|
FILENAME_BLACKLIST.include?(page.basename.upcase)
|
57
61
|
end
|
58
62
|
|
59
63
|
def whitelisted?(page)
|
60
64
|
return false unless site.config["include"].is_a? Array
|
65
|
+
|
61
66
|
entry_filter.included?(page.relative_path)
|
62
67
|
end
|
63
68
|
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-optional-front-matter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Balter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '3.0'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '5.0'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: '3.0'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '5.0'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: rspec
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,14 +50,28 @@ dependencies:
|
|
44
50
|
requirements:
|
45
51
|
- - "~>"
|
46
52
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0.
|
53
|
+
version: '0.71'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - "~>"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0.71'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: rubocop-jekyll
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - "~>"
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0.10'
|
48
68
|
type: :development
|
49
69
|
prerelease: false
|
50
70
|
version_requirements: !ruby/object:Gem::Requirement
|
51
71
|
requirements:
|
52
72
|
- - "~>"
|
53
73
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0.
|
74
|
+
version: '0.10'
|
55
75
|
description:
|
56
76
|
email:
|
57
77
|
- ben.balter@github.com
|
@@ -81,8 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
81
101
|
- !ruby/object:Gem::Version
|
82
102
|
version: '0'
|
83
103
|
requirements: []
|
84
|
-
|
85
|
-
rubygems_version: 2.6.11
|
104
|
+
rubygems_version: 3.0.6
|
86
105
|
signing_key:
|
87
106
|
specification_version: 4
|
88
107
|
summary: A Jekyll plugin to make front matter optional for Markdown files
|