add surrounding div to include shortcode

This commit is contained in:
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 * BUGFIX
* fix mermaid default font * fix mermaid default font
* ENHANCEMENT
* add surrounding div with class `gdoc-include` to include shortcode

View file

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