all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Org publish inserting HTML tags into sitemap-format-entry
@ 2019-07-10 21:44 Thomas Ingram
  2019-07-10 23:47 ` Thibault Marin
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas Ingram @ 2019-07-10 21:44 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

Hello,

I am using  ox-publish to build my website. I have a custom 
sitemap-formt-entry function that adds post dates and I'm trying to add 
a div around those dates. Problem is the tags are getting escaped in the 
resulting HTML. How can I add tags without them being escaped?

Below is my :sitemap-format-entry function.

(defun org-sitemap-custom-entry-format (entry style project)
   (let ((filename (org-publish-find-title entry project)))
     (if (= (length filename) 0)
         (format "*%s*" entry)
       (format "<div class=\"timestamp\">%s</div> [[file:blog/%s][%s]]"
               (format-time-string "%Y-%m-%d"
                   (org-publish-find-date entry project))
               entry
               filename))))

Thanks for the help!

Thomas Ingram

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-07-12 15:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-10 21:44 Org publish inserting HTML tags into sitemap-format-entry Thomas Ingram
2019-07-10 23:47 ` Thibault Marin
2019-07-11  0:30   ` Thomas Ingram
2019-07-11  1:30     ` Thibault Marin
2019-07-12 15:08       ` Thomas Ingram

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.