Up arrow (you're already using): ↑ (⬦ or ↑ doesn't work in all fonts, so you're good with ↑)
Left arrow (for back): ← (⬩) or ← (←) or ⬅ (⬅)
Right arrow: → (⬫) (in case you need it)
Down arrow: ↓ (⬨) (just for completeness)
Alternatively, you can use more modern and sleek arrow icons from Unicode:
Up arrow: ↑ (↑ or ↑)
Left arrow: ← (← or ←)
Right arrow: → (→ or →)
Down arrow: ↓ (↓ or ↓)
Which arrow to use for "go back" to T.O.C.?
A left arrow makes perfect sense for "go back" as it's commonly associated with:
Back button behavior (as you mentioned)
Reversing direction (from bottom to top, or from detail to overview)
Between ← and ←, I recommend ← (← or ←). It's:
More widely supported across fonts and devices
Cleaner and more minimalist look (compared to ←, which is a bit chunky)
Example HTML:
Add this near your existing h2 element (maybe below the div.rep-item-body):
html
<a href='#toc-entry-[CommentTag]@27a8c74e'
title='Back to Table of Contents'
style='float:right;padding-left:1em;font-size:20px;'>←</a>
Notes:
Replace #toc-entry-[CommentTag]@27a8c74e with the actual id attribute of the T.O.C. link/entry that points to this section. If that link looks like <a href='#[CommentTag]@27a8c74e'>...</a>, then use #toc-[CommentTag]@27a8c74e (added toc- prefix). Make sure the id exists in your T.O.C. HTML!
I used float:right to position the "back" arrow on the right side of the section, so it doesn't interfere with your existing "up" arrow on the left.
Adjust font-size and padding (padding-left) as needed to match your design.
Even nicer: Add some CSS animation
Optional, but fancy: Add a smooth scroll effect to your "up" and "back" links using CSS:
css
html {
scroll-behavior: smooth;
}
This will gently animate the scrolling when users click your arrow links.
Hope this helps! Let me know if you need further tweaks. 😊