|
From: seanh <sea...@gm...> - 2009-07-31 19:31:34
|
Is there a better workflow when you want to preview a post before publishing it, or is pushing it to your web server and using this drafts thing in CGI mode the best approach? The only other way I can think to do it is to run a local apache server with pyblosxom installed for previewing and push the content to your remote server when it's done. On Fri, Jul 31, 2009 at 2:02 PM, will<wi...@bl...> wrote: > I think the answer here is that I didn't intend this behavior explicitly, > but it sounds ok to me. Static rendering shouldn't behave like web > rendering does. Amongst other things, it builds a static, final, public > site--it's not designed for allowing you to preview and such locally. > Writing a plugin to allow that is probably possible, but I think the > workflow is messy. > > As a side note, I don't think ignore_directories was implemented for the > purpose of drafts, but I don't remember what the primary use case was. It's > probably somewhere in the mailing list archives, I would imagine. > > /will > > > seanh wrote: >> >> I was just messing around and noticed that if I put: >> >> py["ignore_directories"] = ['drafts'] >> >> and then visit the drafts category manually (by hacking the URL), and >> I'm using pyblosxom in CGI mode, it will show me all my drafts. >> They're missing from all the indexes (front page, date-based views) >> but they show up if you visit the category directly. I don't know if >> the category would show up in the list of categories because I don't >> use that plugin. Is this the intended behaviour of ignore_directories? >> >> In static rendering mode it's different, the drafts category doesn't >> get rendered at all and you can't visit it. I got it to render an >> index view of the drafts category by adding: >> >> py["static_urls"] = ["/drafts/"] >> >> but this just renders the category index page, it doesn't render the >> pages for the posts themselves. >> >> I sort of liked that the drafts category was browsable because it >> meant I could preview my drafts, and if I wanted to keep them private >> I could always put an htaccess file. >> >> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >> 30-Day trial. Simplify your report design, integration and deployment - and >> focus on what you do best, core application coding. Discover what's new with >> Crystal Reports now. http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> pyblosxom-users mailing list >> pyb...@li... >> https://lists.sourceforge.net/lists/listinfo/pyblosxom-users >> > |