A blog site based on Start Bootstrap's clean-blog design. I run my own blog on this template, malcolmsparks.com. The nice thing is that it's very minimal and once you're confident with Clojure you can personalise it however you wish.
Projects generated with this template get the following features 'out of the box'.
postsdirectory (although this location is configurable), formatted using endophile
All this in less than 500 lines of code :)
The lein command (see below for the actual incantation) will create a directory with the name of your project.
cd into this directory and run
lein run which will run your blogsite and launch a browser so you can view it.
If you prefer to generate the static content instead, use
Add posts in the
posts directory. These should be Markdown formatted, but can contain additional metadata lines at the top of the file. For example :-
Title: Prefer data over functions Subtitle: Functional programming is great, but always prefer data! Date: 2015-01-31 Keywords: clojure Background: img/redirect.jpg
Refer to examples from my blog sources.
If you want to hack on the Clojure code to add functionality, feel welcome — that's really the whole point! Instead of running
lein run you should run
lein repl, then type
(dev) to compile and
(go) to start the components, then make code changes, then hit
(reset) which will reload your modified code and restart all the components.
Components are defined in the
system.clj file, at the bottom of the
Add static resources, such as images, to
The Less files are under
resources/less — if you change them they will be recompiled to CSS, under
target/css on the next
To create a project called foo based on this template, type this in a command line shell :-
lein new modular foo clean-blog