sites with URL paths
William Morgan
wmorgan-hobix-is-the-way at masanjin.net
Thu Sep 16 12:47:45 EDT 2004
Dear _why,
In order to make the Hobix work with a site that has a path component in
its base URL (e.g. http://www.www.www/path/), I had to make two changes:
1) in hobix.yaml:
requires:
-
hobix/out/quick:
css: "@import \"<%= weblog.link %>/site.css\";"
(don't know why that newline always shows up after the '-')
2) in lib/local.rb, I had to change the SSI reference to sidebar.html to
its actual location on disk.
It might be worth moving (1) to the default Quick template. I'm not sure
what to do about (2), as the server (apache, in my case) wants a path
relative to the server root location on disk, which I don't think Hobix
stores explicitly. It'd be nice for the default setup to work out-of-the-
box independent of what the base URL looks like.
Also, if 'link:' in hobix.yaml doesn't end with a slash, the individual
entry links come out wrong. I modified storage/filesys.rb to double-
check its path, but maybe I should've added a 'link' method to Weblog
instead.
I like the template inheritance though.
--
William <wmorgan-hobix-is-the-way at masanjin.net>
More information about the Hobix-is-the-way
mailing list