From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: modify postamble in html export Date: Thu, 19 Sep 2013 22:49:17 +0800 Message-ID: <87pps4ooia.fsf@ericabrahamsen.net> References: <523AEBBC.7010401@riseup.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51244) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMfWz-0004Ez-Ax for emacs-orgmode@gnu.org; Thu, 19 Sep 2013 10:48:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VMfWr-0005EQ-PA for emacs-orgmode@gnu.org; Thu, 19 Sep 2013 10:48:33 -0400 Received: from plane.gmane.org ([80.91.229.3]:43345) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMfWr-0005EA-Ic for emacs-orgmode@gnu.org; Thu, 19 Sep 2013 10:48:25 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VMfWq-0001JV-Bs for emacs-orgmode@gnu.org; Thu, 19 Sep 2013 16:48:24 +0200 Received: from 114.252.243.171 ([114.252.243.171]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 19 Sep 2013 16:48:24 +0200 Received: from eric by 114.252.243.171 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 19 Sep 2013 16:48:24 +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 pw writes: > Hi, > > I want to have a postamble in html with just the date (and without hours). > > I already delete other informations in the postamble with these > variables into my .emacs : > '(org-export-author-info nil) > '(org-export-creator-info nil) > '(org-html-validation-link nil) > > Now I have only the date left in the postamble but I want to change > the format. > > The default is : "Created: 2013-09-19 jeu. 14:09" and I want "Last > update : 19 sept. 2013" > > To do this I tried to set this variable : > '(org-export-date-timestamp-format "%d %h %y") > > But it is not working (and I have no idea how to put the "Last update :"). > > Could you indicate me how to achieve this. An issue is also I don't > want to put this date format in all org-mode (I want to keep the > default format for task and other stuff). You can override the whole thing by re-defining the `org-html-postable' variable. Set it to a function which returns the string you want: (defun my-org-html-postamble () (format "Last update : %s" (format-time-string "%d %b %Y"))) (setq org-html-postamble 'my-org-html-postamble) I didn't test that, but something like that ought to work. HTH, Eric