Is there a way to temporarily disable Pygments, i.e., treat {{< highlight ... }}
blocks as simple code blocks? I don’t care about seeing the colours while I’m writing posts, but I do care about having the page update quickly. It would be really convenient if I could only enable Pygments when I deploy the site.
No it isn’t.
But in 0.14-DEV pygments are cached so that should support your use case.
When I run hugo version
I get
Hugo Static Site Generator v0.14-DEV BuildDate: 2015-02-22T03:09:28-05:00
but Pygments don’t seem to be cached for me. When I replace all the highlight blocks with ```
blocks, it compiles ten times faster.
Did you install from Brew or source or distribution? That looks like the version string from the the buggy Brew recipe.
I installed it using Homebrew. Should I compile the source distribution instead?
I installed it using go get
and the caching seems to be working now. Thanks!
1 Like