siteleaf 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/siteleaf/page.rb +1 -1
- data/lib/siteleaf/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d2365de26c869d52668266b96e1207f1f42a32b
|
4
|
+
data.tar.gz: 4fbbfb33b1343ee235a990cdccb573748f885b6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ac3544dd25ea4164ac7f43793ec4e5f9d7a5954e104e10def862f382d175b8db88c3df62022d2c2fafb9af51653613a9d3fc011af37a714a5c9a7beacd79f3a
|
7
|
+
data.tar.gz: d3d4df207acab9c1f044b608ada5fe5edb8fab57a2d197237e5b7723d1c14fba56c8c7af4d9090c9e59ccbd1a31a078b0f4fa6cc9eb7ea0ba64926ca04fe05eb
|
data/lib/siteleaf/page.rb
CHANGED
@@ -46,7 +46,7 @@ module Siteleaf
|
|
46
46
|
def frontmatter
|
47
47
|
attrs = {}
|
48
48
|
attrs['title'] = title
|
49
|
-
attrs['date'] = Time.parse(published_at).utc
|
49
|
+
attrs['date'] = Time.parse(published_at).utc if published_at
|
50
50
|
attrs['published'] = false if !published?
|
51
51
|
|
52
52
|
meta.each{|m| attrs[m['key']] = m['value'].to_s == '' ? nil : m['value'].to_s.gsub("\r\n","\n")} unless meta.nil?
|
data/lib/siteleaf/version.rb
CHANGED