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

[Feature Request] Table of contents #219

Open
rootkea opened this issue Nov 15, 2018 · 5 comments
Open

[Feature Request] Table of contents #219

rootkea opened this issue Nov 15, 2018 · 5 comments

Comments

@rootkea
Copy link

rootkea commented Nov 15, 2018

Hello!

I'm new to (Hu)Go and just tried the Beautifulhugo theme and I really like it!

Often at times, when the technical article gets some considerable length it becomes cumbersome to jump around the article. It would be really cool if we could have the table of contents beside the post.

I'm mainly looking at the one provided by AllinOne theme.[0]
Even the one from er theme looks nice too.[1]

Thanks!

[0] https://orianna-zzo.github.io/AllinOne-html/blog/2018-08/%E9%9F%B3%E4%B9%90%E5%89%A7catrepo/
[1] https://themes.gohugo.io//theme/er/post/markdown-syntax/

@pad92
Copy link
Contributor

pad92 commented Nov 16, 2018

i need some time for PR from my fork

@VincentTam
Copy link
Contributor

You may see gohugoio/hugo#1778 (comment) for the code block which addresses your problem, as well as my blog post for an example.

screenshot_2018-11-16 2018-10-04 seminar notes

@rootkea
Copy link
Author

rootkea commented Nov 20, 2018

@pad92 Thank you for working on this! Eagerly waiting for the PR to land in BeautifulHugo. :)

@pad92
Copy link
Contributor

pad92 commented Nov 20, 2018 via email

@rootkea
Copy link
Author

rootkea commented Nov 20, 2018

@pad92 It's okay :)

BTW, I think the theme should offer expandable table of contents beside the post such that the whole ToC or parts of it can be expanded or collapsed on user click allowing greater flexibility.

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

3 participants