22 lines
560 B
HTML
22 lines
560 B
HTML
{{- define "content" -}}
|
|
|
|
<h1>{{ .Name }}</h1>
|
|
|
|
<ul>
|
|
{{- range $name, $value := sort .Data.Pages "Title" -}}
|
|
{{ if not .Draft }}
|
|
<li style="margin-bottom: 15px;">
|
|
<a href="{{ $value.RelPermalink }}">{{ $value.Title }}</a>
|
|
<br />
|
|
<small>
|
|
{{- range $index, $page := $value.Pages -}}
|
|
{{ if $index }},{{ end }}
|
|
<a href="{{ $page.RelPermalink }}">{{ $page.Title }}</a>
|
|
{{- end -}}
|
|
</small>
|
|
</li>
|
|
{{ end }}
|
|
{{- end -}}
|
|
</ul>
|
|
|
|
{{- end -}}
|