lukeorth / poison

Professional Hugo theme for dev bloggers. Based on Mdo's classic Hyde theme.
https://poison.lukeorth.com
GNU General Public License v3.0
205 stars 97 forks source link

Decrease the window size required to display the article toc #56

Closed traveltissues closed 1 year ago

traveltissues commented 1 year ago

Also resize the toc slightly to fit better in the available space

fixes #52 requires #55

wide window

screenshot 8

narrow window

screenshot 9

very narrow window

screenshot 10

KarlAustin commented 1 year ago

I think there's a bigger opportunity here with re-organising the HTML structure to make these kind of changes configurable from the config file by using flexbox and moving the TOC outside of <div class="post">, along with some other semantic markup changes.

traveltissues commented 1 year ago

changes configurable from the config file by using flexbox and moving the TOC outside of

yes, I think long-term that could be more robust of a solution. However, the highlighting is also currently a little broken on the ToC regardless (#53 - this seems actually to be an offset issue) disclaimer: this is very much not my area (web stuff and sites)