lib/runeblog.rb in runeblog-0.1.74 vs lib/runeblog.rb in runeblog-0.1.75
- old
+ new
@@ -164,25 +164,26 @@
up = Dir.pwd
Dir.chdir(vdir)
x = RuneBlog::Default
create_dir('themes')
-# create_dir("local")
create_dir("generated")
create_dir('assets')
Dir.chdir("themes") { system("tar zxvf #{GemData}/standard.tgz 2>/dev/null") }
+ system("cp themes/standard/blog/assets/* assets/")
+
pub = "user: xxx\nserver: xxx\ndocroot: xxx\npath: xxx\nproto: xxx\n"
dump(pub, "publish")
# Add to global.lt3 here? FIXME
view = RuneBlog::View.new(arg)
self.view = view
vdir = self.view.dir
dir0 = "#{vdir}/themes/standard/blog"
- dir1 = "#{vdir}/generated/blog"
+ dir1 = "#{vdir}/generated"
system("livetext #{dir0}/generate.lt3 >#{dir1}/index.html 2>#{dir1}/index.err")
dump("Initial creation", "last_published")
Dir.chdir(up)
@views << view
@views
@@ -275,10 +276,10 @@
debug "=== generate_index view = #{view.to_s}"
raise ArgumentError unless view.is_a?(String) || view.is_a?(RuneBlog::View)
vdir = self.view.dir
dir0 = "#{vdir}/themes/standard/blog"
- dir1 = "#{vdir}/generated/blog"
+ dir1 = "#{vdir}/generated"
system("livetext #{dir0}/generate.lt3 >#{dir1}/index.html 2>#{dir1}/index.err")
rescue => err
error(err)
exit
end