I created my own template, but how can I add the blogger lightbox function on my template code


I created my first blogger template from scratch; However, the lightbox function doesn’t work.

When, I click a img on my post, it go to the img url. I tried to activate the lightbox property on configuration > post, comments and share, but it doesn’t to anything.

Is their any way to add a code to my template to add the blogger lightbox function?