Revert "moved template before a so that a is still last-child"

This reverts commit f8c537a56c26e5ca521f01eb1df0058965621dbe.