From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rick Moynihan Subject: Re: Announcing org-jekyll Date: Tue, 2 Feb 2010 10:37:30 +0000 Message-ID: References: <55bd243d1001291516m2b3fe054u8da0f64edf6b8d25@mail.gmail.com> <55bd243d1002011114y1c1058an1f427aaf23efb83b@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NcG8q-0006wD-Rq for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 05:37:56 -0500 Received: from [199.232.76.173] (port=47478 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NcG8p-0006vG-HL for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 05:37:56 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NcG8n-0007q8-Ib for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 05:37:55 -0500 Received: from mail-ww0-f41.google.com ([74.125.82.41]:60173) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NcG8n-0007pv-26 for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 05:37:53 -0500 Received: by wwb29 with SMTP id 29so901770wwb.0 for ; Tue, 02 Feb 2010 02:37:52 -0800 (PST) In-Reply-To: <55bd243d1002011114y1c1058an1f427aaf23efb83b@mail.gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Juan Reyero Cc: org-mode Mailing List Replies inline below: On 1 February 2010 19:14, Juan Reyero wrote: > On Mon, Feb 1, 2010 at 12:23 PM, Rick Moynihan = wrote: >> On 29 January 2010 23:16, Juan Reyero wrote: >>> Full description: http://juanreyero.com/open/org-jekyll/ >>> Source code: http://github.com/juanre/org-jekyll >> >> I'm not entirely clear on how the org-publish-project-alist relates to >> org-jekyll and org-jekyll-export-blog? =A0What do you need to do to set >> this up, other than annotate headlines with :blog: keywords and :on: >> properties? > > You set it up so that the files that contain blog entries belong to an > org-publish project, as described for example in > http://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.php > > The idea is that you might want to combine a blog with a bunch of > org-published files, as I do in http://juanreyero.com and > http://greaterskies.com, and you shouldn't have to spend too much time > separating the two things. =A0So it boils down to defining your > org-publish-project-alist. =A0Then you open a file that belongs to the > project and do org-jekyll-export-blog or > org-jekyll-export-current-entry, depending on what you need. Yes, I like this flexibility. >> I've found that calling org-jekyll-export-blog, seems to do nothing... > > It should, if the file from which you are calling is part of an > org-publish project, and there are entries with the :blog: tag and the > :on: property. Ok, it turns out that there were several problems I had... After some time in the emacs debugger, it turned out that the default values for org-jekyll-category and org-jekyll-localize-dir are non-nil... which was causing the _posts/ directory to be set to a directory that doesn't exist. Overriding these to nil fixed the first problem. The second problem was that my tags and property keys are all in uppercase, yet org-jekyll only works for lower-case keys. I seem to be up and running with it for now... I just need to modify my setup a bit more to account for the changes... But this definitely seems a lot less hacky than the happyblogger setup I was playing with!! I think setting both of those vars to default to nil would make sense... As I'd imagine people would probably want to start with a minimal config/setup and grow into the more advanced multi-lingual features you have. Also it would be nice for org-jekyll-export-blog to fail with an error, rather than just dying silently. Alternatively even better might be for it to construct the _post and category directories it needs if they don't already exist.... Great work though!!!! I've been waiting for something like this for years!!! (Though I'm also a tiny bit dissapointed that you stole my march; as I was looking forward to learning a bit more Emacs Lisp and reworking happyblogger into something like this).... But again, thanks a bunch this is a valuable addition to the org community! -- Rick Moynihan http://twitter.com/RickMoynihan http://delicious.com/InkyHarmonics http://sourcesmouth.co.uk/