gokarna icon indicating copy to clipboard operation
gokarna copied to clipboard

Feature Request: Responsive Table of Contents

Open jamesericdavidson opened this issue 2 years ago • 4 comments

#95 added a Table of Contents for desktop, but it does not appear on mobile.

The Gokarna implementation is superior to the generic Hugo shortcode, so seeing this feature regardless of screen size would be great.

If you don't want to implement this feature yourselves, guidance on submitting a Pull Request would be appreciated! :smile:

jamesericdavidson avatar Jul 24 '22 14:07 jamesericdavidson

@jamesericdavidson Thank you for the kind words.

We haven't implemented the mobile version yet cause its a bit tricky to create a nice UI which is both purposeful and aesthetic. We will probably implement it by adding a Table of contents dropdown at the start of the page

If you don't want to implement this feature yourselves, guidance on submitting a Pull Request would be appreciated!

That's highly appreciated, we'll try to pick this up and get this done next week but if that doesn't happen would love your help

yashmehrotra avatar Jul 27 '22 05:07 yashmehrotra

how about a colapse-able TOC with a button which is constantly displayed, something like this: New Project

mansoorbarri avatar Nov 08 '23 09:11 mansoorbarri

@mansoorbarri This does not match the UI design and looks bad

Have you seen any other sites doing this on mobile, curious to see how others have implemented it

yashmehrotra avatar Nov 09 '23 04:11 yashmehrotra

@mansoorbarri This does not match the UI design and looks bad

Have you seen any other sites doing this on mobile, curious to see how others have implemented it

https://christitus.com used to have a collapsible menu at the top of every article but now he has removed that too.

I think there is no "good" way to do this right now.

mansoorbarri avatar Nov 09 '23 10:11 mansoorbarri