Conditional CSS
This commit is contained in:
parent
95746b151d
commit
a3f09559e4
4 changed files with 19 additions and 2 deletions
5
layouts/shortcodes/highlight.html
Normal file
5
layouts/shortcodes/highlight.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
<!-- https://github.com/jmooring/hugo-testing/blob/hugo-forum-topic-40998/layouts/_default/_markup/render-codeblock-katex.html -->
|
||||
{{ .Page.Store.Set "hasCodeBlock" true }}
|
||||
|
||||
<!-- https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/shortcodes/highlight.html -->
|
||||
{{ if len .Params | eq 2 }}{{ highlight (trim .InnerDeindent "\n\r") (.Get 0) (.Get 1) }}{{ else }}{{ highlight (trim .InnerDeindent "\n\r") (.Get 0) "" }}{{ end }}
|
Loading…
Add table
Add a link
Reference in a new issue