uhm-coe / assist

Assist is a support site built with Jekyll.
https://assist.coe.hawaii.edu/
Apache License 2.0
3 stars 1 forks source link

Create in-page section menu based on heading levels #115

Open billymeinke opened 8 years ago

billymeinke commented 8 years ago

For the strategy posts, there are more sections than can be easily scrolled through. It'd be better to have an in-page menu to jump down the page to sections based on their h2, h3, h4 etc heading levels.

@fjumawan will add some examples.

What do you think, @enriquezm?

ghost commented 8 years ago

@enriquezm Here are some examples that incorporate such features such as contents and sections: https://www.jisc.ac.uk/guides/make-your-collection-available-for-learning-and-teaching screen shot 2016-06-07 at 2 55 05 pm


https://programs.coe.hawaii.edu/chl/fshn491-assess/lessons/why-measure-body-composition-in-children/ screen shot 2016-06-07 at 2 34 22 pm

billymeinke commented 8 years ago

Note: This would only need to appear on the Strategy page template for now, as there may be unnecessary headings assigned inside a how-to tutorial.

parkjc commented 8 years ago

@billymeinke @fjumawan created a table of contents for strategies. Still need to work on dynamically moving it around based on page position.

billymeinke commented 8 years ago

Awesome, thanks for this @parkjc.

billymeinke commented 8 years ago

@enriquezm Would you be able to take look at this and help the sidebar items (or just the submenu) float down as users scroll? Thanks!

enriquezm commented 8 years ago

@billymeinke for sure! I'll look into it.