Conditional CSS
This commit is contained in:
parent
95746b151d
commit
a3f09559e4
4 changed files with 19 additions and 2 deletions
6
layouts/_default/_markup/render-codeblock.html
Normal file
6
layouts/_default/_markup/render-codeblock.html
Normal file
|
@ -0,0 +1,6 @@
|
|||
<!-- https://github.com/jmooring/hugo-testing/blob/hugo-forum-topic-40998/layouts/_default/_markup/render-codeblock-katex.html -->
|
||||
{{ .Page.Store.Set "hasCodeBlock" true }}
|
||||
|
||||
<!-- https://www.veriphor.com/articles/code-block-render-hooks/ -->
|
||||
{{ $result := transform.HighlightCodeBlock . }}
|
||||
{{ $result.Wrapped }}
|
Loading…
Add table
Add a link
Reference in a new issue