Hi again,

After doing regen (on windows), it seemed that the link to the @import
site.css in my html files was wrong (looked like a local dir rather than
url).

It's because File.expand_path on my windows box returns a path that
includes the drive letter at the beginning... (Z:/projects/blog/...)

Doing this in Weblog.expand_path fixes it:

# Translate paths, relative to the Weblog's URL
def expand_path( path )
  File.expand_path( path.gsub( /^\/+/, '' ), self.link.path + "/"
).gsub(/^[A-Z]:/, '')
end

Thought I'd let you know.

Cheers,
Ernesto.


_______________________________________________
Hobix-is-the-way mailing list
[EMAIL PROTECTED]
http://rubyforge.org/mailman/listinfo/hobix-is-the-way

Reply via email to