"space m e h o" to export and you gotta "control b" to only export the buffer.Not only that but you also need to include
- #+OPTIONS: toc:nil num:nil created:nil date:nil author:nil
even after that theres still not stylesheet!
so add your stylesheet to this block of text and
put this in your doom emacs config.el
(after! org
  ;; Set the default HTML stylesheet link
  (setq org-html-head (concat ""))
  ;; Customize Org export settings
  (setq org-export-with-author nil      ; Exclude the author info
        org-export-time-stamp-file nil  ; Exclude the timestamp
        org-html-postamble nil))        ; Exclude postamble content
;; Function to export to HTML without opening the file
(defun my-org-export-to-html ()
  "Export Org Mode buffer to HTML."
  (interactive)
  (org-html-export-to-html)) ; Export to HTML
;; Bind this export function to a key
(map! :leader
      :desc "Export to HTML"
      "e h" #'my-org-export-to-html)
No comments:
Post a Comment