adds template for pagination, based on github template