2022-09-07 09:14:07 -03:00
|
|
|
|
|
|
|
#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://www.example.com")
|
2022-09-07 10:13:15 -03:00
|
|
|
(current-title "CS2163 Blog")
|
|
|
|
(current-author "Isaac Shoebottom"))
|
2022-09-07 09:14:07 -03:00
|
|
|
|
|
|
|
;; 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 (if (eq? (system-type) 'windows)
|
|
|
|
"python.exe"
|
|
|
|
"python")
|
|
|
|
#:line-numbers? #t
|
|
|
|
#:css-class "source")
|
|
|
|
(auto-embed-tweets #:parents? #t)
|
|
|
|
(add-racket-doc-links #:code? #t #:prose? #f)))
|
|
|
|
|
|
|
|
;; Called from `raco frog --clean`.
|
|
|
|
(define/contract (clean)
|
|
|
|
(-> any)
|
|
|
|
(void))
|