From: pw <pw@riseup.net>
To: eric@ericabrahamsen.net
Cc: emacs-orgmode@gnu.org
Subject: Re: modify postamble in html export
Date: Fri, 20 Sep 2013 15:17:48 +0200 [thread overview]
Message-ID: <523C4AFC.801@riseup.net> (raw)
> 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.
Thanks!
I tried to paste your code into my .emacs and I received the following
error when publishing :
"org-html--build-pre/postamble: Wrong number of arguments: (lambda nil
(format "Last update : %s" (format-time-string "%d %b %Y"))), 1"
I don't know where is the problem. I tried then to do the same by
modifying the variable "Org Export HTML Postamble Format". The default
format is :
'(("en" "<p class=\"author\">Author: %a (%e)</p>\n<p
class=\"date\">Date: %d</p>\n<p class=\"creator\">%c</p>\n<p
class=\"xhtml-validation\">%v</p>"))
So I changed it to (with the idea to change the string format (%s) later
if working) :
'(("en"<p class=\"date\">Last update: %s</p>"))
(which add to my .emacs : '(org-html-postamble-format (quote (("en" "<p
class=\"date\">Last update: %s</p>"))))
But it does not change at all the postamble ""Created: 2013-09-19 jeu.
14:09"".
So I'm stuck!
pw
next reply other threads:[~2013-09-20 13:18 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-20 13:17 pw [this message]
2013-09-20 15:25 ` modify postamble in html export Nicolas Goaziou
2013-09-21 4:23 ` Eric Abrahamsen
2013-09-21 9:00 ` pw
2013-09-21 9:25 ` Eric Abrahamsen
-- strict thread matches above, loose matches on Subject: below --
2013-09-19 12:19 pw
2013-09-19 14:49 ` 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=523C4AFC.801@riseup.net \
--to=pw@riseup.net \
--cc=emacs-orgmode@gnu.org \
--cc=eric@ericabrahamsen.net \
/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).