Templates?

Giulio Piancastelli gpian at softhome.net
Wed Sep 22 17:47:14 EDT 2004


why the lucky stiff wrote:

>> But now I'm absolutely puzzled! I'd like to change the default 
>> templates, but every file in my weblog/htdocs/skel directory and every 
>> file in my /usr/local/share/hobix/default-blog/skel has a 0 size! :O 
>> Should templates be supposed to be contained in those files?!? Where 
>> is hobix picking up the templates it's now using to render my weblog?
> 
> When a template has no content, that means the default template for that 
> type is used.  You customize templates by adding data to the file.

OK, so the answer is: under your site_ruby/1.8/ directory, in the 
hobix/out/quick.rb file. Fine (with a little help from grep).

I wanted to know that because I believe there's an HTML bug in those 
default templates, in particular in the methods defining the archive 
sidebar, the syndicate sidebar, and the css.

In fact, every link produced by those methods begin with a slash. It 
seems that under Apache (both 1.3 under Linux and 2.0 under Windows) 
those links are resolved directly against the root of the URL, which is 
fine if your weblog is located at, for example, http://www.example.com, 
but prevents CSS to be loaded and mess up links if your weblog is 
located at, say, http://www.example.com/path/to/my/blog/. In the latter 
case, in fact, importing /site.css and linking to /index.xml resolves to 
www.example.com/site.css instead of 
www.example.com/path/to/my/blog/site.css and www.example.com/index.xml 
instead of www.example.com/path/to/my/blog/index.xml.

Since we're speaking about bugs, I also noticed that the 'hobix' script 
was installed without execution permissions under Linux. (I'm talking 
about yesterday's hobix 0.2b, now I notice that the version I'm running 
is 0.2c, so maybe that has been fixed, but I am now under Windows, so I 
really can't tell.) The installation seems to be a chmod+x away from 
complete automation, then.

Best Regards,
Giulio Piancastelli.



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