add surrounding div to include shortcode
parent
5eb04b81d2
commit
c4c882b768
|
@ -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
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue