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

codefolding for other themes? #1

Open
olugovoy opened this issue Mar 7, 2020 · 2 comments
Open

codefolding for other themes? #1

olugovoy opened this issue Mar 7, 2020 · 2 comments

Comments

@olugovoy
Copy link

olugovoy commented Mar 7, 2020

Hi there!
Thanks for the tips and the codefolding scripts!
I'm following this steps Enable code folding in bookdown and blogdown and also
Code folding with blogdown + Academic theme to reproduce it for several themes, including "academic", but cannot make it work. (The "academic" theme changed, and the provided example doesn't fit well)
It looks like I'm missing something or the code itself should be adjusted for each particular there.
Here are my attempts:

Any suggestion will be appreciated!

hugo_version()
[1] ‘0.66.0’

@statnmap
Copy link
Owner

Hi,
I already implemented code folding in future-imperfect in the "ml" branch: https://github.com/statnmap/hugo-future-imperfect/tree/ml
Maybe you can find ideas. As far as I remember, there may be some interactions with call to jQuery, which forced me to add part of the code in the header. See this commit in particular : statnmap/hugo-future-imperfect@8061a87

@jepusto
Copy link

jepusto commented May 6, 2020

Hi! I worked out a solution for Academic theme 4.+. Here's instructions:
https://www.jepusto.com/code-folding-update/

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

3 participants