mirror of https://github.com/jkjoy/sunpeiwen.git
11 lines
580 B
Plaintext
11 lines
580 B
Plaintext
<% if(theme.post.toc.enable && theme.post.toc.placement === 'left' && page.toc !== false){ %>
|
|
<aside class="sidebar" style="padding-left: 2rem; margin-right: -1rem">
|
|
<%- partial('_partials/post/toc') %>
|
|
</aside>
|
|
<% } else if (theme.post.category_bar.enable && theme.post.category_bar.placement !== 'right' && !page.hide &&
|
|
(!theme.post.category_bar.specific || (theme.post.category_bar.specific && page.category_bar))) { %>
|
|
<aside class="sidebar category-bar" style="margin-right: -1rem">
|
|
<%- partial('_partials/post/category-bar') %>
|
|
</aside>
|
|
<% } %>
|