Skip to content

Commit

Permalink
theme(fix): navbar collapse on small devices
Browse files Browse the repository at this point in the history
closes #1019
  • Loading branch information
davidsneighbour committed Jun 17, 2024
1 parent dc780aa commit 0b1c123
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
1 change: 0 additions & 1 deletion assets/js/script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import { initializeAndSwitchClassOnScroll } from './scripts/navbar-opacity.ts';

// import bootstrap scripts
import './scripts/bs-tooltips';
import './scripts/bs-collapse';

// @ts-ignore - importing parameters from GoHugo
import * as params from '@params';
Expand Down
3 changes: 0 additions & 3 deletions assets/js/scripts/bs-collapse.ts

This file was deleted.

4 changes: 2 additions & 2 deletions assets/scss/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
@import "bootstrap/scss/tables";
@import "bootstrap/scss/forms";
@import "bootstrap/scss/buttons";
@import "bootstrap/scss/transitions";
@import 'bootstrap/scss/dropdown';

// @import "bootstrap/scss/transitions";
// @import 'bootstrap/scss/dropdown';
// @import 'bootstrap/scss/button-group';
@import "bootstrap/scss/nav";
@import "bootstrap/scss/navbar";
Expand Down
6 changes: 3 additions & 3 deletions layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@
</div>
{{- partials.Include "func/hook.html" ( collections.Dictionary "hook" "header-topnav-post-logo" "context" . ) -}}
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
data-bs-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false"
data-bs-target="#navbarContent"
aria-controls="navbarContent" aria-expanded="false"
aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
{{- partials.Include "func/hook.html" ( collections.Dictionary "hook" "header-topnav-pre-mainnav" "context" . ) -}}
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<div class="collapse navbar-collapse" id="navbarContent">
<menu class="navbar-nav mt-0 me-md-0 me-auto ms-auto">
{{- $current := . -}}
{{- range site.Menus.main -}}
Expand Down

0 comments on commit 0b1c123

Please sign in to comment.