Re: [O] "What's new" in an orgmode based website

2012-12-07 Thread Tony Day
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






[O] "What's new" in an orgmode based website

2012-12-05 Thread Vikas Rawal
I have an orgmode-based website (http://www.indianstatistics.org).

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.

Will be grateful for suggestions on how this could be achieved.

Vikas