summaryrefslogtreecommitdiff
path: root/src/operationnull/site.scm
blob: 084bf1bf500a5de8af5e603f0ebf4d7a83c68c4b (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
(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
  `(("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 "pages/contact.html" "contact")
			 (blog #:theme main-theme
                               #:prefix "/posts/"
                               #:collections %blog-collection)
			 (static-page gold-content "pages/gold.html" "More Worthless than Gold")
			 (atom-feed)
			 (atom-feeds-by-tag)
			 (static-directory "content/assets" "assets"))))