nani/website/haunt.scm

haunt.scm

1
;;; Nani Project website
2
;;; Copyright © 2019 Julien Lepiller <julien@lepiller.eu>
3
;;;
4
;;; This file is part of the Nani Project website.
5
;;;
6
;;; The Nani Project website is free software; you can redistribute it and/or modify it
7
;;; under the terms of the GNU Affero General Public License as published by
8
;;; the Free Software Foundation; either version 3 of the License, or (at
9
;;; your option) any later version.
10
;;;
11
;;; The Nani Project website is distributed in the hope that it will be useful, but
12
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
;;; GNU Affero General Public License for more details.
15
;;;
16
;;; You should have received a copy of the GNU Affero General Public License
17
;;; along with the Nani Project website.  If not, see <http://www.gnu.org/licenses/>.
18
19
(use-modules (haunt asset)
20
	     (haunt reader)
21
	     (haunt site)
22
	     (haunt builder assets)
23
	     (haunt builder atom))
24
25
(use-modules (pages index)
26
	     (pages data)
27
	     (pages documentation)
28
	     (pages e404)
29
	     (pages feeds)
30
	     (pages mentions)
31
	     (pages blog))
32
33
(site #:title "Nani Project"
34
      #:domain "xana.lepiller.eu"
35
      #:default-metadata
36
      '((author . "Julien Lepiller")
37
        (email  . "webmaster@lepiller.eu"))
38
      #:readers (list sxml-reader)
39
      #:builders (append
40
                   (list (atom-feed #:filter get-posts)
41
                         (atom-feeds-by-tag #:filter get-posts)
42
                         (static-directory "css")
43
                         (static-directory "dicos")
44
                         (static-directory "images"))
45
                  blog-pages
46
                  page404
47
                  page-data
48
                  page-documentation
49
                  page-feeds
50
                  page-mentions
51
                  page-index))
52