lib/runeblog.rb in runeblog-0.2.60 vs lib/runeblog.rb in runeblog-0.2.61

- old
+ new

@@ -329,15 +329,15 @@ log!(enter: __method__, args: [slug], level: 2) id = slug.to_i text = nil @theme = @view.dir/"themes/standard" post_entry_name = @theme/"blog/post_entry.lt3" -STDERR.puts "-- @pename = #{post_entry_name}" -STDERR.puts "-- @pe = #{@_post_entry.inspect}" +# STDERR.puts "-- @pename = #{post_entry_name}" +# STDERR.puts "-- @pe = #{@_post_entry.inspect}" depend = [post_entry_name] xlate src: post_entry_name, dst: "/tmp/post_entry.html" # , deps: depend # , debug: true -STDERR.puts "-- xlate result: #{`ls -l /tmp/post_entry.html`}" +# STDERR.puts "-- xlate result: #{`ls -l /tmp/post_entry.html`}" @_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 @@ -373,19 +373,21 @@ <html> <head><link rel="stylesheet" href="etc/blog.css"></head> <body> HTML posts = _sorted_posts +STDERR.puts "Posts = " +posts.each {|x| STDERR.puts " " + x } wanted = [8, posts.size].min # estimate how many we want? enum = posts.each entries = [] wanted.times do postid = File.basename(enum.next) postid = postid.to_i -STDERR.puts "-- postid = #{postid}" +# STDERR.puts "-- postid = #{postid}" # posts.each {|x| STDERR.puts " #{x}" } entry = index_entry(postid) -STDERR.puts "-- entry = #{entry.inspect}" +# STDERR.puts "-- entry = #{entry.size} chars" entries << entry text << entry end text << "</body></html>" File.write(@vdir/:remote/file, text)