Closes #26: Add detection for parent/child categories; separate templates