Re: New default flavor?

chombee <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.devel
Message-ID <1182776370.9344.11.camel@marley-20>
On Thu, 2007-05-24 at 18:26 +0100, chombee wrote:
> So I thought it might be nice to have a default flavor that was plain
> and simple but still pleasant enough that people might use it, and could
> get blogging happily right away.
> 
> I've had a go at making such a flavor (attached).

(I'd at least like to finish this so I could contribute it to the flavor
registry).

I've done some more work on this:

http://seanh.freeshell.org/public/pyblosxom/pyblosxom.cgi

improved the general layout and the vertical spacing, made it XHTML and
CSS compliant, separated the CSS from the HTML. The HTML and CSS is
getting more complicated now. Looks nicer though. It sort of depends a
lot on what fonts you have installed -- I've noticed it looks pretty
different from computer to computer, and when using blackbox or GNOME,
just because the fonts are different. I didn't do much with fonts in the
CSS, because I don't know what I'm doing. Any suggestions? So far I have
put only:

font-family: 'Lucida Grande',Arial,sans-serif;

in body, and apart from setting different font sizes and font weights,
that's all I've done.

The main problem I need help with right now is how to link to images and
stylesheets from flavor templates? It's hard to make a relative link,
cause you don't know where you'll be linking from, e.g. pyblosxom.cgi/
or pyblosxom.cgi/2007/June/ etc. You don't even know that the script
will be called pyblosxom.cgi. So although I've got the CSS and images
working on the front page, once you follow a link to another part of the
blog they break. And you can't put images and CSS files in the flavor
folder, because that might not be a web accessible folder. I didn't find
a solution to this in the template variables provided by pyblosxom. So
what do you do?

I'm also having trouble putting permalinks to individual stories in the
story template. I'm using <a
href="pyblosxom.cgi/$file_path_urlencoded.$flavour"> but that hardcodes
"pyblosxom.cgi". Again, didn't see any template variable in config.py.

Any help?

Thanks



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.