generate index for current article