feat: node title

This commit is contained in:
2026-04-18 16:55:10 -06:00
parent 5472d93cff
commit 32a45b3a16
2 changed files with 5 additions and 3 deletions

View File

@@ -63,14 +63,15 @@
(defn org-document
"Recursively render an Org-mode document to Hiccup."
[doc & {:as opts :keys [postamble header]}]
[doc & {:as opts :keys [postamble header title]}]
(binding [*opts* opts]
(tex-temml/binding-worker
(let [rendered (-> doc gather-footnotes render-tex-snippets
org-element-recursive)]
[:html
[:head
[:title "org document"]
(when title
[:title title])
doerg-html/head]
[:body {:lang default-language}
(when header

View File

@@ -111,7 +111,8 @@
:compute #(doerg-render/to-html
org-file
:postamble (backlinks-postamble node)
:header navbar))
:header navbar
:title (roam/title node)))
(-> (str html-file)
response/file-response
(response/content-type "text/html")))