Re: variables
Keywan Najafi Tonekaboni <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, Steven Armstrong wrote: | See the attached file w3cdate.py. It's a hacked version of Ted's plugin | that does what you want. It creates the following variables: | head/foot templates: | $lastmodified_w3cdate | $lastmodified_rfc822date very cool, thanx! | | story templates: | $w3cdate | $rfc822date | | You'll want w3c dates for atom and rfc822 dates for rss2. | You won't see my dirty hack in the flavour instead of the python code ;-) |>Also it would be cool to have $blog_author divided in $blog_author_name |>and $blog_author_mail. |> | | You can define your own variables in config.py to do this. | Something like: | py['blog_author'] = "The authors name" | py['blog_email'] = "[email protected]" | which are then available in templates as | $blog_author resp. $blog_email Ok, I don't thought about this solution, because I want keep my flavour compatible with the official release. I will use it, but an "official" variable would be better. |>The same problem i have with the title_ $blog_title contains also the |>file path. It would be nice, when $blog_title only contains the name of |>the blog. An additional $blog_title_path or so contains the ": /absolute |>_path" could be an alternative. |> | | I also didn't like this behaviour. Again you can use a custom variable | for this. | e.g: | py['blog_name'] = "This will not be changed by pyblosxom" | which becomes $blog_name in templates | | |>I know the advantage of a detailed $blog_title and also tried to use it |>for <title /> . |>But it is also IMHO not beatiful, that $blog_title contains |>"foo : bar/hello_world.html" when i view the entry hello_world.html in |>the category bar from the blog called "foo". |>If it would use the $title it would be better to read. |> | | | http://bitworking.org/news/Titles_Matter_for_PyBlosxom very interesting, i will try it. Thanks for the fast feedback Regards, Keywan - -- Keywan Najafi Tonekaboni http://www.prometoys.net PGP Fingerprint: D5A1 A22E 3758 C9B4 57D2 3CAF EE52 1A78 C6A0 6934 people@world:/# apt-get --purge remove capitalism After unpacking world will be freed. You are about to do something potentially beneficial To continue type in the phrase 'Yes, do as We say!' -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCH5dP7lIaeMagaTQRAhX7AKCkf2z2V3ABVuZYjqwWyOlAuPXQMgCfTY89 d06WSOfGM046eNKi4fuRiAY= =Jm2j -----END PGP SIGNATURE----- ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click