Here’s a little snippet that might save a few minutes for someone writing a Bootstrap pagination control for a Middleman based blog’s index page.
Middleman is one of many tools to generate a static website. You write your site in your choice of technologies...