Added shortcodes, lots of improvements and content dump
This commit is contained in:
5
layouts/shortcodes/highlight.html
Normal file
5
layouts/shortcodes/highlight.html
Normal file
@@ -0,0 +1,5 @@
|
||||
{{ $opts := slice "lineNos=table" "tabWidth=2" "noClasses=false" "style=fruity" }}
|
||||
{{ if .Get 1 }}
|
||||
{{ $opts = $opts | append (split (.Get 1) ",") }}
|
||||
{{ end }}
|
||||
{{ transform.Highlight (htmlUnescape .Inner) (.Get 0) (delimit $opts ",") }}
|
Reference in New Issue
Block a user