Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 819 Bytes

README.org

File metadata and controls

44 lines (32 loc) · 819 Bytes

ox-blog

It’s just a simple blog system utilize org awesome export and publish system.

it just works

Basic Configuration

I use use-package

(use-package ox-blog
  :after (org ox-rss ox-html)
  :bind (("C-c b" . publish-blog))
  :config
  (setq ox-blog-base-content-path "~/org/posts")
  (setq ox-blog-ga "UA-38681562-1")
  (setq ox-blog-disqus "reverlandhome")

Capture Template

Moreover, you can use a capture template to help you start a blog easily

(push
	  ("b" "New Post" plain (file ox-blog-get-post-file)
	   (file "templates/blog-post.tpl"))
  org-capture-templates)
)
#+TITLE: %^{标题}
#+DATE: %^t
#+SUBTITLE: %^{副标题}
#+CATEGORY: %^{分类}
#+FILETAGS: %^G

%?