add surrounding div to include shortcode
This commit is contained in:
parent
5eb04b81d2
commit
c4c882b768
2 changed files with 4 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue