resolve #5, 使用 hexo 编译网站

This commit is contained in:
Changkun Ou
2018-05-03 11:30:28 +02:00
parent 0247488f7a
commit 497516914d
52 changed files with 16839 additions and 3 deletions

View File

@@ -0,0 +1,23 @@
<div class="sidebar">
<div class="sidebar-inner">
<ul class="main-menu">
<%- partial('partials/main_menu', { context: 'sidebar' }) %>
</ul>
<div class="list">
<h2>
<%-
type === 'exercises'
? '习题'
: type === 'book-zh-cn'
? '正文'
: type === 'answers'
? '参考答案'
: type === 'about'
? '关于'
: (type.charAt(0).toUpperCase() + type.slice(1))
%>
</h2>
<%- partial('partials/toc', { type: type }) %>
</div>
</div>
</div>