renard / o-blog

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

customization questions. #22

Closed yyr closed 12 years ago

yyr commented 12 years ago

My elisp skills are very limited. I could understand what is going on. but could n't figure out customizations aspects. This may not be the right place to ask, I have few questions, might be FAQ. Please redirect me discussion page/mailing list (if there is one)

how to split the o-blog directory from my site repository.?

Suppose my installation is in =~/.emacs.d/el-get/o-blog/= and I want to put my blog post/pages in =~/blog= how to configure it to be able to use styles and all goodies from o-blog.

how to split pages into multiple directories and file.?

Example =sample.org= is nice. I understand that many pages/indexes are generated from =sample.org=. But how can I organize my site something like the following?

site/
  -> blog/
       -> first-blog-post.org
       -> second-blog-post.org
  -> proj/
      -> project-structure.org
      -> project-howto.org

will become

site/
  -> blog/
       -> index.html
       -> first-blog-post.html
       -> second-blog-post.html
  -> archive/
  -> category/
  -> proj/
      -> index.html
      -> project-structure.html
      -> project-howto.html

how to stop regenerating everything again.?

Just like =org-publish-timestamp-directory=. only new posts/pages would be regenerate not all (ofcourse with respecting DONE or whatever todo tag).

how to publish site in batch mode.?

Thanks sorry for asking such a long/verbal questionnaire

renard commented 12 years ago

Hi,

how to split the o-blog directory from my site repository.?

You can use any org file.

See http://renard.github.com/o-blog/structures.html for customizing templates and output directory.

how to split pages into multiple directories and file.?

You can use the :CATEGORY: tag for a post or use several STATIC files.

how to stop regenerating everything again.?

This is hard to do since you generate static web site. the most consuming part is not converting files to html but writing down all files on the hard drive.

how to publish site in batch mode.?

You can do it in C-u M-x org-publish-blog RET

or

emacs --batch -l ~/.emacs.d/init.el --eval "(org-publish-blog \"/path/to/your/file.org\")"