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

github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDillon <dillonzq@outlook.com>2020-05-06 20:16:45 +0300
committerGitHub <noreply@github.com>2020-05-06 20:16:45 +0300
commitdf6761f64904a4453c2b44cfacf47bfe479ed5be (patch)
tree796ee243b702d923aef93de7bd85bb7541169d93 /layouts/shortcodes
parent9e3949cfdd2cd956bf73b606c5db9ad90c90991a (diff)
fix(typeit): typeit shortcode newline error (#330)
Diffstat (limited to 'layouts/shortcodes')
-rw-r--r--layouts/shortcodes/typeit.html3
1 files changed, 1 insertions, 2 deletions
diff --git a/layouts/shortcodes/typeit.html b/layouts/shortcodes/typeit.html
index 45eb63e..b295f83 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 -}}