I would like to generate a blog by publishing org files to jekyll, as described in the wiki.
The wiki recommends formatting each post like this:
#+BEGIN_HTML
---
layout: default
title: Benighted on the Ben.
excerpt: An unplanned bivouac on Ben Nevis.
---
#+END_HTML
It was early January when six of us travelled up to ....
While this works, it is inconvenient when exporting to other formats. I am looking for a function (possibly a publish or preamble) that allows me to publish this
#+LAYOUT: default
#+TITLE: Benighted on the Ben.
#+EXCEPRT: An unplanned bivouac on Ben Nevis.
It was early January when six of us travelled up to ....
Into this
---
layout: default
title: Benighted on the Ben.
excerpt: An unplanned bivouac on Ben Nevis.
---
<p>It was early January when six of us travelled up to ....</p>
Has anyone accomplished this? Does anyone know of a good place to start?