mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 19:15:16 +02:00
feat: add optional .js-scroll class for smooth anchor scrolling
This commit is contained in:
parent
35287c2391
commit
be8cae3a1f
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@
|
|||
* Add smooth scrolling to all links inside the main navbar.
|
||||
* --------------------------------------------------------------------------- */
|
||||
|
||||
$('#navbar-main li.nav-item a.nav-link').on('click', function (event) {
|
||||
$('#navbar-main li.nav-item a.nav-link, .js-scroll').on('click', function (event) {
|
||||
// Store requested URL hash.
|
||||
let hash = this.hash;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue