2019-02-06 15:42:58 +00:00
|
|
|
{{ $pages := union .Page.Pages .Page.Sections }}
|
|
|
|
{{ $type := .Get "type" | default "articles" }}
|
2019-01-22 19:04:11 +00:00
|
|
|
|
|
|
|
<div class="children-links">
|
2019-02-06 15:42:58 +00:00
|
|
|
{{ if eq $type "articles" }}
|
2019-01-22 19:04:11 +00:00
|
|
|
|
2019-02-06 15:42:58 +00:00
|
|
|
{{ range $pages.ByWeight }}
|
|
|
|
<h3><a href="{{ .RelPermalink }}" >{{ .Title }}</a></h3>
|
|
|
|
<p>
|
|
|
|
{{- if .Description }}{{- .Description -}}
|
|
|
|
{{ else }}{{- .Summary -}}
|
|
|
|
{{ end -}}
|
|
|
|
</p>
|
|
|
|
{{ end }}
|
2019-01-22 19:04:11 +00:00
|
|
|
|
2019-02-06 15:42:58 +00:00
|
|
|
{{ else if (eq $type "functions") }}
|
2019-01-22 19:04:11 +00:00
|
|
|
|
2019-02-06 15:42:58 +00:00
|
|
|
<ul>
|
|
|
|
{{ range $pages.ByWeight }}
|
|
|
|
{{ $title := replaceRE `\(\)\ function` "" .Title }}
|
|
|
|
<li><a href="{{ .RelPermalink }}">{{ $title }}</a></li>
|
|
|
|
{{ end }}
|
|
|
|
<ul>
|
2019-01-22 19:04:11 +00:00
|
|
|
|
2019-02-06 15:42:58 +00:00
|
|
|
{{ end }}
|
2019-01-22 19:04:11 +00:00
|
|
|
|
|
|
|
|
2019-02-06 15:42:58 +00:00
|
|
|
</div>
|