Allow Overriding of ToC#329
Conversation
I like this idea.
I'd say add the proper indentation but keep it as a separate commit. That way it's still easy to see what's changed by just not looking at that commit (or by using |
assets/css/common/post-single.css
Outdated
| margin: auto 0; | ||
| padding: 10px; | ||
| color: rgba(255, 255, 255, .8); | ||
| color: var(--primary); |
There was a problem hiding this comment.
This change breaks the text color of code blocks in light mode.
There was a problem hiding this comment.
Arg, I should not have used my master branch for the PR 🙈 I reverted this change there 👍 (b46ada5)
There was a problem hiding this comment.
Thanks! It might make sense to rebase on top of upstream's master, so there aren't two extra commits, but that's up to you and/or @adityatelange.
Done in 8d3c7fd 👍 |
Awesome, thanks! I ran |
Fix color of "Name" class in Code Highlighting Revert "Fix color of "Name" class in Code Highlighting" This reverts commit a94d424. Fix indentation
|
Kudos, SonarCloud Quality Gate passed! |
Allows Overriding of ToC

Motivation: I'd like to use the title of a post as the title of the ToC as well (since I have it floating left of the text).
Problem: The "outer" part of the ToC (which includes the title) is currently defined in the
single.html, and only the<ul>is defined in thetoc.html-partial.This PR moves the complete html-code of the ToC into the
toc.htmlpartial.single.html, to be consistent with with other conditional partialscommentsandshare_icons.toc.htmlto keep the diff easier. If you prefer proper indentation, I'll gladly do that 👍