hexo-toc icon indicating copy to clipboard operation
hexo-toc copied to clipboard

Is this plugin still maintained?

Open oupala opened this issue 7 years ago • 4 comments

The activity on this git repository seems to get flat this months.

Is this plugin still maintained?

oupala avatar May 24 '18 19:05 oupala

Seems like more one year without a commit or answer on issues.

noraj avatar Sep 09 '18 22:09 noraj

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 avatar Sep 10 '18 06:09 oupala

@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>
<% } %>

noraj avatar Sep 10 '18 08:09 noraj

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.

oupala avatar Sep 10 '18 20:09 oupala