07
qr-code

Creating a blog

In o-blog, a site is contained in a single Org-mode file specifying both pages and a blog; in turn, the blog consists of Org-mode entries, specifically, Org-mode TODO items. Each entry has a headline/title, some properties and some text. Exporting a blog means publishing all the entries of an Org-mode file (to their own HTML5 files) that are TODO items marked DONE.

A minimal o-blog Org-mode file could look like:

#+TITLE: Lorem ipsum
#+DESCRIPTION: dolor sit amet
#+DATE:

#+STARTUP: logdone

#+URL: http://blog.example.com

* DONE Lorem ipsum
  CLOSED: [2012-01-07 Sat 00:13]
  :PROPERTIES:
  :tags:     Lorem
  :END:

  Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec hendrerit
  tempor tellus. Donec pretium posuere tellus. Proin quam nisl, tincidunt
  et, mattis eget, convallis nec, purus. Cum sociis natoque penatibus et
  magnis dis parturient montes, nascetur ridiculus mus. Nulla posuere. Donec
  vitae dolor. Nullam tristique diam non turpis. Cras placerat accumsan
  nulla. Nullam rutrum. Nam vestibulum accumsan nisl.

Please note the blank line between the properties section and the text itself.

Use #+STARTUP: logdone to automatically add a time stamp when closing an entry.

blog comments powered by Disqus