Functional Karma calculation on index template and post templates