Just posted a brief description of how I incorporated the HTML details disclosure element into my emacs to ox-hugo to hugo stream. Many who are more tech-savvy than I will find this obvious, but it might be helpful to some.

#emacs #hugo #oxhugo

https://johnrakestraw.com/post/using-the-html-details-disclosure-element/

Using the HTML details disclosure element

Like many others, I post notes about my reading on my blog. I’ve tried several ways of doing this; I’m now in my third month of the current strategy, and I find that it helps me to think more carefully about what I’m reading.

thinking out loud

@johnrakestraw oh, that's an interesting approach. I've been using one-sentence summaries, and they've been great for not feeling guilty about the tangents I want to go on. I use org-special-block-extras so I can specify the title as a parameter like this:

#+begin_my_details Summary of details block Details that will be displayed when the summary is clicked. #+end_my_details

https://sachachua.com/dotemacs#special-blocks

I also modified the handling of my source blocks so I can specify a :summary keyword. https://sachachua.com/blog/2023/01/adding-a-custom-header-argument-to-org-mode-source-blocks-and-using-that-argument-during-export/

Sacha Chua's Emacs configuration

@sacha Thanks very much for sharing this. I fear that I'm more than a little overwhelmed by my first quick reading of your code -- I'm going to continue to chew on it. I like the looks of what you're doing with it -- maybe some day!

And, as long as I'm here -- thanks for all you do for and around emacs!

@johnrakestraw you’re welcome! Yeah, that code isn’t as clear as I’d like, but now that I’ve got it, I can easily sprinkle details/summary wherever I like. https://orgmode.org/manual/Structure-Templates.html might be a much easier way of doing it so that you can select text and wrap it in a details block, if you don’t already have that set up. Yasnippet is fun too.
Structure Templates (The Org Manual)

Structure Templates (The Org Manual)