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

Workaround for lead paragraphs: Hide the rest with CSS+JS #26

Closed
OndraZizka opened this issue Jul 26, 2018 · 0 comments
Closed

Workaround for lead paragraphs: Hide the rest with CSS+JS #26

OndraZizka opened this issue Jul 26, 2018 · 0 comments
Labels
bug Something isn't working content Changes in texts styles CSS, design

Comments

@OndraZizka
Copy link
Owner

OndraZizka commented Jul 26, 2018

Workaround until jbake-org/jbake#503

This will also need adding the section to the documents.

New cool feature!
##############

/---section .(lead)
JBake has a new feature.
\---

Coming in next release.

Maybe the JS could do it automatically?
Choose the first heading plus first few elements until the text reaches some size?
Some CSS is here: https://stackoverflow.com/questions/29598625/hide-all-except-first-child-of-an-element-using-pure-css

@OndraZizka OndraZizka added bug Something isn't working styles CSS, design content Changes in texts labels Jul 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working content Changes in texts styles CSS, design
Projects
None yet
Development

No branches or pull requests

1 participant