File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -300,11 +300,11 @@ export function Render(Base) {
300
300
}
301
301
302
302
_renderNav ( text ) {
303
- text && this . _renderTo ( 'nav' , this . compiler . compile ( text ) ) ;
303
+ text &&
304
+ this . _renderTo ( this . config . navEl || 'nav' , this . compiler . compile ( text ) ) ;
304
305
if ( this . config . loadNavbar ) {
305
- getAndActive ( this . router , 'nav' ) ;
306
+ getAndActive ( this . router , this . config . navEl || 'nav' ) ;
306
307
}
307
-
308
308
}
309
309
310
310
_renderMain ( text , opt = { } , next ) {
@@ -413,7 +413,6 @@ export function Render(Base) {
413
413
const el = dom . find ( config . el || '#app' ) ;
414
414
const navEl = dom . find ( config . navEl || 'nav' ) || dom . create ( 'nav' ) ;
415
415
416
- const el = dom . find ( id ) ;
417
416
let html = '' ;
418
417
let navAppendToTarget = dom . body ;
419
418
@@ -422,7 +421,6 @@ export function Render(Base) {
422
421
html += tpl . corner ( config . repo , config . cornerExternalLinkTarge ) ;
423
422
}
424
423
425
-
426
424
if ( config . coverpage ) {
427
425
html += tpl . cover ( ) ;
428
426
}
@@ -444,7 +442,6 @@ export function Render(Base) {
444
442
this . rendered = true ;
445
443
}
446
444
447
-
448
445
if ( config . mergeNavbar && isMobile && ! config . navEl ) {
449
446
navAppendToTarget = dom . find ( '.sidebar' ) ;
450
447
} else {
You can’t perform that action at this time.
0 commit comments