capybara/templates/page.html.rkt

39 lines
1.4 KiB
Racket
Raw Normal View History

2021-06-07 02:38:03 +00:00
#lang s-exp "../xtemplate.rkt"
`(html
([lang "en"])
(head
()
2021-06-07 07:56:53 +00:00
(!HTML-COMMENT () " this page made with: trans rights 🏳️‍⚧️ ")
2021-06-07 02:38:03 +00:00
(meta ([charset "utf-8"]))
2021-06-08 07:14:44 +00:00
(title () ,(metadata-ref+ metadata 'title "<untitled page>"))
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"]
2021-06-08 07:14:44 +00:00
[content ,(format "~a-~a-~a" (~r/pad yn 4) (~r/pad mn 2) (~r/pad dn 2))])))])
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 09:09:20 +00:00
(link ([rel "stylesheet"] [type "text/css"] [href "index.css"])))
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
()
,@content
,(include "include.html.rkt"))
2021-06-07 07:56:53 +00:00
;; mathjax polyfill script sentinel -- gets replaced by a script tag for crying doge chrombe
;; and with nothing for swole firefox
(div ([style "display: none"]) "__X_MATHJAX_POLYFILL_PLACEHOLDER__")))