add surrounding div to include shortcode

master
Robert Kaussow 2020-06-02 21:28:52 +02:00
parent 5eb04b81d2
commit c4c882b768
2 changed files with 4 additions and 0 deletions

View File

@ -1,2 +1,4 @@
* BUGFIX
* fix mermaid default font
* ENHANCEMENT
* add surrounding div with class `gdoc-include` to include shortcode

View File

@ -1,4 +1,5 @@
{{$file := .Get "file"}}
<div class="gdoc-include">
{{- if eq (.Get "markdown") "true" -}}
{{- $file | readFile | markdownify -}}
{{- else if (.Get "language") -}}
@ -6,3 +7,4 @@
{{- else -}}
{{ $file | readFile | safeHTML }}
{{- end -}}
</div>