Skip to content

Commit

Permalink
让markdown显示
Browse files Browse the repository at this point in the history
  • Loading branch information
zmrdlb committed Jul 18, 2016
1 parent d0d3dbf commit d804f27
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion assets/nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function handleSectionTrigger (event) {
}

function activateDefaultSection () {
document.getElementById('button-write').click()
document.getElementById('button-markdown').click()
}

function showMainContent () {
Expand Down
11 changes: 3 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,10 @@
<link rel="stylesheet" href="assets/css/page/global.css">
<link rel="stylesheet" href="assets/css/page/nav.css">
<link rel="stylesheet" href="assets/css/page/section.css">
<link rel="stylesheet" href="assets/css/page/demo.css">
<link rel="stylesheet" href="assets/css/page/about.css">

<link rel="stylesheet" href="assets/css/common/core/markdown.css">
<link rel="stylesheet" href="assets/css/page/about.css">

<link rel="import" href="sections/blog/write.html">
<link rel="import" href="sections/blog/markdown.html">
<link rel="import" href="sections/blog/markdown.html">
<link rel="import" href="sections/about.html">

</head>
Expand All @@ -32,8 +29,7 @@ <h5 class="nav-category">
<svg class="nav-icon"><use xlink:href="assets/img/icons.svg#icon-windows"></use></svg>
博客
</h5>
<button type="button" id="button-write" data-section="write" class="nav-button">写博客<em>markdown</em></button>
<button type="button" id="button-markdown" data-section="markdown" class="nav-button">markdown<em>markdown</em></button>
<button type="button" id="button-markdown" data-section="markdown" class="nav-button">写博客<em>markdown</em></button>
</div>

<footer class="nav-footer">
Expand All @@ -50,7 +46,6 @@ <h5 class="nav-category">
require('./assets/imports')
require('./assets/ex-links')
require('./assets/nav')
require('./assets/demo-btns')
require('./assets/code-blocks')
require('./assets/normalize-shortcuts')
</script>
Expand Down

0 comments on commit d804f27

Please sign in to comment.