diff --git a/modules/blox-plugin-reveal/layouts/_partials/slides.html b/modules/blox-plugin-reveal/layouts/_partials/slides.html index 4f87c5f8..9dc066ef 100644 --- a/modules/blox-plugin-reveal/layouts/_partials/slides.html +++ b/modules/blox-plugin-reveal/layouts/_partials/slides.html @@ -13,12 +13,22 @@ {{/* Let `---` delimit slides. In Goldmark, that is `
`. Alternatively, for Blackfriday, use `
`. */}} {{ range (split $content "
") }} + {{/* Check if this slide should be hidden using inline comment */}} + {{ $isHidden := false }} + {{ $slideContent := . }} + + {{ if in . "" }} + {{ $isHidden = true }} + {{/* Remove the hide comment from the content */}} + {{ $slideContent = replace . "" "" }} + {{ end }} + {{/* Each `
` defines a new slide. */}} {{/* Only begin new slide `
` if not already added by custom `slide` shortcode. */}} {{ if not (in . "data-noprocess") }} -
+ {{ end }} - {{ . | safeHTML }} + {{ $slideContent | safeHTML }}
{{ end }} diff --git a/templates/academic-cv/content/slides/example/index.md b/templates/academic-cv/content/slides/example/index.md index 56264936..bb3e44ca 100644 --- a/templates/academic-cv/content/slides/example/index.md +++ b/templates/academic-cv/content/slides/example/index.md @@ -289,6 +289,20 @@ Try these keyboard shortcuts: - `/` : Search - `ESC` : Exit modes +--- + +## Hidden Slide Demo (Inline Comment) + +This slide is hidden using the `` comment method. + +Perfect for: +- Speaker-only content +- Backup slides +- Work-in-progress content + +Note: +This slide won't appear in the presentation but remains in source for reference. + --- ## Thanks