summaryrefslogtreecommitdiff
path: root/haunt.scm
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2023-09-24 23:36:38 +0200
committerRicardo Wurmus <rekado@elephly.net>2023-09-24 23:36:38 +0200
commitdfdb70ca28be64f2899932cbd360532f1f520d2f (patch)
treedaf8bb763d32ac6fe46a8f5c915fc8ec6de3c810 /haunt.scm
parent70b83bcb1848aa8de5533f409a36ec5ceab72dae (diff)
Add client-side syntax highlighting.
Temporary until I can hook up guile-syntax-highlighting for static highlighting.
Diffstat (limited to 'haunt.scm')
-rw-r--r--haunt.scm8
1 files changed, 7 insertions, 1 deletions
diff --git a/haunt.scm b/haunt.scm
index 25d4fb2..ec24cdb 100644
--- a/haunt.scm
+++ b/haunt.scm
@@ -191,11 +191,17 @@ in parentheses."
(media "screen")
(type "text/css")
(href "/css/screen.css")))
+ (link (@ (rel "stylesheet")
+ (media "screen")
+ (type "text/css")
+ (href "/css/hlstyles/monokai.min.css")))
(link (@ (rel "shortcut icon")
(href "https://elephly.net/favicon.ico")))
(script (@ (type "text/javascript") (src "/js/deobfuscate.js")))
+ (script (@ (type "text/javascript") (src "/js/highlight.min.js")))
(script (@ (type "text/javascript") (src "/js/hyphenator/Hyphenator.js")))
- (script (@ (type "text/javascript")) "Hyphenator.run();"))
+ (script (@ (type "text/javascript")) "Hyphenator.run();")
+ (script (@ (type "text/javascript")) "hljs.highlightAll();"))
(body (@ (id "top"))
(div (@ (id "index"))
(a (@ (href "/") (title "show index"))