From mboxrd@z Thu Jan 1 00:00:00 1970 From: giles@pexip.com Subject: Re: Publishing: building navigation menus and lists of files Date: Mon, 13 Jul 2015 12:13:15 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50123) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEbft-0002Nx-Pl for emacs-orgmode@gnu.org; Mon, 13 Jul 2015 07:13:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZEbfq-0002C8-K9 for emacs-orgmode@gnu.org; Mon, 13 Jul 2015 07:13:29 -0400 Received: from plane.gmane.org ([80.91.229.3]:45237) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEbfq-0002C2-C5 for emacs-orgmode@gnu.org; Mon, 13 Jul 2015 07:13:26 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZEbfp-00016R-AI for emacs-orgmode@gnu.org; Mon, 13 Jul 2015 13:13:25 +0200 Received: from host81-142-89-185.in-addr.btopenworld.com ([81.142.89.185]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 13 Jul 2015 13:13:25 +0200 Received: from giles by host81-142-89-185.in-addr.btopenworld.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 13 Jul 2015 13:13:25 +0200 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: emacs-orgmode@gnu.org Matt Price writes: > I am hoping to finally transition some of my websites to static sites > published directly from org finally!). one thing I would really like is to > automatically build menus and perhaps index files based on the directory > structure I'm exporting from. I'm half way there with one of my websites. Like you, I wanted to insert a menu based on the file's location within my directory tree. The solution I came up with was to use the html_preamble (http://orgmode.org/manual/HTML-preamble-and-postamble.html). I got side tracked and only got as far as inserting an identical menu for each file, but my intention remains to use a function to consider the file's location in my directory structure and generate a menu accordingly. Hmm - job for this evening perhaps. -- Giles Chamberlin