2021-06-07 02:38:03 +00:00
|
|
|
#lang s-exp "../xtemplate.rkt"
|
|
|
|
|
|
|
|
`(html
|
|
|
|
([lang "en"])
|
|
|
|
(head
|
|
|
|
()
|
|
|
|
,*banner*
|
|
|
|
(meta ([charset "utf-8"]))
|
2021-06-07 03:09:23 +00:00
|
|
|
(title () ,(metadata-ref+ metadata 'title "<untitled article>"))
|
2021-06-07 02:38:03 +00:00
|
|
|
(meta ([name "viewport"] [content "width=device-width, initial-scale=1"]))
|
2021-06-07 03:09:23 +00:00
|
|
|
,@(match (metadata-ref+ metadata 'summary)
|
2021-06-07 02:38:03 +00:00
|
|
|
[#f '()]
|
|
|
|
[summary
|
|
|
|
`((meta ([name "description"] [content ,summary])))])
|
2021-06-07 03:09:23 +00:00
|
|
|
,@(match (metadata-ref metadata 'authors)
|
2021-06-07 02:38:03 +00:00
|
|
|
[(or #f '()) '()]
|
|
|
|
[authors
|
|
|
|
`((meta ([name "author"] [content ,(string-join authors ", ")])))])
|
2021-06-07 03:09:23 +00:00
|
|
|
,@(match (metadata-ref metadata 'date)
|
2021-06-07 02:38:03 +00:00
|
|
|
[#f '()]
|
2021-06-07 03:09:23 +00:00
|
|
|
[(list yn mn dn)
|
|
|
|
`((meta ([name "DC.Date.created"]
|
|
|
|
[content ,(format "~a-~a-~a"
|
|
|
|
(~r yn #:min-width 4 #:pad-string "0")
|
|
|
|
(~r mn #:min-width 2 #:pad-string "0")
|
|
|
|
(~r dn #:min-width 2 #:pad-string "0"))])))])
|
2021-06-07 02:38:03 +00:00
|
|
|
(meta ([name "generator"] [content "meow meow meow meow"]))
|
|
|
|
;<link rel="shortcut icon" type="image/png" href="haskal.png"/>
|
2021-06-07 03:09:23 +00:00
|
|
|
(style ([type "text/css"]) ,page-styles))
|
2021-06-07 02:38:03 +00:00
|
|
|
(body
|
|
|
|
()
|
|
|
|
(nav
|
|
|
|
()
|
2021-06-07 03:09:23 +00:00
|
|
|
,content-toc)
|
2021-06-07 02:38:03 +00:00
|
|
|
(main
|
|
|
|
()
|
2021-06-07 03:09:23 +00:00
|
|
|
,@content)
|
2021-06-07 02:38:03 +00:00
|
|
|
,*mathjax-placeholder*))
|