From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?Pere_Quintana_Segu=ED?= Subject: Re: Babel for blogging Date: Fri, 15 Oct 2010 19:44:49 +0200 Message-ID: <4CB89311.1060504@quintanasegui.com> References: <87y69zqw20.fsf@univ-nantes.fr> <87ocavfkqu.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1132970454==" Return-path: Received: from [140.186.70.92] (port=40685 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P6oL9-00063X-LE for emacs-orgmode@gnu.org; Fri, 15 Oct 2010 13:45:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P6oL0-0005xb-EG for emacs-orgmode@gnu.org; Fri, 15 Oct 2010 13:45:03 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:59984) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P6oL0-0005wA-9s for emacs-orgmode@gnu.org; Fri, 15 Oct 2010 13:45:02 -0400 Received: by wyf28 with SMTP id 28so1203175wyf.0 for ; Fri, 15 Oct 2010 10:45:00 -0700 (PDT) In-Reply-To: <87ocavfkqu.fsf@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: emacs-orgmode@gnu.org This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --===============1132970454== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig4CFD9152AEA51F2D383B90C1" This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig4CFD9152AEA51F2D383B90C1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 sam= e > 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 ni= ce >> 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 --=20 http://pere.quintanasegui.com --------------enig4CFD9152AEA51F2D383B90C1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFMuJMVp403bl4IyIARAlXLAKCDrd+qh9Gv3fjjxJxky4Dz5djemQCgve/6 5Aa1af+R790fKc7Z5C2RKjw= =hyIU -----END PGP SIGNATURE----- --------------enig4CFD9152AEA51F2D383B90C1-- --===============1132970454== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============1132970454==--