From 8e2c643910c5af4d7fa9ce78f417efb3f78bc2ba Mon Sep 17 00:00:00 2001 From: Jakob L. Kreuze Date: Mon, 29 Apr 2019 19:37:51 -0400 Subject: Implement syntax highlighting --- haunt.scm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/haunt.scm b/haunt.scm index 0fa918b..ccee372 100644 --- a/haunt.scm +++ b/haunt.scm @@ -93,7 +93,10 @@ (meta (@ (charset "utf-8"))) (title ,(string-append title " — " (site-title site))) ,(stylesheet "fonts") - ,(stylesheet "jakob")) + ,(stylesheet "highlight") + ,(stylesheet "jakob") + (script (@ (src "/js/highlight.pack.js"))) + (script "hljs.initHighlightingOnLoad()")) (body (div (@ (class "container")) (div (@ (class "nav")) @@ -170,5 +173,6 @@ free culture works available under the " ,%cc-by-sa-link " license.") about-page projects-page (static-directory "css") + (static-directory "js") (static-directory "fonts") (static-directory "images"))) -- cgit v1.3