diff options
author | Dillon <dillonzq@outlook.com> | 2020-05-06 20:17:08 +0300 |
---|---|---|
committer | Dillon <dillonzq@outlook.com> | 2020-05-06 20:17:08 +0300 |
commit | ee5f757fe952b498acebabef5883bc7bd9dc08b4 (patch) | |
tree | 796ee243b702d923aef93de7bd85bb7541169d93 | |
parent | e5f32d388144925171027329fe1c4c8c2df0b99e (diff) | |
parent | df6761f64904a4453c2b44cfacf47bfe479ed5be (diff) |
Merge branch 'develop'v0.2.6
-rw-r--r-- | layouts/shortcodes/typeit.html | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/layouts/shortcodes/typeit.html b/layouts/shortcodes/typeit.html index 45eb63e6..b295f83d 100644 --- a/layouts/shortcodes/typeit.html +++ b/layouts/shortcodes/typeit.html @@ -1,4 +1,4 @@ -{{- $content := .Inner -}} +{{- $content := trim .Inner "\n" -}} {{- $classList := .Get "class" | slice -}} {{- $tag := .Get "tag" | default "div" -}} @@ -19,7 +19,6 @@ {{- end -}} {{- /* trim the newline */ -}} -{{- $content = trim $content "\n" -}} {{- $id := dict "content" $content "scratch" .Page.Scratch | partial "function/id.html" -}} {{- $key := .Get "group" | string | default $id -}} {{- $typeitMap := (.Page.Scratch.Get "this").typeitMap | default dict -}} |