Skip to content

Commit

Permalink
Fix: fixed onlycover flag in mobile (#1243)
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammedsahl committed Jun 26, 2020
1 parent b90c948 commit 0663cb3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/core/render/tpl.js
@@ -1,4 +1,3 @@
import { isMobile } from '../util/env';
/**
* Render github corner
* @param {Object} data URL for the View Source on Github link
Expand Down Expand Up @@ -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>' +
Expand Down

1 comment on commit 0663cb3

@vercel
Copy link

@vercel vercel bot commented on 0663cb3 Jun 26, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.