distill icon indicating copy to clipboard operation
distill copied to clipboard

Apply headroom.js to table of contents

Open apreshill opened this issue 4 years ago • 1 comments

Hi @jjallaire,

I'm posting this as an issue to see if any other distill users think this would be a good feature to add. I find that I often wish I could get a glimpse of my table of contents from further down in a distill page, and I wonder if headroom.js could be applied to single articles and articles within websites, where when you scroll up briefly, the TOC appears for a moment.

Here are my two most recent use cases:

https://apreshill.github.io/knitterverse/index.html#sample-plot

https://apreshill.github.io/tweetable-rmd/

apreshill avatar Mar 12 '21 00:03 apreshill

This would be fantastic, I love the floating ToC in basic RMarkdown sites, and for most blog posts it would be nice to have the ToC scroll and hide depending on movement.

jthomasmock avatar Mar 19 '21 17:03 jthomasmock