all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [patch]org-blog.el: fix broken org-publish-blog-index
@ 2008-05-28  7:23 Levin Du
  0 siblings, 0 replies; only message in thread
From: Levin Du @ 2008-05-28  7:23 UTC (permalink / raw)
  To: Org-mode Mode


[-- Attachment #1.1: Type: text/plain, Size: 945 bytes --]

I think the API has changed a bit. Patch attched:--- a/lisp/org-blog.el
+++ b/lisp/org-blog.el
@@ -170,11 +170,12 @@ Follow up with org-publish-all to upload to the site."

 ;; pluggable index generation function for org-publish.

-(defun org-publish-blog-index (plist &optional index-filename)
+(defun org-publish-blog-index (project &optional index-filename)
   "Publish an index of all finished blog posts.
 This function is suitable for use in the :index-function keyword
 of org-publish-project-alist."
-  (let* ((posts (nreverse (sort (org-publish-get-base-files plist "*~")
'string<)))
+  (let* ((plist (cdr project))
+         (posts (nreverse (sort (org-publish-get-base-files project "*~")
'string<)))
  (base-directory (file-name-as-directory (or org-blog-directory (plist-get
plist :base-directory))))
  (blog-base-url (file-name-as-directory (plist-get plist :blog-base-url)))
  (blog-title (plist-get plist :blog-title))


- Levin

[-- Attachment #1.2: Type: text/html, Size: 1492 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-05-28  7:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-28  7:23 [patch]org-blog.el: fix broken org-publish-blog-index Levin Du

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.