You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
486 B
HTML
15 lines
486 B
HTML
{{ $content := .InnerDeindent | strings.TrimLeft "\f\n\r\v" | strings.TrimRight "\f\n\r\t\v " }}
|
|
{{ $lang := .Get 0 | default (.Get "lang") | default "plaintext" }}
|
|
{{ $options := .Get "options" }}
|
|
{{ $unescape := .Get "unescape" }}
|
|
|
|
{{ if not $content }}
|
|
{{ errorf "layouts/shortcodes/paige/code.html: no content" }}
|
|
{{ end }}
|
|
|
|
{{ if $unescape }}
|
|
{{ $content = htmlUnescape $content }}
|
|
{{ end }}
|
|
|
|
<div class="paige-shortcode-code">{{ highlight $content $lang $options }}</div>
|