middleman-blog 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/middleman-blog/feature.rb +2 -2
- data/lib/middleman-blog/version.rb +1 -1
- metadata +7 -7
@@ -62,7 +62,7 @@ module Middleman
|
|
62
62
|
articles = Dir[articles_glob].map do |article|
|
63
63
|
template_content = File.read(article)
|
64
64
|
data, content = app.parse_front_matter(template_content)
|
65
|
-
data["date"] = Date.parse(data[
|
65
|
+
data["date"] = Date.parse("#{data['date']}")
|
66
66
|
|
67
67
|
data["raw"] = content
|
68
68
|
data["url"] = article.gsub(app.views, "").split(".html").first + ".html"
|
@@ -117,7 +117,7 @@ module Middleman
|
|
117
117
|
end
|
118
118
|
|
119
119
|
def current_article_date
|
120
|
-
DateTime.parse(current_article_metadata.date)
|
120
|
+
DateTime.parse("#{current_article_metadata.date}")
|
121
121
|
end
|
122
122
|
|
123
123
|
def current_article_title
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman-blog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 5
|
10
|
+
version: 0.1.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Thomas Reynolds
|
@@ -15,10 +15,12 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-12-10 00:00:00 -08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
|
+
prerelease: false
|
23
|
+
type: :development
|
22
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
23
25
|
none: false
|
24
26
|
requirements:
|
@@ -28,10 +30,8 @@ dependencies:
|
|
28
30
|
segments:
|
29
31
|
- 0
|
30
32
|
version: "0"
|
31
|
-
version_requirements: *id001
|
32
33
|
name: rake
|
33
|
-
|
34
|
-
type: :development
|
34
|
+
version_requirements: *id001
|
35
35
|
description: A blog foundation using Middleman
|
36
36
|
email:
|
37
37
|
- me@tdreyno.com
|