{{ define "main" }}
{{ partial "content.html" . }} {{ if .Content }}
{{ 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") }}
{{ with .Site.GetPage "section" "robotics/smallpeice"}} {{ partial "content.html" . }}
{{ $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 }}
{{ end }}