lib/view.rb in runeblog-0.1.70 vs lib/view.rb in runeblog-0.1.71
- old
+ new
@@ -21,20 +21,24 @@
def dir
@blog.root + "/views/#@name/"
end
+ def local_index
+ dir + "/generated/blog/index.html"
+ end
+
def index
dir + "index.html"
end
def to_s
@name
end
def publishable_files
vdir = dir()
- files = [index()]
+ files = [local_index()]
others = Dir.entries(vdir).grep(/^\d\d\d\d/).map {|x| "#{vdir}/#{x}" }
assets = Dir.entries("#{vdir}/assets") - %w[. ..]
assets.map! {|x| "#{vdir}/assets/#{x}" }
assets.reject! {|x| File.directory?(x) }
# assets.reject! {|x| ! recent?(x) }