Use data-toggle="lightbox" attribute to attach lightbox action and href to specify URL.
Use data-lightbox-gallery="YOUR_GALLERY_NAME" to group ligthboxes and use next/prev arrows
You can use data-href attribute to specify link and attach lightbox to another element