pw <p...@riseup.net> writes:

>> 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"

Whoops, that's what I get for posting untested code... As Nicholas
points out the function should take an argument, but in your simplest
case you can ignore it:

(defun my-org-html-postamble (plist)
  (format "Last update : %s" (format-time-string "%d %b %Y")))


Reply via email to