Skip to content

Commit d6da794

Browse files
committed
about: update sidebar
1 parent c49c7e0 commit d6da794

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

layouts/partials/sidebar.html

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,10 @@
55
<ul>
66
<li>
77
<a href="{{ relURL "about" }}"{{ if (eq $section "about") }} class="active"{{ end }}>About</a>
8-
<ul{{ if (eq $section "about") }} class="expanded"{{ end }}>
9-
{{ if (eq $section "about") }}
10-
{{ $subsection := .Params.subsection }}
11-
{{ $abouts := sort (where .Site.RegularPages "Params.section" "about") "Params.order" }}
12-
{{ range $i, $about := $abouts }}
13-
<li>
14-
<a href="{{ relURL (strings.TrimSuffix ".html" $about.RelPermalink) }}"{{ if (eq $.Params.subsection $about.Params.subsection) }} class="active"{{ end }}>{{ $about.Params.subtitle }}</a>
15-
</li>
16-
{{ end }}
17-
{{ end }}
8+
<ul {{ if (eq $section "about") }} class="expanded"{{ end }}>
9+
<li>
10+
<a href="{{ relURL "about/trademark" }}"{{ if (eq .Params.Subsection "trademark") }} class="active"{{ end }}>Trademark</a>
11+
</li>
1812
</ul>
1913
</li>
2014

0 commit comments

Comments
 (0)