From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tony Day Subject: Re: "What's new" in an orgmode based website Date: Sat, 8 Dec 2012 14:13:18 +1100 Message-ID: References: <20121206004952.GA8913@panahar> Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:37696) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ThAr1-0000QG-DH for emacs-orgmode@gnu.org; Fri, 07 Dec 2012 22:13:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ThAr0-0001Rk-7K for emacs-orgmode@gnu.org; Fri, 07 Dec 2012 22:13:27 -0500 Received: from mail-pa0-f41.google.com ([209.85.220.41]:46536) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ThAr0-0001Rf-0s for emacs-orgmode@gnu.org; Fri, 07 Dec 2012 22:13:26 -0500 Received: by mail-pa0-f41.google.com with SMTP id bj3so871190pad.0 for ; Fri, 07 Dec 2012 19:13:24 -0800 (PST) In-Reply-To: <20121206004952.GA8913@panahar> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Vikas Rawal Cc: emacs-orgmode Hi Vikas, On 6 Dec 2012, at 11:49, Vikas Rawal = wrote: > I would like to have a section in the index.html that shows links to > recently changed/added html pages. It would be nice if I could show > titles of such pages, and create links from these titles to the files. I'm not sure exactly how to do it purely in org, but = http://renard.github.com/o-blog/ has similar functionality - if you look = through the project you might find useful patterns. The project has a = separate lisp parser to org-mode but. An example, - [[#][/icon-file icon-white/ Tips]] - [[file:{lisp}(format "%s/%s" (ob:path-to-root) (ob:post-htmlfile = (ob:get-last-post "Tips" 0))){/lisp}][{lisp}(ob:post-title = (ob:get-last-post "Tips" 0)){/lisp}]] - [[file:{lisp}(format "%s/%s" (ob:path-to-root) (ob:post-htmlfile = (ob:get-last-post "Tips" 1))){/lisp}][{lisp}(ob:post-title = (ob:get-last-post "Tips" 1)){/lisp}]] - [[file:{lisp}(format "%s/%s" (ob:path-to-root) (ob:post-htmlfile = (ob:get-last-post "Tips" 2))){/lisp}][{lisp}(ob:post-title = (ob:get-last-post "Tips" 2)){/lisp}]] - [[file:{lisp}(format "%s/%s" (ob:path-to-root) (ob:post-htmlfile = (ob:get-last-post "Tips" 3))){/lisp}][{lisp}(ob:post-title = (ob:get-last-post "Tips" 3)){/lisp}]] - [[file:{lisp}(format "%s/%s" (ob:path-to-root) (ob:post-htmlfile = (ob:get-last-post "Tips" 4))){/lisp}][{lisp}(ob:post-title = (ob:get-last-post "Tips" 4)){/lisp}]] Tony