1
Fork 0
theorangeone.net-legacy/layouts/robotics/list.html

32 lines
1.2 KiB
HTML

{{ define "main" }}
<div id="main">
<div class="container">
{{ partial "content.html" . }}
{{ if .Content }}<hr />{{ end }}
{{ $parent := . }}
{{ $sorted_pages := sort .Site.Pages (default "Title" .Params.sort_by) (default "asc" .Params.sort_order)}}
{{ $valid_pages := where $sorted_pages ".Parent" "!=" nil }}
{{ $valid_pages := where $valid_pages ".Params.hide_in_list" "!=" "true" }}
{{ range where $valid_pages ".Parent.UniqueID" $parent.UniqueID }}
{{ partial "list_item.html" . }}
{{ end }}
{{ if eq .CurrentSection (.Site.GetPage "section" "robotics") }}
<div class="mt-5" />
{{ with .Site.GetPage "section" "robotics/smallpeice"}}
{{ partial "content.html" . }}
<hr />
{{ $parent := . }}
{{ $sorted_pages := sort .Site.Pages (default "Title" .Params.sort_by) (default "asc" .Params.sort_order)}}
{{ $valid_pages := where $sorted_pages ".Parent" "!=" nil }}
{{ $valid_pages := where $valid_pages ".Params.hide_in_list" "!=" "true" }}
{{ range where $valid_pages ".Parent.UniqueID" $parent.UniqueID }}
{{ partial "list_item.html" . }}
{{ end }}
{{ end }}
{{ end }}
</div>
</div>
{{ end }}