repos / starfx

supercharged async flow control library.
git clone https://github.com/neurosnap/starfx.git

starfx / docs / tmpl
Eric Bower · 17 Nov 24

sitemap-footer.partial.tmpl

 1{{define "sitemap-footer"}}
 2  <ul class="sitemap mb-4 list-none sidebar-list">
 3  {{range .Sitemap.Children}}
 4    {{if .Href}}
 5    <li>
 6      <span class="font-bold">
 7        {{if (eq $.Href .GenHref)}}
 8        <a href="{{.GenHref}}" class="link-alt-hover">{{.Text}}</a>
 9        {{else}}
10        <a href="{{.GenHref}}" class="link-alt">{{.Text}}</a>
11        {{end}}
12      </span>
13    {{else}}
14    <li>
15      <span class="font-bold">{{.Text}}</span>
16    {{end}}
17
18      {{if .Children}}
19      <ul class="list-square sidebar-list">
20        {{range .Children}}
21          <li>
22            <a href="{{.GenHref}}" class="link-alt{{if (eq $.Href .GenHref)}}-hover{{end}}">
23              {{.Text}}
24            </a>
25          </li>
26        {{end}}
27      </ul>
28      {{end}}
29    </li>
30  {{end}}
31  </ul>
32{{end}}