Add notes layout (#263)
* Add note layout Signed-off-by: hossainemruz <hossainemruz@gmail.com> * Fix note organization Signed-off-by: hossainemruz <hossainemruz@gmail.com> * WIP: need help adding above 6 sections doesnt fit navbar * Add note layout Signed-off-by: hossainemruz <hossainemruz@gmail.com> * Add Translation Signed-off-by: hossainemruz <hossainemruz@gmail.com> Co-authored-by: HenzelMoras <henzelmoras@gmail.com>
This commit is contained in:
parent
5c95132b1e
commit
25e4e9e3d0
27 changed files with 519 additions and 30 deletions
|
@ -1,8 +1,8 @@
|
|||
{{ range .menus }}
|
||||
{{ range .menuItems }}
|
||||
{{ $class:= "" }}
|
||||
{{ $icon:= "fa-plus-circle" }}
|
||||
<!-- If the current menu is the selected menu or it contain the selected menu, set expand icon and set "active" class -->
|
||||
{{ if or ($.ctx.HasMenuCurrent "sidebar" .) ($.ctx.IsMenuCurrent "sidebar" .)}}
|
||||
{{ if or ($.ctx.HasMenuCurrent $.menuName .) ($.ctx.IsMenuCurrent $.menuName .)}}
|
||||
{{ $icon = "fa-minus-circle"}}
|
||||
{{ $class = "active" }}
|
||||
{{end}}
|
||||
|
@ -12,7 +12,7 @@
|
|||
<i class="fas {{ $icon }}"></i><a class="{{$class}}" href="{{ .URL }}">{{.Name}}</a>
|
||||
<!-- Add sub-tree -->
|
||||
<ul class="{{ $class }}">
|
||||
{{ partial "navigators/sidebar.html" (dict "menus" .Children "ctx" $.ctx) }}
|
||||
{{ partial "navigators/sidebar.html" (dict "menuName" $.menuName "menuItems" .Children "ctx" $.ctx) }}
|
||||
</ul>
|
||||
</li>
|
||||
{{ else }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue