-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is this plugin still maintained? #24
Comments
Seems like more one year without a commit or answer on issues. |
Yes, you're right. And that makes me doubt about hexo. Maybe I should use another static website generator, such as hugo. Or there might be an alternative to hexo-toc? |
@oupala Hexo is good even if some plugins are not maintained sometimes. But for TOC a plugin is not mandatory: see http://hsin919.github.io/2015/02/11/Add-TOC/, you can use an external tool such as doctoc or add this in the template layout of your theme the following piece of code. <% if(post.toc !== false){ %>
<div id="toc" class="toc-article">
<strong class="toc-title">Table of contents</strong>
<%- toc(post.content) %>
</div>
<% } %> |
I agree TOC could be generated on the writer side, when saving. But generating the TOC on static generation step, automatically, whatever the writers have installed or not, is a must have. On the contrary, we might want to have a TOC on long articles only, which is not feasible when modifying the template. Thanks anyway for pointing out workarounds. |
The activity on this git repository seems to get flat this months.
Is this plugin still maintained?
The text was updated successfully, but these errors were encountered: