sites with URL paths

why the lucky stiff why at hobix.com
Fri Sep 17 09:31:46 EDT 2004


More.  Great, Wm.

William Morgan wrote:

>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\";"
>  
>
Good.  This is changed.  And others throughout lib/hobix/out/quick.rb.

>(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.
>  
>
This just needs to use <%= weblog.output_path %>, which is the path to 
the doc root.

>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.
>
Yeah, this should change in storage/filesys.rb.  That way we accomodate 
for users for who to override Hobix::Weblog and may have their own ways 
of generating the @link field which may not end with a slash.

>
>I like the template inheritance though.
>
>  
>
Yes-s-s.. Cool, killer work.  A new 0.2d is up, but I still have to take 
time to fix the installation bugs.  Later today.

_why



More information about the Hobix-is-the-way mailing list