simplify title logic
[~bandali/bndl.org] / haunt.scm
CommitLineData
4b11ed9d
AB
1;;; Copyright © 2019 Amin Bandali <bandali@gnu.org>
2;;;
3;;; This program is free software; you can redistribute it and/or
4;;; modify it under the terms of the GNU General Public License as
5;;; published by the Free Software Foundation; either version 3 of the
6;;; License, or (at your option) any later version.
7;;;
8;;; This program is distributed in the hope that it will be useful,
9;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
10;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11;;; General Public License for more details.
12;;;
13;;; You should have received a copy of the GNU General Public License
14;;; along with this program. If not, see
15;;; <http://www.gnu.org/licenses/>.
16
17(use-modules (bandali feeds)
18 (bandali pages)
19 (bandali prefs)
20 (bandali tags)
21 (bandali theme)
85314da0 22 (haunt builder blog)
85314da0 23 (haunt builder assets)
85314da0
AB
24 (haunt post)
25 (haunt reader commonmark)
4b11ed9d 26 (haunt site))
7e8d7215 27
85314da0 28(site #:title "Amin Bandali"
b00243f0 29 #:scheme my-scheme ; requires haunt-next
85314da0
AB
30 #:domain my-domain
31 #:default-metadata
32 '((author . "Amin Bandali")
33 (email . "bandali@gnu.org")
34 (domain . my-domain))
35 #:readers (list commonmark-reader)
36 #:builders (list (blog #:theme bandali-theme
37 #:collections
38 `(("Notes" "notes.html"
39 ,posts/reverse-chronological)))
cfff0eef 40 (tag-pages)
85314da0 41 index-page
99ac860d 42 (atom-feed
cfff0eef 43 #:file-name "notes.atom")
99ac860d 44 (atom-feeds-by-tag
cfff0eef 45 #:prefix my-tag-prefix)
99ac860d 46 (rss-feed
cfff0eef 47 #:file-name "notes.rss")
4b11ed9d
AB
48 (rss-feeds-by-tag
49 #:prefix my-tag-prefix)
7c12f0da 50 contact-page
cd68557a 51 cv-page
cd5ad35b 52 license-page
577bfe36 53 se212-f19-page
85314da0 54 (static-directory "static" "")))