emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* "What's new" in an orgmode based website
@ 2012-12-06  0:49 Vikas Rawal
  2012-12-08  3:13 ` Tony Day
  0 siblings, 1 reply; 2+ messages in thread
From: Vikas Rawal @ 2012-12-06  0:49 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: "What's new" in an orgmode based website
  2012-12-06  0:49 "What's new" in an orgmode based website Vikas Rawal
@ 2012-12-08  3:13 ` Tony Day
  0 siblings, 0 replies; 2+ messages in thread
From: Tony Day @ 2012-12-08  3:13 UTC (permalink / raw)
  To: Vikas Rawal; +Cc: emacs-orgmode

Hi Vikas,


On 6 Dec 2012, at 11:49, Vikas Rawal <vikaslists@agrarianresearch.org> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-12-08  3:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-06  0:49 "What's new" in an orgmode based website Vikas Rawal
2012-12-08  3:13 ` Tony Day

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).