mirror of
https://github.com/docsifyjs/docsify.git
synced 2025-12-08 19:55:52 +00:00
Fix: fixed onlycover flag in mobile (#1243)
This commit is contained in:
parent
b90c948090
commit
0663cb3ab1
@ -1,4 +1,3 @@
|
||||
import { isMobile } from '../util/env';
|
||||
/**
|
||||
* Render github corner
|
||||
* @param {Object} data URL for the View Source on Github link
|
||||
@ -51,9 +50,8 @@ export function main(config) {
|
||||
: '') +
|
||||
'<div class="sidebar-nav"><!--sidebar--></div>' +
|
||||
'</aside>';
|
||||
|
||||
return (
|
||||
(isMobile ? `${aside}<main>` : `<main>${aside}`) +
|
||||
`<main>${aside}` +
|
||||
'<section class="content">' +
|
||||
'<article class="markdown-section" id="main"><!--main--></article>' +
|
||||
'</section>' +
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user