Go to file
David Thompson 228932a48b example: Add image asset.
* example/haunt.scm: Add static directory builder.
* example/images/guile-banner.small.png: New file.
* example/posts/foo.sxml: Render Guile banner image.
2015-07-27 08:54:30 -04:00
example example: Add image asset. 2015-07-27 08:54:30 -04:00
haunt web-server: Bypass response sanitization for static files. 2015-07-27 08:48:29 -04:00
scripts Remove hardcoded Guile executable path. 2015-07-26 15:20:18 -04:00
.gitignore Remove hardcoded Guile executable path. 2015-07-26 15:20:18 -04:00
COPYING First commit. 2015-01-04 20:02:16 -05:00
Makefile.am builder: Add assets builder. 2015-07-26 23:15:08 -04:00
README.md asset: Add brief documentation. 2015-07-26 23:15:09 -04:00
bootstrap Add autotools bootstrap script. 2015-07-19 10:02:53 -04:00
configure.ac Remove hardcoded Guile executable path. 2015-07-26 15:20:18 -04:00
package.scm Add GNU Guix development environment helper. 2015-07-19 10:16:41 -04:00
pre-inst-env.in First commit. 2015-01-04 20:02:16 -05:00

README.md

Haunt

About

Haunt is a static site generator written in Guile Scheme. It's simple, functional, and extensible.

Features

  • Easy blog and Atom feed generation
  • Supports any markup language that can be parsed to SXML
  • Simple development server
  • Purely functional build process
  • User extensible

Example Configuration

(use-modules (haunt site)
             (haunt reader)
             (haunt builder blog)
             (haunt builder atom)
             (haunt builder assets))

(site #:title "Built with Guile"
      #:domain "example.com"
      #:default-metadata
      '((author . "Eva Luator")
        (email  . "eva@example.com"))
      #:readers (list sxml-reader html-reader)
      #:builders (list (blog)
                       (atom-feed)
                       (atom-feeds-by-tag)
                       (static-directory "images"))

Usage

Write a configuration file named haunt.scm. Add your posts to a directory named posts. Then run haunt build!

To view your creation, run haunt serve and browse to localhost:8080.

Requirements

GNU Guile >= 2.0.9

Building from Git

Haunt uses the familiar GNU build system. GNU automake, autoconf, and make are required to build from a git checkout.

./bootstrap && ./configure && make

GNU Guix users can create a build environment with all necessary dependencies using the handy guix environment tool:

guix environment -l package.scm

License

GNU GPLv3 or later