Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
npentrel authored Aug 29, 2023
1 parent 97b7c09 commit 28a70c1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions layouts/partials/sidebar-tree.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
{{ $manualLinkTitle := cond (isset $s.Params "manuallinktitle") $s.Params.manualLinkTitle $s.Title -}}
{{ $empty_node := $s.Params.empty_node -}}

{{ warnf "%s %s %s" $s $s.RelPermalink $s.Permalink }}
<li class="{{ if $withChild }}nav-fold{{ end }}{{ if $activePath }} active-path{{ end }}{{ if (not (or $show $p.Site.Params.ui.sidebar_menu_foldable )) }} collapse{{ end }} {{ if $empty_node }}empty-node-submenu{{ end }}" >
{{ if (and $p.Site.Params.ui.sidebar_menu_foldable (ge $ulNr 1)) -}}
<input type="checkbox" id="{{ $mid }}-check"{{ if $activePath}} checked{{ end }}/>
Expand All @@ -68,7 +67,7 @@
<a href="{{ $manualLink }}"{{ if ne $s.LinkTitle $manualLinkTitle }} title="{{ $manualLinkTitle }}"{{ end }}{{ with $s.Params.manualLinkTarget }} target="{{ . }}"{{ if eq . "_blank" }} rel="noopener"{{ end }}{{ end }} class="{{ if $active}} active{{ end }}{{ if $treeRoot }} tree-root{{ end }}">{{ $s.LinkTitle }}
</a>
{{- end }}
{{- if (and (and $withChild (not $treeRoot) (ne $manualLink "/tutorials/" ) ) ) }}
{{- if (and (and $withChild (not $treeRoot) (ne $s.Permalink "/tutorials/" ) ) ) }}
<span class="menu-toggle">
{{ if (or $activePath $active) }}
<i class="fas fa-chevron-down lozad"></i>
Expand All @@ -82,7 +81,7 @@
</a>
{{ end }}
{{- end }}
{{- if (and $withChild (ne $manualLink "/tutorials/" ) ) }}
{{- if (and $withChild (ne $s.Permalink "/tutorials/" ) ) }}
{{- $ulNr := add $ulNr 1 }}
<ul class="ul-{{ $ulNr }}">
{{ range $pages -}}
Expand Down

0 comments on commit 28a70c1

Please sign in to comment.