uci-doc/layouts/shortcodes/include.html

11 lines
328 B
HTML
Raw Permalink Normal View History

2020-04-30 06:37:27 -07:00
{{$file := .Get "file"}}
<div class="gdoc-include">
2020-04-30 06:37:27 -07:00
{{- if eq (.Get "markdown") "true" -}}
{{- $file | readFile | markdownify -}}
{{- else if (.Get "language") -}}
{{- highlight ($file | readFile) (.Get "language") (default "linenos=table" (.Get "options")) -}}
{{- else -}}
{{ $file | readFile | safeHTML }}
2020-04-30 11:55:53 -07:00
{{- end -}}
</div>