Flexible Lisp Blogware
Find a file
Cthulhux e7e68ce602
Merge pull request #187 from equwal/url-gen-control
Control of URL generation -- extensions and name-fn
2022-08-08 16:51:12 +02:00
cli make sitemap subclass index, add to routing 2021-09-19 23:00:35 -04:00
cli-tests [ci skip] cli-tests/basic.sh: can optionally run the preview server test 2019-10-27 15:16:50 -04:00
docs Merge pull request #187 from equwal/url-gen-control 2022-08-08 16:51:12 +02:00
examples Added support for other lisp implementations based on research. 2018-12-01 22:56:28 -08:00
plugins make sitemap subclass index, add to routing 2021-09-19 23:00:35 -04:00
roswell roswell commands 2019-10-26 19:45:46 -04:00
src Merge pull request #187 from equwal/url-gen-control 2022-08-08 16:51:12 +02:00
tests fix test 2019-10-27 14:31:17 -04:00
themes Adding missing " to meta tag in Hyde's base.tmpl 2019-02-23 14:10:29 -05:00
.gitignore Ignore Linux CCL FASL files 2016-10-17 12:22:37 -05:00
.travis.yml [ci skip] cli-tests/basic.sh: can optionally run the preview server test 2019-10-27 15:16:50 -04:00
coleslaw-cli.asd [CLI] coleslaw-cli: system for CLI command 2019-10-26 19:45:46 -04:00
coleslaw-test.asd testing repl 2019-10-26 19:45:46 -04:00
coleslaw.asd Simplify the setting of COLESLAW-CONF:*BASEDIR* 2019-10-27 15:17:59 -04:00
LICENSE Add BSD License file. 2013-01-29 10:18:26 -05:00
NEWS.md A final news tweak. 2014-11-25 22:47:23 -05:00
README.md fix the installation readme 2019-11-24 08:18:31 -05:00

coleslaw

Build Status Quicklisp

coleslaw logo

Czeslaw Milosz was the writer-in-residence at UNC c. 1992. I used to see him all the time at the Hardback Cafe, always sitting at a two-top drinking coffee, reading, writing, eating chips and salsa. I remember a gentleness behind the enormous bushy eyebrows and that we called him Coleslaw. - anon

Coleslaw is Flexible Lisp Blogware similar to Frog, Jekyll, or Hakyll.

Have questions?

See the wiki for a list of coleslaw-powered blogs.

Coleslaw should run on any conforming Common Lisp implementations but testing is primarily done on SBCL and CCL.

Features

plugins plugins plugins
Sitemap generation Incremental builds Analytics via Google or Piwik
Comments via Disqus Comments via isso Hosting via Amazon S3
Hosting via Github Pages Embedding gfycats Tweeting about new posts
Mathjax Posts in ReStructured Text Wordpress import
Pygments colorize

Installation/Tutorial

Step 1: Install this library.

$ ros install coleslaw-org/coleslaw      # With [Roswell](https://roswell.github.io/)
$ export PATH="$HOME/.roswell/bin:$PATH" # If you haven't done this before for Roswell
or
CL-USER> (ql:quickload :coleslaw-cli)

Step 2: Initialize your blog repository.

$ mkdir yourblog ; cd yourblog
$ git init
$ coleslaw setup              # or
CL-USER> (coleslaw-cli:setup)

coleslaw setup / (coleslaw-cli:setup) will generate a .coleslawrc file in the current directory, which contains the configuration of the static website.

Step 3: Write a post file in the current directory. The file should contain a certain metadata, so use the coleslaw new command, which instantiates a correct file for you.

$ coleslaw new
Created a post 2017-11-06.post .
# or 
CL-USER> (coleslaw-cli:new "post")
Created a post 2017-11-06.post .

Step 4: Generate the site from those post files. The result goes to the staging directory specified in the .coleslawrc file. The staging directory is /tmp/coleslaw/ by default.

$ coleslaw          # or
$ coleslaw generate # or
$ coleslaw stage    # or
CL-USER> (coleslaw-cli:generate) ; or
CL-USER> (coleslaw-cli:stage)    ; --- these are all aliases

Step 5: You can launch a web server to check the result on a browser. (Running a webserver sometimes has a benefit over just opening an html file, e.g. the relative links behaves differently on a file:/// protocol)

$ coleslaw preview     # or
CL-USER> (coleslaw-cli:preview)

Step 6: and watch the file system to automatically regenerate the site!

$ coleslaw watch          # or even better,
$ coleslaw watch-preview  # or, on REPL,
CL-USER> (coleslaw-cli:watch)      ;; watch-preview does not work on REPL right now

Step 7: When you think your article is publishable, run

$ coleslaw deploy             # or
CL-USER> (coleslaw-cli:deploy)

To move the contents in the staging dir to the deploy dir. By default, this deploy command uses rsync to sync the directories, where the deploy dir could be a remote directory on the server which is running your website. By using a plugin, you can customize this behavior e.g. running the deploy on gh-pages.

For further customization, e.g. adding a new plugin, developing a new plugin, changing the deploy option, or creating a new theme, see the config docs.

We provide three default themes: hyde, the default, and readable (based on bootswatch readable).

A core goal of coleslaw is to be both pleasant to read and easy to hack on and extend. If you want to understand the internals and bend coleslaw to do new and interesting things, I strongly encourage you to read the Hacker's Guide to Coleslaw. You'll find some current TODO items towards the bottom.