File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
layouts/partials/hb/modules/docs Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ cache_key = "page.Type"
1414
1515[params .hb .docs ]
1616date_format = " :date_long"
17+ navs_reduce_font_size = false
1718
1819# Takes the full width by default.
1920[params .hb .full_width_types .docs ]
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ <h5 class="offcanvas-title" id="hb-docs-nav-label">
2828{{- define "walk-docs-tree" }}
2929 {{- $page := .Page }}
3030 {{- $border := default true site.Params.hb.docs.navs_border }}
31+ {{- $reduceFontSize := default true site.Params.hb.docs.navs_reduce_font_size }}
3132 {{- range .Tree }}
3233 {{- $node := . }}
3334 {{- if $node.Page.IsSection }}
@@ -65,7 +66,7 @@ <h5 class="offcanvas-title" id="hb-docs-nav-label">
6566 </ div >
6667 {{- with .Children }}
6768 < ul
68- class ="collapse list-unstyled fw-normal small {{ cond $border `ms-1 ps-1 border-start` `ms-2` }} "
69+ class ="collapse list-unstyled fw-normal {{ cond $reduceFontSize ` small` `` }} {{ cond $border `ms-1 ps-1 border-start` `ms-2` }} "
6970 id ="{{ $collapseId }} ">
7071 {{- template "walk-docs-tree" (dict "Tree" . "Page" $page) }}
7172 {{- with $node.Page.Params.nav_menus }}
You can’t perform that action at this time.
0 commit comments