main-site

Main site for niliara.net
git clone git://niliara.net/main-site
Log | Files | Refs

tree.html (653B)


      1 {{ $s := .s }}
      2 {{ $p := .p }}
      3 
      4 <li>
      5   {{ if eq $s $p }}
      6   <a class="active" href="{{ $s.RelPermalink }}"><p>{{ $s.Title }}/</p></a>
      7   {{ else }}
      8   <a href="{{ $s.RelPermalink }}"><p>{{ $s.Title }}/</p></a>
      9   {{ end }}
     10   {{ if or (in $p.Ancestors $s) (eq $s $p.CurrentSection) }}
     11   <ul>
     12     {{ range $s.Sections }}{{ partial "tree.html" (dict "s" . "p" $p) }}{{ end }}
     13     {{ range $s.RegularPages }}
     14         <li>
     15         {{ if eq . $p }}
     16         <a class="active" href="{{ .RelPermalink }}">{{ .Title }}</a>
     17         {{ else }}
     18         <a href="{{ .RelPermalink }}">{{ .Title }}</a>
     19         {{ end}}
     20         </li>
     21     {{ end }}
     22   </ul>
     23   {{ end }}
     24 </li>