This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
spdocker/themes/spd/layout/_partial/toc.ejs

15 lines
454 B
Plaintext
Raw Permalink Normal View History

2018-03-07 04:58:54 +00:00
<!-- Table of Contents -->
<% if (page.catalog) { %>
<% if (is_post()){ %>
<aside id="sidebar">
<div id="toc" class="toc-article">
<strong class="toc-title"><%= __('Contents') %></strong>
<% if (toc(page.content) != ""){ %>
<%- toc(page.content, { "class": "toc-nav" }) %>
<% } else { %>
<ol class="nav"><%= __('none') %></ol>
<% } %>
</div>
</aside>
<% } %>
<% } %>