diff options
| author | Craig Jennings <c@cjennings.net> | 2026-02-15 15:21:21 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-02-15 15:21:21 -0600 |
| commit | 5a441f2576a4ff45cf39a44171ea15f2f1d43d01 (patch) | |
| tree | c50bd9a75bcf626a094b16c92f0f0246557c267a /modules | |
| parent | 79861ad52c11b0789bf7366fa43c4b07d0946f6d (diff) | |
| download | dotemacs-5a441f2576a4ff45cf39a44171ea15f2f1d43d01.tar.gz dotemacs-5a441f2576a4ff45cf39a44171ea15f2f1d43d01.zip | |
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.el | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/modules/org-reveal-config.el b/modules/org-reveal-config.el index 3ab80315f..9dfbb99a5 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) |
