Skip to content
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

Open
oupala opened this issue May 24, 2018 · 4 comments
Open

Is this plugin still maintained? #24

oupala opened this issue May 24, 2018 · 4 comments

Comments

@oupala
Copy link

oupala commented May 24, 2018

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

Is this plugin still maintained?

@noraj
Copy link

noraj commented Sep 9, 2018

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

@oupala
Copy link
Author

oupala commented Sep 10, 2018

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?

@noraj
Copy link

noraj commented Sep 10, 2018

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

@oupala
Copy link
Author

oupala commented Sep 10, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants