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

Default Collapse Behavior on Bigblow #171

Closed
Nidish96 opened this issue May 17, 2023 · 4 comments
Closed

Default Collapse Behavior on Bigblow #171

Nidish96 opened this issue May 17, 2023 · 4 comments

Comments

@Nidish96
Copy link

Thanks for a great repository!

I was wondering if it is possible to have bigblow launch with all the subsections collapsed by default (collapse all functionality).

Thanks!

@fniessen
Copy link
Owner

Thanks @Nidish96 .

Yes, that could be possible. Though, this is not the foreseen behavior by default. Hence, you should slightly adapt the JS code on your side.

@Nidish96
Copy link
Author

Thanks for the quick response - is it possible to do this by including a #+INFOJS_OPT: in the org file without having to modify the JS code?

@fniessen
Copy link
Owner

I don't know (yet) that option... Give it a try, indeed.
And come back with your results. An example could be welcomed in the README.org file...

@Nidish96
Copy link
Author

Nidish96 commented May 17, 2023

Okay, the closest I could come is by using the export blocks in org. Here's what I did to get this to work (after looking at the relevant variable in https://github.com/fniessen/org-html-themes/blob/master/src/bigblow_theme/js/hideshow.js ):

#+BEGIN_EXPORT html
<script>var HS_STARTUP_FOLDED = true;</script>
#+END_EXPORT

Adding this to my org file exports in a way such that all the subsections are folded by default.

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