We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e5f32d3 + df6761f commit ee5f757Copy full SHA for ee5f757
layouts/shortcodes/typeit.html
@@ -1,4 +1,4 @@
1
-{{- $content := .Inner -}}
+{{- $content := trim .Inner "\n" -}}
2
{{- $classList := .Get "class" | slice -}}
3
{{- $tag := .Get "tag" | default "div" -}}
4
@@ -19,7 +19,6 @@
19
{{- end -}}
20
21
{{- /* trim the newline */ -}}
22
-{{- $content = trim $content "\n" -}}
23
{{- $id := dict "content" $content "scratch" .Page.Scratch | partial "function/id.html" -}}
24
{{- $key := .Get "group" | string | default $id -}}
25
{{- $typeitMap := (.Page.Scratch.Get "this").typeitMap | default dict -}}
0 commit comments