From c4c882b7682d175da16a6d3d5dd889cc863cb03e Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Tue, 2 Jun 2020 21:28:52 +0200 Subject: [PATCH] add surrounding div to include shortcode --- CHANGELOG.md | 2 ++ layouts/shortcodes/include.html | 2 ++ 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 71fa54c..3f5c792 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,2 +1,4 @@ * BUGFIX * fix mermaid default font +* ENHANCEMENT + * add surrounding div with class `gdoc-include` to include shortcode diff --git a/layouts/shortcodes/include.html b/layouts/shortcodes/include.html index 8c6f786..17540da 100644 --- a/layouts/shortcodes/include.html +++ b/layouts/shortcodes/include.html @@ -1,4 +1,5 @@ {{$file := .Get "file"}} +
{{- if eq (.Get "markdown") "true" -}} {{- $file | readFile | markdownify -}} {{- else if (.Get "language") -}} @@ -6,3 +7,4 @@ {{- else -}} {{ $file | readFile | safeHTML }} {{- end -}} +