Flexible Lisp Blogware. Fork for personal use. Mirrored from https://github.com/kingcons/coleslaw originally.
![]() |
12 년 전 | |
---|---|---|
docs | 12 년 전 | |
plugins | 12 년 전 | |
src | 12 년 전 | |
tests | 13 년 전 | |
themes | 13 년 전 | |
.gitignore | 13 년 전 | |
README.md | 12 년 전 | |
TODO | 13 년 전 | |
coleslaw.asd | 13 년 전 | |
example.coleslawrc | 12 년 전 | |
example.post-receive | 12 년 전 | |
gen-docs.sh | 13 년 전 | |
logo_large.jpg | 14 년 전 | |
logo_medium.jpg | 14 년 전 | |
logo_small.jpg | 14 년 전 |
Coleslaw aims to be flexible blog software suitable for replacing a single-user static site compiler such as Jekyll.
This software should be portable to any conforming Common Lisp implementation but this guide will assume SBCL is installed. Testing has also been done on CCL. Server side setup:
cp coleslaw/example.coleslawrc ~/.coleslawrc
# and edit as necessarycp coleslaw/example.post-receieve your-blog.git/hooks/post-receive
# and edit as necessarychmod +x your-blog/.git/hooks/post-receive
git remote add prod git@my-host.com:path/to/repo.git
Coleslaw expects post files to be formatted as follows:
;;;;;
title: foo
date: yyyy-mm-dd timestamp
tags: bar, baz
format: html (for raw html) or md (for markdown)
;;;;;
your post
There is a "plugin" to import from wordpress. At some point, it should be turned into a standalone script. Until then...
(ql:quickload 'coleslaw)
(in-package :coleslaw)
(load-plugins '(import))
(coleslaw-import::import-posts "/path/to/export.xml")
The XML will be read and placed into .post files in the :repo location specified in your .coleslawrc.For now, see the API the mathjax plugin for an example. A proper guide about this should be written later.