Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[revealjs] Improve footer handling #10695

Merged
merged 9 commits into from
Sep 20, 2024
Merged

[revealjs] Improve footer handling #10695

merged 9 commits into from
Sep 20, 2024

Conversation

cderv
Copy link
Collaborator

@cderv cderv commented Sep 3, 2024

This PR tackles some improvements for footers.

Side notes

  • I wanted to clean further by making .quarto-auto-generated-content an ID instead of a class. So that we can target div#quarto-auto-generated-content and make clear there should be only a single structure like this in our code. I figured it could be too much if anyone is unfortunately using our internal DOM structure before processing.

it contains slide-logo and footer default moved around by quarto-support revealjs plugin
useful when default footer is set, but a slide would be better without one

e.g
```markdown
---
title: footers
format:
  revealjs:
    footer: "Default footer"
---

## Slide with footer

Content

## Slide with no footer {footer="false"}

Content
```
`slidechanged` event is not called on first slide. So `ready` event is necessary to add footer to first slide.
@cscheid
Copy link
Collaborator

cscheid commented Sep 5, 2024

LGTM!

@cderv cderv merged commit 92e4213 into main Sep 20, 2024
47 checks passed
@cderv cderv deleted the revealjs/clean-footer-handling branch September 20, 2024 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants