{{ range .regularpages }} {{ $filepath := replace (print .File.Dir (replace .File.BaseFileName "_index" "") "/") "//" "/" }} {{ $contextfilepath := replace (print $.context.File.Dir (replace $.context.File.BaseFileName "_index" "") "/") "//" "/" }} {{ $pagecontextfilepath := replace (print $.pagecontext.File.Dir (replace $.pagecontext.File.BaseFileName "_index" "") "/") "//" "/" }} {{ if eq (len (split $filepath "/")) (add (len (split $contextfilepath "/")) 1) }} {{ if and (in $filepath $contextfilepath) (ne $contextfilepath $filepath) }}
  • {{ .Title }}
  • {{ end }} {{ end }} {{ end }}