diff --git a/shortcodes/codecaption.html b/shortcodes/codecaption.html index a630952..f92b4a2 100644 --- a/shortcodes/codecaption.html +++ b/shortcodes/codecaption.html @@ -3,11 +3,14 @@ +{{- $language := .Get "lang" -}} +{{- $options := .Get (default "linenos=true" "options" ) -}} +{{- $showlang := .Get (default false "showlang" ) -}}
-
- {{ .Get "title" }} +
+ {{ .Get "title" }} {{- if ( $showlang ) -}} Lang: {{$language }} {{end}}
- {{ highlight (trim .Inner "\n\r") (.Get "lang") "linenos=true" }} + {{ highlight (trim .Inner "\n\r") $language $options }}
-
\ No newline at end of file +