-
Notifications
You must be signed in to change notification settings - Fork 604
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
:WIP: [Feature] Table of contents #226
base: master
Are you sure you want to change the base?
Conversation
Hi! Is this complete? BTW, I am testing exampleSite with Am I missing something? Thanks! |
you need to enable it, by default it's disabled
TODO :
|
Oops! My bad! BTW, I think we should make ToC sticky to the side while page gets scrolled just like er theme. |
Do you have js/css that ? :) |
umm.. We can look at the AllinOne[0] and/or Er[1] theme. Sorry, I'm not good at css/js so can't really help :( [0] https://themes.gohugo.io//theme/AllinOne/blog/2018-08/%E9%9F%B3%E4%B9%90%E5%89%A7catrepo/ |
@pad92 Thanks again for your PR. Here's my another quick test result on my demo site at https://vincenttam.gitlab.io/bhdemo (source) built for testitng #222 and eduardoboucas/staticman#219. Unluckily, your PR contains a bug, which can be easily fixed by applying the Go-HTML template in gohugoio/hugo#1778 (comment). Mind to fix that? |
thx @VincentTam |
@pad92 Thx for feedback. I have really no idea why your CSS code in |
i retry and have css
|
It seems that in my site, your CSS is overidden by other rules, so I followed your instructions to test this PR. Your TOC seems a bit aligned to the right. The colors are consistent with the whole theme. I would like to leave a little remark that the border is a bit angled. In the homepage, the border for the front matter has |
if someone has an idea to fix ... I'm open :) |
i'm unable to reproduce this issue. https://pad92.gitlab.io/demo_beautifulhugo/posts/my-second-post/ If you have time to improve and update this request. I want this feature for in the main project to delete my fork:) |
🎉 https://pad92.gitlab.io/demo_beautifulhugo/posts/my-second-post/ :) I ended up listening to you, yes, it's easier that way. |
Suggestions:
|
* master: Add KaTeX fonts for use with self-hosted option Add option to self host static files Corrected Chinese Staticman UI string Added Japanese translation
#219