Re: How to call a separate css file within a flavor
"Jennifer Redman" <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
Thank you very much for the help. Edgar, I'm actually hitting the very problem you referenced. The style-sheet is not being applied to the archives. Here is what I did: In config.py I defined this variable: py["cssurl"] = "/path/to/stylesheet" and then added the reference to the top of the head.x file: <link href="$cssurl" type="text/css" rel="stylesheet"/><style type="text/css"> Works great for the main page -- archives - no style. Is there anywhere that I can just define this variable once and have it apply to the entire site? Including new plugins? (of course may need to add new classes or #'s etc. to the css)? Perhaps I need to create a archive template and add stylesheet info there? Or can I just add the py['archive_template'] = "$cssurl" to the config.pyfile? Thanks, Jen On 5/21/07, Edgar Luna <[email protected]> wrote: > > Hi > > On 5/18/07, Jennifer Redman <[email protected]> wrote: > > Hello pyblosxom-users! > > > > I'm new to pyblosxom (and python) -- testing out as a way to escape the > > php/mysql world of CMS/blog software. > > > > I'm integrating a blog into my static site and would like to be able to > > update the look and feel for everything at once if I wanted to change. > > > > I'd like to have separate css files within a flavor or better yet in a > style > > directory -- all the examples I've seen seem to either include the css > in > > the head.x file or drops it into the datadir. > > > > My question: > > > > Where do I put the reference to the location of the .css file for a > > particular flavor? Does this go in the head file? And if so can someone > > give me a sample line that calls a separate stylesheet? > > > > My blog is down at this moment but In the head.x you only link to the > css file, the possible issue here is that you need to consider that > this file is relative to the site location, no the archives or > pyblosxom directory. In my case I have pyblosxom/ dir (for the actual > python code), blog/ dir (with my entries) and public_html/ dir (with > my home), then I have public_html/blog.css so I use <link > href="~/myuser/blog.css" type="text/css" /> > > Not sure if this is what you want, regards > > -- > Edgar A. Luna > ------------------------------------------------------------------------- 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/ _______________________________________________ pyblosxom-users mailing list pyblosxom-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/pyblosxom-users