summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* ui: Set default locale for all commands.David Thompson2015-07-261-0/+1
| | | | * haunt/ui.scm (haunt-main): Set LC_ALL.
* utils: file-name-components: Handle empty string.David Thompson2015-07-261-1/+3
| | | | | * haunt/utils.scm (file-name-components): Return the empty list when given the empty string.
* asset: Add brief documentation.David Thompson2015-07-263-2/+10
| | | | | * haunt/asset.scm: Add introductory comment. * README.md (Example Configuration): Add 'directory-assets' example.
* builder: Add assets builder.David Thompson2015-07-262-0/+40
| | | | | * haunt/builder/assets.scm: New file. * Makefile.am (SOURCES): Add it.
* Rename (haunt build html) to (haunt html).David Thompson2015-07-265-4/+7
| | | | | | | | | * haunt/build/html.scm: Delete it. * haunt/html.scm: New file. * Makefile.am (SOURCES): Remove old file. Add new file. * haunt/builder/atom.scm: Use new module. * haunt/builder/blog.scm: Likewise. * haunt/ui/serve.scm: Likewise.
* html: Add punctuation to comment.David Thompson2015-07-261-1/+1
|
* html: Remove gratuitous escape codes.David Thompson2015-07-262-244/+2
| | | | | | | | | UTF-8 encoded HTML pages are much better than maintaining a giant lookup table. * haunt/build/html.scm (%escape-chars): Remove all but the absolutely necessary escape codes. * haunt/builder/blog.scm (ugly-theme)[#:layout]: Add UTF-8 meta tag.
* Remove hardcoded Guile executable path.David Thompson2015-07-263-1/+3
| | | | | | * scripts/haunt: Now a build artifact. * scripts/haunt.in: New file. * configure.ac: Pre-process haunt.in.
* Add GNU Guix development environment helper.David Thompson2015-07-192-3/+57
| | | | | * package.scm: New file. * README.md: Document it.
* README: Add building instructions.David Thompson2015-07-191-0/+15
| | | | * README.md (Requirements, Building): New sections.
* Add autotools bootstrap script.David Thompson2015-07-191-0/+3
| | | | * bootstrap: New file.
* builder: blog: Add theme type.David Thompson2015-04-151-28/+73
| | | | | | | | | * haunt/builder/blog.scm (<theme>): New record type. (theme, theme?, theme-name, theme-layout, theme-post-layout, theme-list-template, with-layout, render-post, render-list, date->string*): New procedures. (ugly-theme): Redefine as <theme>. (blog): Use <theme> object.
* Add static asset support.David Thompson2015-04-134-3/+101
| | | | | | | | * haunt/asset.scm: New file. * Makefile.am (SOURCES): Add it. * haunt/site.scm (build-site): Add support for assets. * haunt/utils.scm (file-name-components, join-file-name-components): New procedures.
* example: Remove personal details.David Thompson2015-04-131-3/+3
| | | | * example/haunt.scm: Use made up metadata.
* README: Remove personal details from example configuration.David Thompson2015-04-131-3/+3
| | | | * README.md (Example Configuration): Use made up domain/name/email address.
* README: Remove srfi-19 import from example configuration.David Thompson2015-04-131-2/+1
| | | | * README.md (Example Configuration): Remove (srfi srfi-19).
* Add example site.David Thompson2015-04-134-0/+46
| | | | | | | * .gitignore: Ignore example build artifacts. * example/haunt.scm: New file. * example/posts/foo.sxml: New file. * example/posts/bar.html: New file.
* builder: Add primitive blog builder.David Thompson2015-04-132-0/+82
| | | | | * haunt/builder/blog.scm: New file. * Makefile.am (SOURCES): Add it.
* post: Add post-date procedure.David Thompson2015-04-133-5/+13
| | | | | | | * haunt/post.scm (%default-date): New variable. (post-date): New procedure. * haunt/builder/atom.scm (post->atom-entry): Use post-date. * README.md (Example Configuration): Remove date from default metadata.
* post: Rename post->time to post-time.David Thompson2015-04-131-2/+2
| | | | | * haunt/post.scm (post->time): Rename to... (post-time): ...this.
* README: Fix date in example config.Arne Babenhauserheide2015-04-131-2/+2
| | | | | * README.md: Add missing argument to make-date. Use quasiquote and unquote to apply make-date.
* Update README.David Thompson2015-04-121-5/+39
| | | | * README.md: Update intro. Add example configuration and usage.
* builder: Add Atom feed builder.David Thompson2015-04-112-0/+105
| | | | | * haunt/builder/atom.scm: New file. * Makefile.am (SOURCES): Add it.
* html: Add sxml->html-string.David Thompson2015-04-111-1/+8
| | | | * haunt/build/html.scm (sxml->html-string): New procedure.
* post: Add posts/group-by-tag.David Thompson2015-04-111-0/+15
| | | | * haunt/post.scm (group-by-tag): New procedure.
* serve: web-server: Fix directory rendering.David Thompson2015-04-111-2/+2
| | | | | | Paths were not being concatenated properly. * haunt/server/web-server.scm (render-directory): Fix concat+uri-encode.
* site: Fix cleaning step before building.David Thompson2015-04-112-9/+27
| | | | | | | | Cleaning the build directory failed when a subdirectory existed. * haunt/utils.scm (clean-directory): Remove. (delete-file-recursively): New procedure. * haunt/site.scm (build-site): Use delete-file-recursively.
* site: Add 'domain' field.David Thompson2015-04-111-3/+6
| | | | | | | * haunt/site.scm (<site>): Add 'domain' field. (make-site): New argument. (site-domain): New accessor. (site): Add 'domain' keyword argument.
* reader: Export html-reader and fix style.David Thompson2015-04-111-4/+4
| | | | | * haunt/reader.scm (html-reader): Export. Use alist-cons to neaten up code.
* post: Add metadata parsers.David Thompson2015-04-111-1/+28
| | | | | | | * haunt/post.scm (%metadata-parsers): New variable. Register parser for 'tags and 'date. (metadata-parser, register-metadata-parser!, parse-metadata): New procedures.
* post: Add helper procedures.David Thompson2015-04-111-1/+21
| | | | * haunt/post.scm (post-slug, posts/reverse-chronological): New procedures.
* utils: Add take-up-to.David Thompson2015-04-111-0/+11
| | | | * haunt/utils.scm (take-up-to): New procedure.
* utils: Add string->date*.David Thompson2015-04-111-1/+8
| | | | * haunt/utils.scm (string->date*): New procedure.
* config: Remove unneeded things.David Thompson2015-04-111-15/+1
| | | | | * haunt/config.scm.in (%haunt-cwd, haunt-file-name, haunt-output-directory): Remove.
* ui: Add "build" to command list.David Thompson2015-04-111-1/+1
| | | | * haunt/ui.scm (commands): Add "build".
* ui: Add 'build' subcommand.David Thompson2015-04-112-0/+62
| | | | | * haunt/ui/build.scm: New file. * Makefile.am (SOURCES): Add it.
* reader: sxml-reader: Use absolute path when loading Scheme file.David Thompson2015-04-111-1/+1
| | | | | * haunt/reader.scm (sxml-reader): Call 'load' with an absolute file name.
* server: web-server: Fix directory view.David Thompson2015-04-111-5/+26
| | | | | | | | * haunt/serve/web-server.scm (request-path-components, request-file-name): New procedures. (render-directory): URI encode href attributes. Properly concatenate file paths. (make-handler): Decode URI before using it as a relative file name.
* ui: serve: Respect site configuration and default options.David Thompson2015-04-111-4/+7
| | | | | * haunt/ui/serve.scm (%default-options): Fix alist. (haunt-serve): Use site config file to determine web server root.
* ui: Fix load-config.David Thompson2015-04-111-2/+3
| | | | | * haunt/ui.scm (load-config): Use an absolute path when calling 'load'. Fix typo in error message.
* site: Tweak log output when building.David Thompson2015-04-111-3/+2
| | | | * haunt/site.scm (build-site): Change log message text.
* ui: Remove use of defunct haunt-error.David Thompson2015-04-111-1/+1
| | | | * haunt/ui.scm (run-haunt-command): Remove call to 'haunt-error'.
* page: Ensure output directory exists before writing.David Thompson2015-04-112-2/+31
| | | | | * haunt/utils.scm (mkdir-p): New procedure. * haunt/page.scm (write-page): Create missing directories before writing.
* ui: Improve option processing and help output.David Thompson2015-04-112-28/+89
| | | | | | | | | | | | | | * haunt/ui.scm (%common-options, %default-common-options): New variables. (simple-args-fols, show-common-options-help, leave, string->number*, load-config): New procedures. (haunt-error): Remove. (show-version-and-exit): Actually exit. Add 'name' argument. (haunt-main): Use new 'show-version-and-exit'. * haunt/ui/serve.scm (show-server-help): Remove. (show-help): New procedure. (%options, %default-options): New variables. (haunt-serve): Use SRFI-37 option processing.
* site: Add build-site procedure.David Thompson2015-04-112-2/+34
| | | | | * haunt/utils.scm (absolute-file-name, clean-directory): New procedures. * haunt/site.scm (build-site): New procedure.
* page: Change sxml field to contents.David Thompson2015-04-111-4/+4
| | | | | | | | | | Naming the field 'sxml' is a poor choice because it may contain any type of data that the writer procedure accepts. * haunt/page.scm (<page>): Replace 'sxml' field with 'contents'. (page-sxml): Delete accessor. (page-contents): New accessor. (write-page): s/sxml/contents/
* reader: Add read-posts procedure.David Thompson2015-04-111-0/+21
| | | | * haunt/reader.scm (read-posts): New procedure.
* reader: Add html-reader.David Thompson2015-04-111-0/+23
| | | | | * haunt/reader.scm (read-html-post): New procedure. (html-reader): New variable.
* Add utils module.David Thompson2015-04-112-0/+59
| | | | | * haunt/utils.scm: New file. * Makefile.am (SOURCES): Add it.
* reader: Remove stray 'n'.David Thompson2015-04-111-1/+1
| | | | * haunt/reader.scm: Remove stray 'n' character.