lib/post.rb in runeblog-0.1.50 vs lib/post.rb in runeblog-0.1.51

- old
+ new

@@ -95,12 +95,15 @@ @blog.make_slug(meta) # adds to meta @meta = meta end def create_draft + viewhome = @blog.view.publisher.url +print "HOME = " +p viewhome html = RuneBlog.post_template(title: @meta.title, date: @meta.pubdate, view: @meta.view, teaser: @meta.teaser, body: @meta.body, - views: @meta.views, tags: @meta.tags) + views: @meta.views, tags: @meta.tags, home: viewhome) srcdir = "#{@blog.root}/src/" verify(Dir.exist?(srcdir) => "#{srcdir} not found", @meta.slug.is_a?(String) => "slug #{@meta.slug.inspect} is invalid") fname = @meta.slug + ".lt3" @draft = srcdir + fname