Inside the loop display the value associated with the current chapter key.

Make sure to pick contents followed by [ and then chapter, ].