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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a7894e94fa820b11421dcce694958d9c8197d361
4
- data.tar.gz: f0e586c278272064b03b94bb6a651813cd5153ea
3
+ metadata.gz: 2d2365de26c869d52668266b96e1207f1f42a32b
4
+ data.tar.gz: 4fbbfb33b1343ee235a990cdccb573748f885b6a
5
5
  SHA512:
6
- metadata.gz: 86dd60baece0e4bbc74295f57d314b809d46433a52be9e2ad4951f59c6ac1be5262f36d852e8ed5c5a27c2b480be59de3dba7b3fbeee76692a2e34c1de43f33b
7
- data.tar.gz: 4025e5f783f3057f730168f68f0cb89db2b7f4a908de0af8640cd6bcc326c23157df794fb3bd772cb25d27109ef86172bf369ed0119552f6180be34b4ffd0cd5
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?
@@ -1,3 +1,3 @@
1
1
  module Siteleaf
2
- VERSION = "1.0.4"
2
+ VERSION = "1.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: siteleaf
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Siteleaf