summaryrefslogtreecommitdiff
path: root/haunt
Commit message (Collapse)AuthorAgeFilesLines
* publisher: Throw an error if name isn't a symbol.David Thompson2023-11-111-1/+6
|
* Add Sourcehut publisher.Filip Lajszczak2023-11-112-1/+63
| | | | | | | * haunt/publisher/sourcehut.scm: New file. * configure.ac: Check for presence of hut and tar. * Makefile.am: Conditionally add sourcehut publisher to build. * guix.scm: Add hut and tar inputs.
* ui: Add publish to list of subcommands.Filip Lajszczak2023-11-111-1/+1
| | | | | * haunt/ui.scm: Makes publish subcommand more discoverable by adding it to the list of subcommands displayed by top level --help
* post: Add convenience procedures for post author, tags, and title.Filip Lajszczak2023-11-101-2/+18
| | | | | | | | | | Author, tags and title metadata are commonly used, * haunt/post.scm (post-author, post-tags, post-title): New procedures. * tests/post.scm ("post-author, author metadata", "post-tags, tags metadata", "post-title, title metadata", "post-author, no metadata", "post-tags, no metadata", "post-title, no metadata"): New tests. * doc/haunt.texi (Posts): Docs for new procedures.
* Sidestep CORS issues when using local web server.David Thompson2023-09-201-1/+2
| | | | I fucking hate CORS!!!!!!!!!!
* Add application/wasm MIME type.David Thompson2023-09-201-0/+1
|
* ui: Fix typo in leave function docstring.jgart2023-06-131-1/+1
| | | | * haunt/ui.scm: Fix typo.
* post: Add fallback value to post-time.Jelle Licht2023-03-211-1/+1
| | | | | * haunt/post.scm (post-time): Implement in terms of post-date, which has a fallback value.
* Fix copyright year in (haunt ui publish).David Thompson2023-02-271-1/+1
|
* site: Use issue-deprecation-warning for deprecation notification.David Thompson2022-10-221-2/+6
|
* Add missing haunt/ui/publish.scm file.David Thompson2022-08-211-0/+69
| | | | Oops!
* Add publishing interface with built-in support for rsync.David Thompson2022-08-214-7/+144
|
* Factor watch implementations into their own modules.David Thompson2022-07-093-113/+151
| | | | | | This should also hopefully resolve some issues that Christine Lemmer-Webber reported with the old code when resolving all of those inotify bindings at runtime.
* ui: serve: Allow for setting the host explicitly.Christine Lemmer-Webber2022-06-011-3/+26
| | | | Also update docs accordingly.
* ui: Make cli options consistent.Filip Lajszczak2022-02-232-2/+2
| | | | | | | * haunt/ui.scm: Option to display version with single character flag was missing for the root command... * haunt/ui/build.scm: ...and was present but undocummented for the build command.
* ui: serve: Fix lazy loading of inotify module.David Thompson2022-02-061-9/+13
|
* Do not compile or load inotify module when inotify is not available.David Thompson2022-02-061-1/+11
|
* ui: serve: Reload user modules when they change.David Thompson2022-02-051-0/+17
|
* builder: blog: Add support for collection pagination.David Thompson2022-02-051-19/+104
|
* Fix Guile < 3.0 compatibility issue.David Thompson2022-01-133-6/+39
|
* ui: serve: Watch files with inotify on Linux.David Thompson2022-01-131-14/+63
|
* Add inotify bindings.David Thompson2022-01-131-0/+224
|
* Mark modules that call 'load' as non-declarative.v0.2.5David Thompson2021-04-153-0/+3
|
* Revert "html: Add support for comments."David Thompson2021-03-181-2/+0
| | | | | | | This reverts commit 93334118aa3e156a0c47e76014fabc36b0752ebc. You cannot just put an unsanitized string in a comment, because there certain strings that cannot appear in a comment.
* html: Add support for comments.David Thompson2021-03-181-0/+2
| | | | Thanks to Riku Viitanen for the patch.
* builder: rss: Fix "//" in URI path when there is no blog prefix.David Thompson2021-03-181-2/+5
|
* builder: blog: Remove (haunt page) import.David Thompson2021-03-181-1/+0
|
* builder: rss: Migrate to artifacts.David Thompson2021-03-181-17/+22
|
* rss: Made RSS builder more W3-validation compliantPhilip K2021-03-181-28/+41
|
* Create a unified type for build artifacts.David Thompson2021-03-185-31/+105
| | | | Deprecate <page> and <asset>.
* utils: Remove leading "/" in join-file-name-components.David Thompson2021-03-181-1/+1
|
* site: Add files ending in "~" to the default file filter.David Thompson2021-03-181-1/+1
| | | | They are Emacs temp files.
* reader: Follow symlinks in read-posts.David Thompson2021-03-181-1/+1
|
* atom: Change date format from ISO-8601 to RFC-3339.Philip K2019-08-151-2/+2
| | | | * haunt/builder/atom.scm (date->string*): Format in RFC-3339 style.
* atom: Add 'id' attribute to feed and entries.David Thompson2019-06-281-35/+46
|
* site: Add scheme field.David Thompson2019-06-281-2/+7
| | | | | * haunt/site.scm (<site>)[scheme]: New field. (site): Add #:scheme keyword argument.
* reader: html: Add support for multiple top-level elements.Jakob L. Kreuze2019-05-211-2/+11
| | | | | Currently, if given a file containing more than one top-level elements, 'read-html-post will only return the first.
* reader: skribe: Add additional HTML 5 tags.humanitiesNerd2019-01-051-2/+6
| | | | * haunt/skribe/utils.scm (h5 h6 section nav aside): New procedures.
* atom: links should use href attribute, not url attribute.Christopher Lemmer Webber2018-11-291-1/+1
| | | | | * haunt/builder/atom.scm (post->atom-entry): Switch url attribute to href attribute.
* Add RSS support.Christopher Lemmer Webber2018-11-251-0/+107
| | | | | * haunt/builder/rss.scm: New file with support for RSS feeds. * Makefile.am: Add it.
* atom: Add support for enclosures.David Thompson2018-11-181-2/+102
| | | | | | | | | | | | The most notable use-case here is allowing Haunt to be used for podcasting. Thanks to Christopher Lemmer Webber for wanting to use Haunt to build their podcast Atom feed! * haunt/builder/atom.scm (<enclosure>): New record type. (make-enclosure, enclosure?, enclosure-title, enclosure-url, enclosure-extra, enclosure-mime-type, parse-enclosure): New procedures. (post->atom-entry): Render enclosures.
* post: Add post-ref-all procedure.David Thompson2018-11-181-0/+8
| | | | * haunt/post.scm (post-ref-all): New procedure.
* post: Fix export for register-metadata-parser!David Thompson2018-11-181-1/+1
| | | | | * haunt/post.scm: Fix typo preventing other modules from using register-metadata-parser!
* serve: Fix 'file-extension' so that the right MIME type is chosen.Ludovic Courtès2017-12-211-10/+4
| | | | | | | | Reported by sirgazil at <https://lists.gnu.org/archive/html/guile-user/2017-12/msg00070.html>. * haunt/serve/mime-types.scm (%file-ext-regexp): Remove. (file-extension): Rewrite using 'string-rindex'.
* html: Stop escaping apostrophes.David Thompson2017-11-011-1/+0
| | | | | | | | | | | This was breaking the rendering of documents like: '(p (@ (onclick "javascriptFunction('argmunent')"))) The single quotes would be escaped and then the onclick handler wouldn't work at all. * haunt/html.scm (%escape-codes): Remove apostrophe escape code.
* ui: serve: Fix deprecation warning.Jelle Licht2017-10-311-0/+1
| | | | * haunt/ui/serve.scm: Add '(ice-9 threads)' module import.
* Don't ignore a specified non-default port in 'haunt serve'.Sudarshan S Chawathe2017-09-031-1/+1
| | | | | Without this patch 'haunt serve' claims to use the specified non-default port, but in fact uses the default 8080 instead.
* builder: atom: Provide a full URL for the "self" link.Ludovic Courtès2016-11-011-1/+2
| | | | | * haunt/builder/atom.scm (atom-feed): Use SITE's domain to generate a full URL for the "self" link.
* reader: Add commonmark support.Erik Edrosa2016-08-021-0/+37
| | | | | | * haunt/reader/commonmark.scm: New file. * Makefile.am (SOURCES): Add it. * configure.ac: Check for guile-commonmark.
* serve: Catch exceptions when rebuilding site.David Thompson2016-04-211-1/+16
| | | | | | | | Now 'haunt serve --watch' won't crash when you put some bad code in a post! * haunt/ui/server.scm (call-with-error-handling): New procedure. (watch): Wrap build-site call in call-with-error-handling form.