emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: emacs-orgmode@gnu.org
Subject: Re: modify postamble in html export
Date: Thu, 19 Sep 2013 22:49:17 +0800	[thread overview]
Message-ID: <87pps4ooia.fsf@ericabrahamsen.net> (raw)
In-Reply-To: 523AEBBC.7010401@riseup.net

pw <pw@riseup.net> 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

  reply	other threads:[~2013-09-19 14:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-19 12:19 modify postamble in html export pw
2013-09-19 14:49 ` Eric Abrahamsen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-09-20 13:17 pw
2013-09-20 15:25 ` Nicolas Goaziou
2013-09-21  4:23 ` Eric Abrahamsen
2013-09-21  9:00   ` pw
2013-09-21  9:25     ` Eric Abrahamsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pps4ooia.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).