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

[Request] Sticky table of contents in desktop #96

Open
LazyGeniusMan opened this issue Jan 20, 2023 · 6 comments
Open

[Request] Sticky table of contents in desktop #96

LazyGeniusMan opened this issue Jan 20, 2023 · 6 comments
Assignees

Comments

@LazyGeniusMan
Copy link
Contributor

LazyGeniusMan commented Jan 20, 2023

It would be nice if there is table of contents in layout. It would be useful when the page content/article content is long. The table of contents on docus theme is nice.

Maybe make it configurable too in frontmatter, similiar how we can specify layout. Something like toc: true to show and toc: false to hide.

I also have question that a little bit related about improving navigation, does pagination is on the scope/plan of this theme? I notice that articles didn't have that.

@LazyGeniusMan LazyGeniusMan changed the title Add table of contents in articles layout Add table of contents in layout Jan 21, 2023
Copy link
Contributor

Atinux commented Jan 24, 2023

Thanks @LazyGeniusMan

It is a nice idea for adding a table of contents, where would you see it?

Also, pagination is not planned at the moment, do you have a lot of articles?

@LazyGeniusMan
Copy link
Contributor Author

It is a nice idea for adding a table of contents, where would you see it?

Just like docus is nice, on the right in desktop and sticky top on mobile. I'm not sure about RTL languange tho, whether they prefer it on the left or not.

Also, pagination is not planned at the moment, do you have a lot of articles?

Not really but it would be nice to have some kind of basic organization of articles like pagination or tag. Tag could also be used for related article section below article, not sure if it's possible or on the scope of this themes tho.

@Tahul
Copy link
Contributor

Tahul commented Jan 25, 2023

Curious of your thoughts on that @bdrtsky :)

@Benbinbin
Copy link

Benbinbin commented Apr 12, 2023

Just build something like this for fun 😝 but finally it seems more useful

tree-catalog.mp4

the Tree Catalog is powered by D3.js

Copy link
Contributor

Tahul commented May 17, 2023

I love it!

@Tahul Tahul closed this as completed May 17, 2023
@Tahul Tahul reopened this May 17, 2023
@Tahul Tahul changed the title Add table of contents in layout [Request] Sticky table of contents in desktop May 17, 2023
Copy link
Contributor

Tahul commented May 17, 2023

@bdrtsky what do you think?

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

5 participants