Code Monkey home page Code Monkey logo

Comments (4)

fniessen avatar fniessen commented on August 28, 2024

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.

from org-html-themes.

Nidish96 avatar Nidish96 commented on August 28, 2024

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?

from org-html-themes.

fniessen avatar fniessen commented on August 28, 2024

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...

from org-html-themes.

Nidish96 avatar Nidish96 commented on August 28, 2024

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.

from org-html-themes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.