blog/themes/fluid/layout/_partials/post/sidebar-right.ejs
2024-11-16 11:34:10 +08:00

11 lines
548 B
Plaintext

<% if(theme.post.toc.enable && theme.post.toc.placement !== 'left' && page.toc !== false){ %>
<aside class="sidebar" style="margin-left: -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-left: -1rem">
<%- partial('_partials/post/category-bar') %>
</aside>
<% } %>