mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-18 16:13:23 +00:00
- Add branding overlays: logo, title, author, and footer text - Use Reveal.js theme CSS variables for automatic color adaptation - Inline SVGs for currentColor support on any theme - Per-slide control via HTML comments: - <!-- no-branding -->: hide all elements - <!-- no-header -->: hide logo + title - <!-- no-footer -->: hide author + footer - Fix body-level CSS selectors for proper visibility - Add comprehensive documentation in example slides
23 lines
625 B
HTML
23 lines
625 B
HTML
{{/*
|
|
Example Slide Body-End Hook
|
|
|
|
This hook allows injecting custom JavaScript at the end of the <body>
|
|
tag, after Reveal.js has been loaded. Useful for:
|
|
- Custom Reveal.js plugins
|
|
- Analytics tracking on slide changes
|
|
- Custom keyboard shortcuts
|
|
- Integration with other JS libraries
|
|
|
|
To use this hook, create a file at:
|
|
layouts/_partials/hooks/slide-body-end/your-custom-script.html
|
|
*/}}
|
|
|
|
{{/* Uncomment below to track slide changes with console logging */}}
|
|
{{/*
|
|
<script>
|
|
Reveal.on('slidechanged', event => {
|
|
console.log('Slide changed to:', event.indexh, event.indexv);
|
|
});
|
|
</script>
|
|
*/}}
|