From: Robert Klein <roklein@roklein.de>
To: emacs-orgmode@gnu.org
Subject: Re: another blog exporter
Date: Fri, 07 Feb 2014 20:17:48 +0100 [thread overview]
Message-ID: <52F5315C.6040504@roklein.de> (raw)
In-Reply-To: <87ob2i967s.fsf@gmx.us>
Hi Rasmus,
thank you very much for your feedback!
On 02/07/2014 06:35 PM, Rasmus wrote:
> Could you provide an example blog so that we can see the output?
The two latest posts ("FreeBSD" and "DHCP") at http://www.xyzzy.de/
I put the original org for download at the end of both posts.
>> ;;; Transcode Functions
>>
>> ;;;; Example Block
>>
>> (defun org-blog-example-block (example-block contents info)
>> "Transcode a EXAMPLE-BLOCK element from Org to HTML.
>> CONTENTS is nil. INFO is a plist holding contextual
>> information."
>> (if (org-export-read-attribute :attr_html example-block :textarea)
>> (org-html--textarea-block example-block)
>> ;;; beginnin here we need org/wp-syntac/syntaxhl information!!!!
>> (format "<pre class=\"example\">\n%s</pre>"
>> (org-html-format-code example-block info))))
>
> Isn't this an exact copy of the corresponding entry in ox-html (Less
> the name)? Why?
>
- org-blog-example-block /is/ an exact copy, I planned to add the
highlighters here, too, and to support line numbers. Forgot it :(
- org-blog-latex-environment adds support for =#+ATTR_BLOG:=
- org-blog-latex-fragment currently also is an exact copy. I'm not sure
mathjax works, so I put it here for further work.
- org-blog-link supports =attr_blog= and fills the list of images to be
uploaded. (I really hated to copy this one... in an earler version I
cl-flet-ted org-html--format-image to avoid copying this one.
for org-blog-export-[as|to]-blog, I had no choice. :)
I just found out, when I introduced scheduled posting I broke unscheduled
posting; this is the patch:
--- emacs/ox-blog.el 2014-01-21 10:57:50 +0000
+++ emacs/ox-blog.el 2014-02-07 18:38:52 +0000
@@ -1089,7 +1089,7 @@
;; administrator may post
(post-status (cond ((equal draft-or-publish-p "draft") "draft")
((equal "contributor" user-role) "pending")
- ((and publish-datetime
+ ((and (not (string= "" publish-datetime))
(or (equal "author" user-role)
(equal "administrator" user-role)))
"future")
Best regards and thank you very much for the feedback,
Robert
next prev parent reply other threads:[~2014-02-07 19:18 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-07 17:10 another blog exporter Robert Klein
2014-02-07 17:35 ` Rasmus
2014-02-07 19:17 ` Robert Klein [this message]
2014-02-08 0:27 ` Ken Mankoff
2014-02-08 8:40 ` Robert Klein
2014-02-08 20:41 ` Robert Klein
2014-02-09 7:55 ` Bastien
2014-02-09 14:25 ` Robert Klein
2014-02-10 8:48 ` Bastien
2014-02-10 11:30 ` Nicolas Goaziou
2014-03-04 9:51 ` Robert Klein
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=52F5315C.6040504@roklein.de \
--to=roklein@roklein.de \
--cc=emacs-orgmode@gnu.org \
/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).