From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Babel for blogging Date: Fri, 15 Oct 2010 14:32:50 -0600 Message-ID: <87lj5z5h8t.fsf@gmail.com> References: <87y69zqw20.fsf@univ-nantes.fr> <87ocavfkqu.fsf@gmail.com> <4CB89311.1060504@quintanasegui.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=37892 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P6qxX-0002k5-Dh for emacs-orgmode@gnu.org; Fri, 15 Oct 2010 16:33:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P6qxW-0005Ax-4B for emacs-orgmode@gnu.org; Fri, 15 Oct 2010 16:32:59 -0400 Received: from mail-px0-f169.google.com ([209.85.212.169]:47657) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P6qxV-0005Ar-UV for emacs-orgmode@gnu.org; Fri, 15 Oct 2010 16:32:58 -0400 Received: by pxi6 with SMTP id 6so402545pxi.0 for ; Fri, 15 Oct 2010 13:32:56 -0700 (PDT) In-Reply-To: <4CB89311.1060504@quintanasegui.com> ("Pere Quintana =?utf-8?Q?Segu=C3=AD=22's?= message of "Fri, 15 Oct 2010 19:44:49 +0200") 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: Pere Quintana =?utf-8?Q?Segu=C3=AD?= Cc: emacs-orgmode@gnu.org this approach might be less appropriate for RSS, mainly because code block output is most easily contained in an Org-mode file, and then exported along with the rest of the file. RSS files require special headers and footers and can not be embedded in a standard html file, you may be better off looking for an external tool to handle the generation of RSS content. Best -- Eric Pere Quintana Segu=C3=AD writes: > Thanks for the tip Eric, I'll use it to create a sitemap for my site, > which is made using org-mode. > > Do you know if it would be possible to create an RSS file, using a > similar approach? > > Thanks, > > Pere > > Al 15/10/10 19:07, En/na Eric Schulte ha escrit: >> Hi Manuel, >>=20 >> The following works for me, it creates an index of all files in the same >> directory as the Org-mode file. >>=20 >> --8<---------------cut here---------------start------------->8--- >> * index >>=20 >> Create an index automatically with an elisp code block. >>=20 >> #+begin_src emacs-lisp :exports results :results raw >> (mapconcat >> (lambda (file) >> (unless (file-directory-p file) >> (format "- [[%s][%s]]" (file-name-sans-extension file) file))) >> (directory-files (or default-directory >> (file-name-directory (buffer-file-name)))) >> "\n") >> #+end_src >> --8<---------------cut here---------------end--------------->8--- >>=20 >> Does this solve your requirement? >>=20 >> Cheers -- Eric >>=20 >> Manuel Giraud writes: >>=20 >>> Hi,=20 >>> >>> I'd like to set up a simple blog (with static page only) using emacs. So >>> far, I was able to use emacs-muse based on the following instructions: >>> http://alexott.net/en/writings/EmacsMuseMyPage.html >>> http://www.diale.org/muse-functions.html >>> >>> Now, I'd like to give org-publish a try because it seems to provide nice >>> features (and i'm already using org-mode as an agenda anyway). So far >>> so good I can publish entries, but I can't find a way to produce an >>> index of all the entries sorted by date. >>> >>> With muse, i created a file with a block to call the >>> function muse-index-as-string-sort-by-date and this call insert the >>> updated index in place. >>> >>> Now I'd like to do something similar using org-mode babel feature, but >>> if i try this: >>> ---8<----- >>> #+BEGIN_SRC emacs-lisp :results output :exports results >>> (list "[[bar][1]]" "[[foo][2]]") >>> #+END_SRC >>> ---8<----- >>> >>> The content appears as a code snippet in the html export which is not >>> exactly what I want. How can I do this? Am I misleaded because >>> org-publish already provide this? >>=20 >> _______________________________________________ >> Emacs-orgmode mailing list >> Please use `Reply All' to send replies to the list. >> Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode