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

Allow variants #910

Open
raphink opened this issue Aug 20, 2019 · 2 comments
Open

Allow variants #910

raphink opened this issue Aug 20, 2019 · 2 comments

Comments

@raphink
Copy link
Contributor

raphink commented Aug 20, 2019

Use Case

When writing a course that could be taught on either one, two more days, it'd be useful to be able to tag slides with a variant and let showoff be started with a variant flag.

Describe the Solution You Would Like

Place one or more variant=<name> on slides to let Showoff filter out the slides (in a similar way to printonly/noprint, but more flexible).

Describe Alternatives You've Considered

I've considered using CSS for this and using display:none on classes that should not appear, but it results in white slides instead of removing them entirely.

@binford2k
Copy link
Owner

The way that I do this currently is by maintaining one-day.json and two-day.json metadata files and presenting with -f. Would this meet your needs?

@raphink
Copy link
Contributor Author

raphink commented Aug 30, 2019

I do that already for trainings where I include specific chapters, but for specific slides it forces to split the slides into separate files, which I find cumbersome (but maybe it's just me).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants