Explorar o código

contrib/lisp/ox-rss.el: Minor enhancements

* contrib/lisp/ox-rss.el (org-rss-image-url): Use the Unicorn
as the default image.
(org-rss-publish-to-rss): Use `org-rss-extension'.
Bastien Guerry %!s(int64=12) %!d(string=hai) anos
pai
achega
6f5a6819f3
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      contrib/lisp/ox-rss.el

+ 3 - 2
contrib/lisp/ox-rss.el

@@ -73,7 +73,7 @@
   :version "24.4"
   :package-version '(Org . "8.0"))
 
-(defcustom org-rss-image-url ""
+(defcustom org-rss-image-url "http://orgmode.org/img/org-mode-unicorn-logo.png"
   "The URL of the an image for the RSS feed."
   :group 'org-export-rss
   :type 'string)
@@ -213,7 +213,8 @@ is the property list for the given project.  PUB-DIR is the
 publishing directory.
 
 Return output file name."
-  (org-publish-org-to 'rss filename ".xml" plist pub-dir))
+  (org-publish-org-to
+   'rss filename (concat "." org-rss-extension) plist pub-dir))
 
 ;;; Main transcoding functions