| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
| |
* tests/post.scm: New file.
* Makefile.am (TESTS): Add it.
|
| |
|
|
|
|
|
|
|
| |
* Makefile.am (info_TEXINFOS): New variable.
* doc/haunt.texi: New file.
* doc/fdl-1.3.texi: New file.
* guix.scm [native-inputs]: Add texinfo.
|
|
|
|
| |
Generated by Automake. No need to check it into the repo.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* haunt/utils.scm (flat-map, string-split-at): Add docstring.
(file-name-components): Adjust slightly to handle "/".
(join-file-name-components): Use prefix string join grammar.
(absolute-file-name): Add docstring.
* test-env.in: New file.
* tests/utils.scm: New file.
* Makefile.am (TESTS, TEST_EXTENSIONS, SCM_LOG_COMPILER,
AM_SCM_LOG_FLAGS): New variables.
* configure.ac: Add test-env pre-processed file.
* build-aux/test-driver: New file.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* haunt/skribe.scm: New file.
* haunt/skribe/utils.scm: New file.
* haunt/reader/skribe.scm: New file.
* configure.ac: Check for guile-reader.
* Makefile.am (SOURCES): Add Skribe modules when guile-reader is
available.
* example/haunt.scm: Include Skribe reader.
* example/posts/baz.skr: New file.
* README.md ("Requirements"): Mention guile-reader as optional dependency.
|
|
|
|
| |
* haunt/utils.scm (make-user-module): New procedure.
|
|
|
|
| |
* haunt/ui.scm (haunt-main): Add CWD to Guile load path.
|
|
|
|
| |
* haunt/builder/blog.scm: Export render-post and render-collection.
|
|
|
|
|
|
| |
* haunt/html.scm (sxml->html): Remove 'raw' element renderer.
* haunt/reader.scm (read-html-post): Parse to SXML, rather than reading
a raw string.
|
|
|
|
|
| |
* haunt/builder/blog.scm: Export "theme-collection-template", not
"theme-list-template".
|
| |
|
| |
|
| |
|
|
|
|
| |
* website/haunt.scm (haunt-theme): Add "License" section to index page.
|
| |
|
|
|
|
| |
Thanks to Ben Sturmfels for pointing out that it was missing.
|
|
|
|
|
|
| |
* website/haunt.scm (%piwik-code): New variable.
(haunt-theme): Include Piwik JS on all pages.
* website/js/piwik.js: New file.
|
| |
|
|
|
|
| |
Thanks to Ben Sturmfels for pointing it out.
|
| |
|
| |
|
|
|
|
| |
* Makefile.am (bin_SCRIPTS): New variable.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
* haunt/ui/serve.scm (watch): Remove 'ignore-dirs' argument. Add
'check-file?' and 'check-dir?' arguments.
(haunt-serve): Use new 'watch' procedure.
|
| |
|
|
|
|
|
| |
* haunt/asset.scm (directory-assets): Add 'keep?' argument.
(static-directory): Use site file filter.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Genericized name because the predicate procedure may be used on any
file, not just posts.
* haunt/site.scm (<site>)[post-filter]: Delete.
[file-filter]: New field.
(site): Replace #:post-filter with #:file-filter.
(build-site): Use 'site-post-filter'.
(make-file-name-filter): Delete.
(make-file-filter): New procedure.
(default-file-name-filter): Delete.
(default-file-filter): New procedure.
* haunt/reader.scm (read-posts): Flip predicate around.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Rather than having a hardcoded index page, a blog now accepts a variable
number of "collection" tuples that describe the page title, file name,
and the filter procedure for the posts that will appear on that page.
* haunt/builder/blog.scm (<theme>) [list-template]: Delete.
[collection-template]: New field.
(theme-list-template): Delete.
(theme-collection-template): New accessor.
(make-theme): Replace #:list-template with #:collection-template.
(render-list): Delete.
(render-collection): New procedure.
(ugly-theme): Use #:collection-template argument.
(blog): Add #:collections argument.
|
|
|
|
| |
* haunt/builder/blog.scm: Export date->string*.
|
|
|
|
|
| |
* haunt/site.scm (build-site): Test for the existence of posts
directory.
|
|
|
|
|
| |
* haunt/site.scm (default-file-filter): Ignore files that begin with "."
or "#".
|
|
|
|
|
|
|
| |
* haunt/ui/serve.scm (show-help): Add help text for --watch.
(%options): Add --watch option.
(watch): New procedure.
(haunt-serve): DTRT when --watch is specified.
|
|
|
|
|
|
|
|
|
|
|
|
| |
This allows one to ignore files that would otherwise match a reader's
file extension, such as an Emacs temporary file like ".#foo.html".
* haunt/site.scm (<site>)[post-filter]: New field.
(site-posts-filter): New accessor.
(site): Add #:post-filter argument.
(build-site): Pass post filter procedure to 'read-posts'.
(make-file-name-filter, default-file-name-filter): New procedures.
* haunt/reader.scm (read-posts): Add 'ignore?' argument.
|
|
|
|
|
| |
* haunt/site.scm (site): Change "POST-SLUG" to "MAKE-SLUG" in doc
string.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Co-Authored-By: David Thompson <davet@gnu.org>
* haunt/site.scm (<site>)[make-slug]: New field.
(site-make-slug, site-post-slug): New procedures.
(site): Add #:make-slug keyword argument.
* haunt/builder/blog.scm (render-list): Pass site to theme's list
template.
(ugly-theme): Add 'site' argument to #:list-template procedure.
(blog): Use 'site-post-slug'.
* haunt/builder/atom.scm (atom-feed, post->atom-entry): Likewise.
|
|
|
|
|
|
| |
* example/haunt.scm: Add static directory builder.
* example/images/guile-banner.small.png: New file.
* example/posts/foo.sxml: Render Guile banner image.
|
|
|
|
|
|
|
| |
Just copy the raw bytes.
* haunt/serve/web-server.scm (dump-file): Delete.
(render-file): Return a bytevector instead of a writer procedure.
|
| |
|
|
|
|
| |
* haunt/site.scm (build-site): Replace '->' with '→'.
|
|
|
|
| |
* haunt/ui.scm (haunt-main): Set LC_ALL.
|
|
|
|
|
| |
* haunt/utils.scm (file-name-components): Return the empty list when
given the empty string.
|
|
|
|
|
| |
* haunt/asset.scm: Add introductory comment.
* README.md (Example Configuration): Add 'directory-assets' example.
|
|
|
|
|
| |
* haunt/builder/assets.scm: New file.
* Makefile.am (SOURCES): Add it.
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|