fix: replace recursive partialCached
with partial
This commit is contained in:
parent
607686468d
commit
5a1e4fc252
3 changed files with 7 additions and 8 deletions
|
@ -3,9 +3,8 @@
|
||||||
{{ range . }}
|
{{ range . }}
|
||||||
{{ $titles = $titles | append (slice ( .Title | plainify ) ) }}
|
{{ $titles = $titles | append (slice ( .Title | plainify ) ) }}
|
||||||
{{ if .Sections }}
|
{{ if .Sections }}
|
||||||
{{ $titles = $titles | append ( partialCached "cv/organisations/recursive-children-titles.html" .Sections .Title) }}
|
{{ $titles = $titles | append ( partial "cv/organisations/recursive-children-titles.html" .Sections ) }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ return $titles }}
|
{{ return $titles }}
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
</a>
|
</a>
|
||||||
{{- range .Sections -}}
|
{{- range .Sections -}}
|
||||||
<ul>
|
<ul>
|
||||||
{{- partialCached "cv/organisations/recursive-children.html" . .Title -}}
|
{{- partial "cv/organisations/recursive-children.html" . -}}
|
||||||
</ul>
|
</ul>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
{{ if ne .c.Parent.Type "cv/organisations" }}
|
{{ if ne .c.Parent.Type "cv/organisations" }}
|
||||||
{{ with .c.Parent }}
|
{{ with .c.Parent }}
|
||||||
{{ $scratch.Add "parents" ( slice . ) }}
|
{{ $scratch.Add "parents" ( slice . ) }}
|
||||||
{{ partialCached "cv/organisations/recursive-parents.html" (dict "c" . "g" $.g ) .Title }}
|
{{ partial "cv/organisations/recursive-parents.html" (dict "c" . "g" $.g ) }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue