From 936509a4a5be6032a06323b6dd8994cf4e62aa6b Mon Sep 17 00:00:00 2001 From: Jakob L. Kreuze Date: Sat, 27 Apr 2019 20:24:39 -0400 Subject: Reorganize functions --- haunt.scm | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/haunt.scm b/haunt.scm index 07d23e3..dc8cd5c 100644 --- a/haunt.scm +++ b/haunt.scm @@ -75,6 +75,15 @@ ((head . tail) (loop tail (cons head result))))))) +(define %collections + `(("Recent Blog Posts" "index.html" ,posts/reverse-chronological))) + +(define (static-page title file-name body) + (lambda (site posts) + (make-page file-name + (with-layout jakob-theme site title body) + sxml->html))) + (define jakob-theme (theme #:name "jakob" #:layout @@ -138,15 +147,6 @@ free culture works available under the " ,%cc-by-sa-link " license.") (a (@ (href ,uri)) "read more ➔")))) posts))))) -(define %collections - `(("Recent Blog Posts" "index.html" ,posts/reverse-chronological))) - -(define (static-page title file-name body) - (lambda (site posts) - (make-page file-name - (with-layout jakob-theme site title body) - sxml->html))) - (define about-page (static-page "About Me" -- cgit v1.3