| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
| |
* haunt/post.scm (post->time): Rename to...
(post-time): ...this.
|
|
|
|
|
| |
* README.md: Add missing argument to make-date. Use quasiquote and
unquote to apply make-date.
|
|
|
|
| |
* README.md: Update intro. Add example configuration and usage.
|
|
|
|
|
| |
* haunt/builder/atom.scm: New file.
* Makefile.am (SOURCES): Add it.
|
|
|
|
| |
* haunt/build/html.scm (sxml->html-string): New procedure.
|
|
|
|
| |
* haunt/post.scm (group-by-tag): New procedure.
|
|
|
|
|
|
| |
Paths were not being concatenated properly.
* haunt/server/web-server.scm (render-directory): Fix concat+uri-encode.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
* haunt/site.scm (<site>): Add 'domain' field.
(make-site): New argument.
(site-domain): New accessor.
(site): Add 'domain' keyword argument.
|
|
|
|
|
| |
* haunt/reader.scm (html-reader): Export. Use alist-cons to neaten up
code.
|
|
|
|
|
|
|
| |
* haunt/post.scm (%metadata-parsers): New variable. Register parser for
'tags and 'date.
(metadata-parser, register-metadata-parser!, parse-metadata): New
procedures.
|
|
|
|
| |
* haunt/post.scm (post-slug, posts/reverse-chronological): New procedures.
|
|
|
|
| |
* haunt/utils.scm (take-up-to): New procedure.
|
|
|
|
| |
* haunt/utils.scm (string->date*): New procedure.
|
|
|
|
|
| |
* haunt/config.scm.in (%haunt-cwd, haunt-file-name,
haunt-output-directory): Remove.
|
|
|
|
| |
* haunt/ui.scm (commands): Add "build".
|
|
|
|
|
| |
* haunt/ui/build.scm: New file.
* Makefile.am (SOURCES): Add it.
|
|
|
|
|
| |
* haunt/reader.scm (sxml-reader): Call 'load' with an absolute file
name.
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
| |
* haunt/ui/serve.scm (%default-options): Fix alist.
(haunt-serve): Use site config file to determine web server root.
|
|
|
|
|
| |
* haunt/ui.scm (load-config): Use an absolute path when calling 'load'.
Fix typo in error message.
|
|
|
|
| |
* haunt/site.scm (build-site): Change log message text.
|
|
|
|
| |
* haunt/ui.scm (run-haunt-command): Remove call to 'haunt-error'.
|
|
|
|
|
| |
* haunt/utils.scm (mkdir-p): New procedure.
* haunt/page.scm (write-page): Create missing directories before writing.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
| |
* haunt/utils.scm (absolute-file-name, clean-directory): New procedures.
* haunt/site.scm (build-site): New procedure.
|
|
|
|
|
|
|
|
|
|
| |
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/
|
|
|
|
| |
* haunt/reader.scm (read-posts): New procedure.
|
|
|
|
|
| |
* haunt/reader.scm (read-html-post): New procedure.
(html-reader): New variable.
|
|
|
|
|
| |
* haunt/utils.scm: New file.
* Makefile.am (SOURCES): Add it.
|
|
|
|
| |
* haunt/reader.scm: Remove stray 'n' character.
|
|
|
|
|
| |
* haunt/site.scm: New file.
* Makefile.am (SOURCES): Add it.
|
|
|
|
|
| |
* haunt/build/html.scm: New file.
* Makefile.am (SOURCES): Add it.
|
|
|
|
|
| |
* haunt/page.scm: New file.
* Makefile.am (SOURCES): Add it.
|
|
|
|
|
| |
* haunt/reader.scm: New file.
* Makefile.am (SOURCES): Add it.
|
|
|
|
|
| |
* haunt/post.scm: New file.
* Makefile.am (SOURCES): Add it.
|
|
|
|
|
|
|
|
|
|
|
| |
* haunt/config.scm: Delete.
* haunt/config.scm.in: New file.
* haunt/ui.scm (show-version-and-exit): New procedure.
(program-name): Change default value.
(haunt-main): Add version option.
* haunt/ui/serve.scm (haunt-serve): Likewise.
* configure.ac (AC_CONFIG_FILES): Add 'haunt/config.scm'.
* .gitignore: Ignore 'haunt/config.scm'.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* haunt/config.scm: New file.
* haunt/serve/mime-types.scm: New file.
* haunt/serve/web-server.scm: New file.
* haunt/ui/serve.scm: New file.
* haunt/ui.scm (commands, program-name): New variables.
(show-haunt-help): Display possible commands.
(run-haunt-command): New procedure.
(haunt-main): Run subcommands.
* Makefile.am (SOURCES): Add files.
|
|
|