renard / o-blog

Standalone orgmode blog exporter. DEPECATED, NOT MAINTAINED
http://renard.github.com/o-blog-v2
260 stars 58 forks source link

page publishing stopped working #128

Closed jave closed 4 years ago

jave commented 10 years ago

in v2.5.

so for some reason a snippet like this:

gets to have the filename ".html" all of a sudden.

I tried debugging it for a bit but couldnt figure out why.

jave commented 10 years ago

Some more debugging seems to indicate that the "page" slot is not filled at the time of export. It is filled later though.

It seems to me that this is a genuine bug, and if it is, its pretty easy to replicate. Just export the sample file to a clean directory, and observe that blog entries are written properly, but not pages. So there wont be a index.html for instance.

renard commented 10 years ago

Ok can you please rollback to a known working version for the moment? I am a bit busy this week.

Thanks

davidpirro commented 10 years ago

@jave Seems to be similar (if not equal) to the issue #125 I'm experiencing

jave commented 10 years ago

this hacky patch seems to make a difference. try it at your own risk.

The "page" field isnt set when the "htmlfile" field is computed, so this patch goes to extra length to set the path info again, after it shouldve already been set. Brief testing gives me at least an index.html file.

diff --git a/lisp/o-blog-backend.el b/lisp/o-blog-backend.el index 2b20f67..55c53bf 100644 --- a/lisp/o-blog-backend.el +++ b/lisp/o-blog-backend.el @@ -73,10 +73,23 @@ Some global variables are set: (funcall (ob:get-backend-function type :find-files) self)) (ob:profile "Parse config"

jave commented 10 years ago

my workaround has been working well for a while. Just a heads up. (its obviously not good enough as is though)

renard commented 9 years ago

Can you please have a look at new v2.5 branch?