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) {
300300 }
301301
302302 _renderNav ( text ) {
303- text && this . _renderTo ( 'nav' , this . compiler . compile ( text ) ) ;
303+ text &&
304+ this . _renderTo ( this . config . navEl || 'nav' , this . compiler . compile ( text ) ) ;
304305 if ( this . config . loadNavbar ) {
305- getAndActive ( this . router , 'nav' ) ;
306+ getAndActive ( this . router , this . config . navEl || 'nav' ) ;
306307 }
307-
308308 }
309309
310310 _renderMain ( text , opt = { } , next ) {
@@ -413,7 +413,6 @@ export function Render(Base) {
413413 const el = dom . find ( config . el || '#app' ) ;
414414 const navEl = dom . find ( config . navEl || 'nav' ) || dom . create ( 'nav' ) ;
415415
416- const el = dom . find ( id ) ;
417416 let html = '' ;
418417 let navAppendToTarget = dom . body ;
419418
@@ -422,7 +421,6 @@ export function Render(Base) {
422421 html += tpl . corner ( config . repo , config . cornerExternalLinkTarge ) ;
423422 }
424423
425-
426424 if ( config . coverpage ) {
427425 html += tpl . cover ( ) ;
428426 }
@@ -444,7 +442,6 @@ export function Render(Base) {
444442 this . rendered = true ;
445443 }
446444
447-
448445 if ( config . mergeNavbar && isMobile && ! config . navEl ) {
449446 navAppendToTarget = dom . find ( '.sidebar' ) ;
450447 } else {
You can’t perform that action at this time.
0 commit comments