Inside the loop display the value associated with the current chapter key.
chapter
Make sure to pick contents followed by [ and then chapter, ].
contents
[
]