lib/runeblog.rb in runeblog-0.2.27 vs lib/runeblog.rb in runeblog-0.2.28

- old
+ new

@@ -116,11 +116,11 @@ case lines.size when 0 result = nil # not found when 1 front = "#{key}: " - n = front.size + 1 + n = front.size str = lines.first.chomp[n..-1] case key when "views", "tags" # plurals result = str.split else @@ -295,11 +295,11 @@ def teaser(slug) log!(enter: __method__, args: [slug]) id = slug.to_i text = nil post_entry_name = @theme/"blog/post_entry.lt3" - xlate src: post_entry_name, dst: "/tmp/post_entry.html", debug: true + xlate src: post_entry_name, dst: "/tmp/post_entry.html" # , debug: true @_post_entry ||= File.read("/tmp/post_entry.html") vp = post_lookup(id) nslug, aslug, title, date, teaser_text = vp.nslug, vp.aslug, vp.title, vp.date, vp.teaser_text path = vp.path @@ -337,10 +337,9 @@ end def create_new_post(title, testing = false, teaser: nil, body: nil, other_views: []) log!(enter: __method__, args: [title, testing, teaser, body, other_views]) meta = nil -STDERR.puts other_views.inspect Dir.chdir(@root/:posts) do post = Post.create(title: title, teaser: teaser, body: body, other_views: other_views) post.edit unless testing post.build meta = post.meta