mirror of
https://github.com/snachodog/just-the-docs.git
synced 2025-04-18 00:52:24 -06:00
Remove href from the navigation link to the current page (#1356)
* Remove href from link to active page * Update CHANGELOG.md Co-authored-by: Matt Wang <matt@matthewwang.me> --------- Co-authored-by: Matt Wang <matt@matthewwang.me>
This commit is contained in:
parent
b342531fe4
commit
cd4f1b02b2
@ -17,7 +17,11 @@ This website is built from the `HEAD` of the `main` branch of the theme reposito
|
|||||||
|
|
||||||
Code changes to `main` that are *not* in the latest release:
|
Code changes to `main` that are *not* in the latest release:
|
||||||
|
|
||||||
- N/A
|
### Bugfixes
|
||||||
|
|
||||||
|
- Fixed: remove href from the navigation link to the current page by [@pdmosses] in [#1356]
|
||||||
|
|
||||||
|
[#1356]: https://github.com/just-the-docs/just-the-docs/pull/1356
|
||||||
|
|
||||||
## Release v0.6.2
|
## Release v0.6.2
|
||||||
|
|
||||||
|
@ -501,6 +501,7 @@ function activateNav() {
|
|||||||
var target = navLink();
|
var target = navLink();
|
||||||
if (target) {
|
if (target) {
|
||||||
target.classList.toggle('active', true);
|
target.classList.toggle('active', true);
|
||||||
|
target.removeAttribute('href');
|
||||||
}
|
}
|
||||||
while (target) {
|
while (target) {
|
||||||
while (target && !(target.classList && target.classList.contains('nav-list-item'))) {
|
while (target && !(target.classList && target.classList.contains('nav-list-item'))) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user