Closed davidpirro closed 4 years ago
Can you post somewhere your source file?
Did you try with provided example file?
Should be fix in last release.
Please confirm.
Hi!
Thanks for the help.
I'm running o-blog-publish on the sample.org file in the examples folder.
your latest commit fixes the previous problem, but now I got this message: or: Symbol's function definition is void: time-stamp-string
backtrace: https://gist.github.com/davidpirro/5b01eb859b6833ae7144#file-o-blog-publish-v2-5-backtrace-2
I just add the requirement in last commit.
Hi!
Thanks, that solved the previous problem. I found out that one has also to add: (require 'json) to the init file to enable json. Otherwise I will get errors
After that o-blog-publish woks smooth without any other errors (I'm still running o-blog-publish on the sample.org file in the examples folder), BUT:
in the output folder I see: david@nono:~/.emacs.d/o-blog/site/out-org$ ls -la total 104 drwxr-xr-x 6 david david 4096 Oct 13 13:06 . drwxr-xr-x 4 david david 4096 Oct 13 13:06 .. drwxr-xr-x 6 david david 4096 Oct 13 13:06 2012 -rw-r--r-- 1 david david 7670 Oct 13 13:06 archives.html -rw-r--r-- 1 david david 2580 Oct 13 13:06 articles.js -rw-r--r-- 1 david david 10487 Oct 13 13:06 .html -rw-r--r-- 1 david david 41832 Oct 13 13:06 index.xml -rw-r--r-- 1 david david 5130 Oct 13 13:06 sitemap.xml drwxr-xr-x 4 david david 4096 Oct 13 13:06 style drwxr-xr-x 2 david david 4096 Oct 13 13:06 tags -rw-r--r-- 1 david david 301 Oct 13 13:06 tags.js drwxr-xr-x 3 david david 4096 Oct 13 13:06 tips
So, no index.html and apparenly no other static pages (like features.html). Renaming the .html file to index.html and running "python -m SimpleHTTPServer" in the publishing directory I can however see this:
the tags and archives pages are working and the tips pages (blog posts) are also there, but look like this:
Switching on the developer tools in iceweasel, when opening a blog post (one page under the tips menu) I see in the console the following errors: GET http://localhost:8000//2012/08/adding-an-image-into-a-post/emacs-logo.png [HTTP/1.0 404 File not found 0ms] GET http://localhost:8000//home/david/.emacs.d/o-blog/example/style/jquery-2.1.1.min.js [HTTP/1.0 404 File not found 1ms] GET http://localhost:8000//home/david/.emacs.d/o-blog/example/style/bootstrap/js/bootstrap.min.js [HTTP/1.0 404 File not found 1ms] GET http://localhost:8000//home/david/.emacs.d/o-blog/example/style/o-blog-bootstrap.min.js [HTTP/1.0 404 File not found 1ms] GET http://localhost:8000//home/david/.emacs.d/o-blog/example/style/bootstrap/js/bootstrap.min.js [HTTP/1.0 404 File not found 0ms] GET http://localhost:8000//home/david/.emacs.d/o-blog/example/style/o-blog-bootstrap.min.js [HTTP/1.0 404 File not found 0ms]
So probably paths are not set correctly relative to the publishing directory on export. The js scripts are however correctly copied into the /site/org-out/style/ directory.
Hope that helps!
I push some fix that should fix this issue.
Can you please have a look on branch 2.5?
Hi,
I'm on debian and running emacs version 24.4.50.1 (had to switch to emacs snapshot since I couldnt't get rid of the error "assoc: Symbol's function definition is void: cl-struct-slot-info", updating emacs to this newer version solves this problem) and org-version 8.2.7c. I cheked out the o-blog-v2.5 branch.
I get the following error when trying to run "o-blog-publish" in the sample.org buffer: mkdir: Wrong type argument: stringp, nil
Here's my Messages output: https://gist.github.com/davidpirro/7a5304d075543e78862e#file-gistfile1-txt
Here's the Backtrace: https://gist.github.com/davidpirro/3b8f96c632f2f72de914#file-o-blog-publish-v2-5-backtrace
Any idea how to solve this?
Thank you very much for your help! (Can't wait to use o-blog...)
David