mirror of
https://github.com/changkun/modern-cpp-tutorial.git
synced 2025-12-17 12:44:40 +03:00
resolve #5, 使用 hexo 编译网站
This commit is contained in:
7
website/themes/moderncpp/layout/partials/toc.ejs
Executable file
7
website/themes/moderncpp/layout/partials/toc.ejs
Executable file
@@ -0,0 +1,7 @@
|
||||
<ul class="menu-root">
|
||||
<% site.pages.find({type: type}).sort('order').each(function (p) { %>
|
||||
<li>
|
||||
<a href="<%- url_for(p.path) %>" class="sidebar-link<%- page.title === p.title ? ' current' : '' %><%- p.is_new ? ' new' : '' %>"><%- p.title %></a>
|
||||
</li>
|
||||
<% }) %>
|
||||
</ul>
|
||||
Reference in New Issue
Block a user