summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-02-15 15:21:21 -0600
committerCraig Jennings <c@cjennings.net>2026-02-15 15:21:21 -0600
commit69965799360954e6c86c1b4a3e0930bb40a0a8de (patch)
treec510af25bdfa7143bb437e19fd9227f5843b0565 /modules
parent8be31167f77ace5a2660ac916c06866348b5fe5a (diff)
fix(reveal): suppress date/caps on title slide, move transition to init options
- Add date:nil, timestamp:nil, author:t to template OPTIONS - Set global CSS override (text-transform:none) via org-reveal-head-preamble - Move transition from obsolete REVEAL_TRANS to REVEAL_INIT_OPTIONS - Default transition changed to "none" - Global init options now reference cj/reveal-default-transition constant
Diffstat (limited to 'modules')
-rw-r--r--modules/org-reveal-config.el12
1 files changed, 7 insertions, 5 deletions
diff --git a/modules/org-reveal-config.el b/modules/org-reveal-config.el
index 3ab80315..9dfbb99a 100644
--- a/modules/org-reveal-config.el
+++ b/modules/org-reveal-config.el
@@ -33,7 +33,7 @@
(defconst cj/reveal-default-theme "black"
"Default reveal.js theme for new presentations.")
-(defconst cj/reveal-default-transition "slide"
+(defconst cj/reveal-default-transition "none"
"Default reveal.js slide transition for new presentations.")
;; --------------------------------- ox-reveal ---------------------------------
@@ -45,7 +45,10 @@
(setq org-reveal-single-file t)
(setq org-reveal-plugins '(highlight notes search zoom))
(setq org-reveal-highlight-css "%r/plugin/highlight/monokai.css")
- (setq org-reveal-init-options "slideNumber:true, hash:true"))
+ (setq org-reveal-init-options (format "slideNumber:true, hash:true, transition:'%s'"
+ cj/reveal-default-transition))
+ (setq org-reveal-head-preamble
+ "<style>.reveal h1,.reveal h2,.reveal h3,.reveal p{text-transform:none;}</style>"))
;; ----------------------------- Private Helpers -------------------------------
@@ -58,11 +61,10 @@
#+DATE: %s
#+REVEAL_ROOT: %s
#+REVEAL_THEME: %s
-#+REVEAL_TRANS: %s
-#+REVEAL_INIT_OPTIONS: slideNumber:true, hash:true
+#+REVEAL_INIT_OPTIONS: slideNumber:true, hash:true, transition:'%s'
#+REVEAL_PLUGINS: (highlight notes search zoom)
#+REVEAL_HIGHLIGHT_CSS: %%r/plugin/highlight/monokai.css
-#+OPTIONS: toc:nil num:nil
+#+OPTIONS: toc:nil num:nil date:nil timestamp:nil author:t
" title (user-full-name) (format-time-string "%Y-%m-%d")
(concat "file://" cj/reveal-root)