summaryrefslogtreecommitdiff
path: root/src/operationnull/site.scm
blob: f1acfcea35be021c9c1c6e1af559e702992084a9 (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
(define-module (operationnull site)
  #:use-module (haunt builder assets)
  #:use-module (haunt builder atom)
  #:use-module (haunt builder blog)
  #:use-module (haunt html)
  #:use-module (haunt post)
  #:use-module (haunt reader)
  #:use-module (haunt reader commonmark)
  #:use-module (haunt site)
  #:use-module (operationnull pages)
  #:use-module (operationnull static)
  #:use-module (operationnull theme)
  #:export (main-site))


(define %blog-collection
  `(("Recent Posts" "/posts/index.html" ,posts/reverse-chronological)))

(define main-site
  (site #:title "operationnull"
        #:domain "operationnull.com"
        #:posts-directory "content/posts"
        #:build-directory "target"
        #:default-metadata
        '((author . "bdunahu"))
        #:readers (list commonmark-reader)
        #:builders (list (static-page index-content "index.html" "home")
                         (static-page contact-content "/contact.html" "contact")
                         (blog #:theme main-theme
                               #:prefix "/posts/"
                               #:collections %blog-collection)
                         (static-page e404 "/404.html" "404 Error")
                         (static-page gold-content "/gold.html" "More Worthless than Gold")
                         (atom-feed #:file-name "atom.xml"
                                    #:subtitle "Recent Posts")
                         ;; (atom-feeds-by-tag)
                         (static-directory "content/assets" "assets"))))