Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/thegeeklab/hugo-geekdoc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Kaussow <mail@geeklabor.de>2020-06-02 22:28:52 +0300
committerRobert Kaussow <mail@geeklabor.de>2020-06-02 22:28:52 +0300
commitc4c882b7682d175da16a6d3d5dd889cc863cb03e (patch)
tree752eee097ca4e9326ba7ecb117446f90361f2b3f
parent5eb04b81d2ba45149d0e9d674c79b9a66e899340 (diff)
add surrounding div to include shortcodev0.3.1
-rw-r--r--CHANGELOG.md2
-rw-r--r--layouts/shortcodes/include.html2
2 files changed, 4 insertions, 0 deletions
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"}}
+<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>