You could very simply enable Breadcrumbs, which would display
the current topic name in addition to its complete TOC path. No
work required in templates or topics, at all!
Simply check the Add Breadcrumbs Links box in the Navigation
panel of the second Generate wizard window. Click the Format button
to access another window (looks like putting a banner behind this
text would require some manual work on your part).