This commit is contained in:
parent
dacdc533da
commit
3ab1c0c119
21 changed files with 2244 additions and 0 deletions
17
theme/default/partial/chapters.ejs
Normal file
17
theme/default/partial/chapters.ejs
Normal file
|
@ -0,0 +1,17 @@
|
|||
<% if (chapters && chapters.length > 0) {%>
|
||||
<div class="sidebar-border">
|
||||
<aside class="sidebar" role="navigation">
|
||||
<div>
|
||||
<% chapters.forEach((chapter) => { %>
|
||||
<% if (chapter.isFolder) { %>
|
||||
<label><%= chapter.label %></label>
|
||||
<% } else if (chapter.href && /^https?:\/\//.test(chapter.href)) { %>
|
||||
<a href="<%= chapter.href %>" target="_blank" class="<%- chapter.active ? 'active' : '' %>"><%= chapter.label %></a>
|
||||
<% } else { %>
|
||||
<a href="<%= chapter.href %>" class="<%- chapter.active ? 'active' : '' %>"><%= chapter.label %></a>
|
||||
<% } %>
|
||||
<% }) %>
|
||||
</div>
|
||||
</aside>
|
||||
</div>
|
||||
<% } %>
|
Loading…
Add table
Add a link
Reference in a new issue