summaryrefslogtreecommitdiff
path: root/haunt.scm
blob: fc7d311ed89c54cb774470e9804082989d6550c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
;;; Copyright © 2018-2021 David Thompson <davet@gnu.org>
;;;
;;; This program is free software; you can redistribute it and/or
;;; modify it under the terms of the GNU General Public License as
;;; published by the Free Software Foundation; either version 3 of the
;;; License, or (at your option) any later version.
;;;
;;; This program is distributed in the hope that it will be useful,
;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
;;; General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with this program.  If not, see
;;; <http://www.gnu.org/licenses/>.

(use-modules (haunt asset)
             (haunt builder blog)
             (haunt builder atom)
             (haunt builder assets)
             (haunt builder flat-pages)
             (haunt builder redirects)
             (haunt post)
             (haunt publisher rsync)
             (haunt site)
             (markdown)
             (projects)
             ((redirects) #:prefix dthompson:)
             (theme)
             (utils))

(define post-prefix "/posts")

(define collections
  `(("Recent Blog Posts" "index.html" ,posts/reverse-chronological)))

(site #:title "dthompson"
      #:domain "dthompson.us"
      #:default-metadata
      '((author . "David Thompson")
        (email  . "davet@gnu.org"))
      #:readers (list commonmark-reader*)
      #:builders (list (blog #:theme dthompson-theme
                             #:collections collections
                             #:post-prefix post-prefix
                             #:posts-per-page 10)
                       (redirects dthompson:redirects)
                       (atom-feed #:blog-prefix post-prefix)
                       (atom-feeds-by-tag #:blog-prefix post-prefix)
                       (flat-pages "pages"
                                   #:template (theme-layout dthompson-theme))
                       chickadee-page
                       sly-page
                       guile-sdl2-page
                       guile-syntax-highlight-page
                       guile-websocket-page
                       haunt-page
                       shroud-page
                       srt2vtt-page
                       (static-directory "css")
                       (static-directory "fonts")
                       (static-directory "images")
                       (static-directory "videos")
                       (static-directory "src"))
      #:publishers (list (rsync-publisher #:destination "/var/www/blog"
                                          #:user "publish"
                                          #:host "dthompson.us"))
      #:make-slug post-slug-v2)