pmoreno-rodriguez / grav-theme-future2021

Future Imperfect theme by HTML5UP ported from scratch to Grav. Version 2021
Other
20 stars 10 forks source link

Sticky menu for blog posts #45

Closed pquerner closed 11 months ago

pquerner commented 1 year ago

Is a sticky menu planned? ie. left for long blog posts Like the mini-post sidemenu, but stickied, and with information from the post, like "table of contents"

pmoreno-rodriguez commented 1 year ago

Hi @pquerner. I will take a look. I assume you mean something like this: https://wowthemesnet.github.io/mundana-theme-jekyll/

pquerner commented 1 year ago

Yea, exactly. Maybe this could be useful? Idk, tell me what you think. :)

pmoreno-rodriguez commented 1 year ago

Hi.

I've been testing some css change for the sidebar with the position: sticky property, and it works fine, but all this does is leave the sidebar fixed by scrolling the body of the page.

I'm thinking that it might be better for users to offer the ability to sidebar a list of recently published articles, instead of featured articles, or both, in the Blog template. To do this you would have to create a new partial template, but this would be an option with more alternatives than simply setting the sidebar position to fixed.

I won't be able to make these changes as quickly as on other occasions, but I'll write it down on my to-do list and choose one of these proposals.

pmoreno-rodriguez commented 1 year ago

Hi @pquerner. I've just released a new version of theme Future2021, with a new template with the recent posts, customizable in theme options.

At the moment, I think this is better than sticky section in sidebar because the latter has some issues with theme's CSS styles.

pmoreno-rodriguez commented 1 year ago

However there is a plugin in Grav repository for a table of contents in long posts.

This is the link: https://github.com/trilbymedia/grav-plugin-page-toc

pmoreno-rodriguez commented 11 months ago

Hi @pquerner

Can you test the latest version of theme, in the README page (in demo version), with a table of contents in a large page.

I've included support for Page Toc plugin.

I think it's that what you suggested.

pquerner commented 11 months ago

Wonderful. Thats exactly how I pictured it! :)