-
Notifications
You must be signed in to change notification settings - Fork 4
/
frog.rkt
40 lines (37 loc) · 1.28 KB
/
frog.rkt
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
#lang frog/config
;; Called early when Frog launches. Use this to set parameters defined
;; in frog/params.
(define/contract (init)
(-> any)
(current-scheme/host "http://pyret.org")
(current-uri-prefix #f)
(current-title "The Pyret Language")
(current-author "The Pyrets")
(current-editor "$EDITOR")
(current-editor-command "{editor} {filename}")
(current-show-tag-counts? #t)
(current-permalink "/blog/{year}/{month}/{day}/{title}/index.html")
(current-index-full? #f)
(current-feed-full? #t)
(current-max-feed-items 20)
(current-decorate-feed-uris? #t)
(current-feed-image-bugs? #t)
(current-posts-per-page 10)
(current-index-newest-first? #t)
(current-posts-index-uri "/blog/index.html")
(current-source-dir "src")
(current-output-dir "site"))
;; Called once per post and non-post page, on the contents.
(define/contract (enhance-body xs)
(-> (listof xexpr/c) (listof xexpr/c))
;; Here we pass the xexprs through a series of functions.
(~> xs
(syntax-highlight #:python-executable "python"
#:line-numbers? #f
#:css-class "source")
(auto-embed-tweets #:parents? #t)
(add-racket-doc-links #:code? #t #:prose? #t)))
;; Called from `raco frog --clean`.
(define/contract (clean)
(-> any)
(void))