Skip to content

Commit

Permalink
perf(toc): support encrypted article display toc (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
XPoet committed May 14, 2024
1 parent 4145926 commit 1529ba0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions layout/_partial/toc.ejs
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<div class="post-toc-wrap border-box">
<div class="post-toc border-box">
<!-- use hexo-blog-encrypt -->
<%- toc(
page.content,
{
class: 'nav',
list_number: theme?.toc?.number || false
}
page?.encrypt === true ? page.origin : page.content,
{
class: 'nav',
list_number: theme?.toc?.number || false
}
) %>
</div>
</div>

0 comments on commit 1529ba0

Please sign in to comment.