reused code in index files using partials collection