diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/blog.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/blog.rb b/lib/blog.rb index fe552e5..656f815 100644 --- a/lib/blog.rb +++ b/lib/blog.rb @@ -1,7 +1,7 @@ require 'date' def parse_post filename - file_raw = File.read(src filename).force_encoding('UTF-8').split('---') + file_raw = File.read(src filename).split('---') post = YAML.load file_raw[0] post['date'] = DateTime.parse(post['date']) |