Replies: 1 comment
-
Currently there is no way to do that, the same reason why #207 is difficult to implement. Hugo does not provide hooks for code blocks gohugoio/hugo#6702 so there is no way to pass an
There is a way to get around this using client side JavaScript (see #215) or maybe a custom |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In config.toml you can define the number of rows that determine if the code is shown or hidden through the
maxShownLines
attribute:DoIt/exampleSite/config.toml
Lines 680 to 688 in dc3b174
The point is that in some cases you want to do it manually and not use the maxShownLines. Is there a way to get that behavior?
Beta Was this translation helpful? Give feedback.
All reactions