Commit Graph

172 Commits

Author SHA1 Message Date
Dan Frumin 0130760f3f Add the `site-posts-output-directory` field.
- Remove the "prefix" argument from the theme objects in the blog
  builder.
- Remove the "blog-prefix" argument from the rss and atom builders.

A user can specify the output directory for the posts in the SITE
record, this, together with the SITE-SLUG function, allows one to
generate relative and absolute URLs to the posts. This information is
used in all the builders that operate on posts collections.
2019-12-16 13:50:33 +01:00
Philip K 65adbb052f atom: Change date format from ISO-8601 to RFC-3339.
* haunt/builder/atom.scm (date->string*): Format in RFC-3339 style.
2019-08-15 07:47:39 -04:00
Dan Frumin d66515e8b3 guix: Update module includes to work with newer versions of Guix. 2019-06-28 08:36:41 -04:00
Dan Frumin e4d7e9b605 doc: Fix typo in "Builders" section.
* doc/haunt.texi: Fix typo.
2019-06-28 08:36:41 -04:00
David Thompson d92411f7c1 atom: Add 'id' attribute to feed and entries. 2019-06-28 08:29:09 -04:00
David Thompson 794125e408 site: Add scheme field.
* haunt/site.scm (<site>)[scheme]: New field.
  (site): Add #:scheme keyword argument.
2019-06-28 08:26:01 -04:00
David Thompson efb1739a69 configure: Accept Guile 3.0. 2019-05-21 08:40:51 -04:00
Jakob L. Kreuze 142006f884 reader: html: Add support for multiple top-level elements.
Currently, if given a file containing more than one top-level elements,
'read-html-post will only return the first.
2019-05-21 08:40:40 -04:00
humanitiesNerd e25ed2d569 reader: skribe: Add additional HTML 5 tags.
* haunt/skribe/utils.scm (h5 h6 section nav aside): New procedures.
2019-01-05 12:06:44 -05:00
David Thompson 1bfb388123 Bump version to 0.2.4. 2018-11-29 11:40:46 -05:00
Christopher Lemmer Webber 286edaa5de atom: links should use href attribute, not url attribute.
* haunt/builder/atom.scm (post->atom-entry): Switch url attribute to
  href attribute.
2018-11-29 11:29:59 -05:00
David Thompson a7dac982c2 git: Ignore tarball signature files. 2018-11-25 16:05:46 -05:00
David Thompson 928f0e2921 Bump version to 0.2.3. 2018-11-25 15:59:07 -05:00
David Thompson 98471930c9 README: Mention RSS. 2018-11-25 15:58:42 -05:00
Christopher Lemmer Webber 8891da0e3a Add RSS support.
* haunt/builder/rss.scm: New file with support for RSS feeds.
* Makefile.am: Add it.
2018-11-25 15:56:21 -05:00
David Thompson 15c4605e1d atom: Add support for enclosures.
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.
2018-11-18 20:47:47 -05:00
David Thompson 51e2f10645 post: Add post-ref-all procedure.
* haunt/post.scm (post-ref-all): New procedure.
2018-11-18 20:46:36 -05:00
David Thompson ea14e56f0c post: Fix export for register-metadata-parser!
* haunt/post.scm: Fix typo preventing other modules from using
  register-metadata-parser!
2018-11-18 20:45:31 -05:00
David Thompson b37ef63b8a Thank Jorge Maldonado Ventura. 2018-04-02 10:11:06 -04:00
Jorge Maldonado Ventura f49a5cb3d4 doc: Fix tarball download link.
* doc/haunt.texi (Downloading): Fix outdated download link.
2018-04-02 10:10:18 -04:00
David Thompson efa145cc4b Thank Alex Kost. 2018-03-19 10:11:25 -04:00
David Thompson 2cab166b3f Bump to version 0.2.2. 2018-03-10 19:59:35 -05:00
David Thompson e8e0065b81 Makefile: Fix compiled Guile file installation directory. 2018-03-10 19:59:18 -05:00
Ludovic Courtès ac1156e027 guix: Switch to Guile 2.2.
* guix.scm <inputs>: Switch to GUILE-2.2.
2017-12-21 08:51:13 -05:00
Ludovic Courtès e7b1b290b1 serve: Fix 'file-extension' so that the right MIME type is chosen.
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'.
2017-12-21 08:51:02 -05:00
David Thompson 4bf24d36f6 Thank Urbain Vaes. 2017-11-01 13:40:22 -04:00
David Thompson 99181c71bc html: Stop escaping apostrophes.
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.
2017-11-01 11:57:28 -04:00
Jelle Licht be68ae7410 ui: serve: Fix deprecation warning.
* haunt/ui/serve.scm: Add '(ice-9 threads)' module import.
2017-10-31 11:07:19 -04:00
Sudarshan S Chawathe 829ee49c2d Don't ignore a specified non-default port in 'haunt serve'.
Without this patch 'haunt serve' claims to use the specified
non-default port, but in fact uses the default 8080 instead.
2017-09-03 15:05:05 -04:00
David Thompson 9e4fba766d website: Update manual. 2017-01-23 20:40:04 -05:00
David Thompson 16bc1eae0c Add 0.2.1 release announcement. 2017-01-23 20:14:59 -05:00
David Thompson 6568361bd3 Add 'make publish' target. 2017-01-23 19:45:05 -05:00
David Thompson 970dc04539 Bump version to 0.2.1. 2017-01-23 19:44:59 -05:00
David Thompson 288d2041e5 Fix tests that fail during daylight savings time.
lol oops
2017-01-23 19:43:22 -05:00
Erik Edrosa 1ef922f8f8 doc: Add Readers section and reader subsections.
* doc/haunt.texi ("Readers"): Add menu.
("Reader"): Change Readers to a subsection.
("Texinfo"): Add Textinfo subsection.
("Skribe"): Add Skribe subsection.
("CommonMark"): Add CommonMark subsection.
2016-12-14 20:52:41 -05:00
Ludovic Courtès ba6c6b16e2 builder: atom: Provide a full URL for the "self" link.
* haunt/builder/atom.scm (atom-feed): Use SITE's domain to generate a
full URL for the "self" link.
2016-11-01 08:55:16 -04:00
David Thompson a539914301 example: Add a Markdown post.
* example/haunt.scm: Add the commonmark-reader.
* example/posts/frob.md: New file.
2016-08-18 15:20:42 -04:00
David Thompson 3feed55361 guix: Add guile-commonmark as a propagated input. 2016-08-18 15:07:18 -04:00
Erik Edrosa 0f4e684f22 doc: Add guile-commonmark as optional dependency.
* doc/haunt.text ("Requirements"): Add guile-commonmark.
* README ("Requirements"): Add guile-commonmark.
2016-08-18 15:04:38 -04:00
Erik Edrosa a4d18c0c53 reader: Add commonmark support.
* haunt/reader/commonmark.scm: New file.
* Makefile.am (SOURCES): Add it.
* configure.ac: Check for guile-commonmark.
2016-08-02 07:48:24 -04:00
Vladimir Zhbanov ef02127d54 doc: Fix a typo in procedure name.
* doc/haunt.texi ("Posts"): s/post-data/post-date/
2016-06-07 07:55:05 -04:00
David Thompson 7e01cff135 Thank Vladimir. 2016-05-20 06:39:25 -04:00
Vladimir Zhbanov 857a04af62 doc: Fix procedure name.
* doc/haunt.texi: s/matcher/proc/
2016-05-20 06:36:31 -04:00
David Thompson 05490b8462 website: Fix small capitalization mistake. 2016-04-24 15:32:34 -04:00
David Thompson ff72afa49e website: Thank Chris and Mathieu. 2016-04-24 15:30:31 -04:00
David Thompson d3a9ba4ebe website: Add copy of HTML manual. 2016-04-24 15:26:44 -04:00
David Thompson 28fc90b25e website: Add 0.2 release announcement. 2016-04-24 15:11:41 -04:00
David Thompson 4130a355d3 Fix 'make distcheck'. 2016-04-24 15:08:56 -04:00
David Thompson 3f6eecc8d1 guix: Update development snapshot. 2016-04-24 11:32:41 -04:00
David Thompson f0a7c2b14a doc: Expand API documentation. 2016-04-23 16:17:53 -04:00