jekyll-asciidoc 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 +4 -4
- data/lib/jekyll-asciidoc.rb +6 -8
- data/lib/jekyll-asciidoc/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 70e3a563b71258539aec7af2a1b3f54f23ee28e2
|
4
|
+
data.tar.gz: 92794e6be1f68a919b7f668c38420c37cba94194
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51b0b989d383316e56321c136da7a39fd7ff6356b5c22751a21803427d43b10f120395fd4660fd1e858eb0f2b01006fff0be13d552f3fb6d0577e480ba2ea0ab
|
7
|
+
data.tar.gz: 9cc3b1abf6401faa525fa5073274b5d7de840608cf894d4c5703eb53913afac970aac15c25bc3ea26f4f05920732523ea41317a811555d5542b3486bc93a99ba
|
data/lib/jekyll-asciidoc.rb
CHANGED
@@ -103,11 +103,10 @@ module Jekyll
|
|
103
103
|
page.data['title'] = doc.doctitle if doc.header?
|
104
104
|
page.data['author'] = doc.author if doc.author
|
105
105
|
|
106
|
-
unless (
|
106
|
+
unless (adoc_front_matter = doc.attributes
|
107
107
|
.select {|name| name.start_with?(page_attr_prefix) }
|
108
|
-
.map {|name, val| %(#{name[page_attr_prefix_l..-1]}: #{val}) }
|
109
|
-
|
110
|
-
page.data.update(additional_page_data)
|
108
|
+
.map {|name, val| %(#{name[page_attr_prefix_l..-1]}: #{val}) }).empty?
|
109
|
+
page.data.update(SafeYAML.load(adoc_front_matter * "\n"))
|
111
110
|
end
|
112
111
|
|
113
112
|
page.data['layout'] = 'default' unless page.data.key? 'layout'
|
@@ -122,11 +121,10 @@ module Jekyll
|
|
122
121
|
post.data['author'] = doc.author if doc.author
|
123
122
|
post.data['date'] = DateTime.parse(doc.revdate).to_time if doc.attr? 'revdate'
|
124
123
|
|
125
|
-
unless (
|
124
|
+
unless (adoc_front_matter = doc.attributes
|
126
125
|
.select {|name| name.start_with?(page_attr_prefix) }
|
127
|
-
.map {|name, val| %(#{name[page_attr_prefix_l..-1]}: #{val}) }
|
128
|
-
|
129
|
-
post.data.update(additional_page_data)
|
126
|
+
.map {|name, val| %(#{name[page_attr_prefix_l..-1]}: #{val}) }).empty?
|
127
|
+
post.data.update(SafeYAML.load(adoc_front_matter * "\n"))
|
130
128
|
end
|
131
129
|
|
132
130
|
post.data['layout'] = 'post' unless post.data.key? 'layout'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-asciidoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Allen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciidoctor
|