Skip to content

Commit 27a9135

Browse files
Merge pull request #7 from loic-roux-404/patch-1
Use with to avoid error in parse
2 parents 9731524 + 292e804 commit 27a9135

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

partials/private/parse.html

+9-7
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,14 @@
2828
{{ $slice := slice }}
2929
{{/* We range on its item */}}
3030
{{ range . }}
31-
{{/* As it is a slice, its entries might be "imports" */}}
32-
{{ with partialCached "tnd-netlifycms/private/import" . . }}
33-
{{/* We recursively use self partial to deep parse the result */}}
34-
{{ with partialCached "tnd-netlifycms/private/parse" . . }}
35-
{{/* We add the produced data as an entry to the newly processed slice */}}
36-
{{ $slice = $slice | append . }}
31+
{{ with . }}
32+
{{/* As it is a slice, its entries might be "imports" */}}
33+
{{ with partialCached "tnd-netlifycms/private/import" . . }}
34+
{{/* We recursively use self partial to deep parse the result */}}
35+
{{ with partialCached "tnd-netlifycms/private/parse" . . }}
36+
{{/* We add the produced data as an entry to the newly processed slice */}}
37+
{{ $slice = $slice | append . }}
38+
{{ end }}
3739
{{ end }}
3840
{{ end }}
3941
{{ end }}
@@ -69,4 +71,4 @@
6971
{{ $return = . }}
7072
{{ end }}
7173

72-
{{ return $return }}
74+
{{ return $return }}

0 commit comments

Comments
 (0)