Customizing button click on different pages of a single dynamic page

I have a dynamic page of 13 blog post pages. For each single blog post page, I want to add a button which will be customized (meaning; depending on which blog post page you are, the button click will open a different lightbox).

How do I achieve that?