nicokaiser / hugo-theme-gallery

Gallery Theme for Hugo
https://nicokaiser.github.io/hugo-theme-gallery/
MIT License
305 stars 85 forks source link

Inconsistency in photo count in albums in example site #53

Closed hugo-sid closed 5 months ago

hugo-sid commented 5 months ago

First, thanks for this great theme.

I just found a small bug/error in photo count in the example site.

Steps to reproduce

  1. Navigate to https://nicokaiser.github.io/hugo-theme-gallery/

    You will see that the 'Animals' album has 14 photos.

    image

  2. Navigate to https://nicokaiser.github.io/hugo-theme-gallery/animals/

    You will see that there are 13 (=9+4) photos inside.

    image

nicokaiser commented 5 months ago

I completely agree! From a technical point of view, the count of 14 is correct (because the 14th photo is the one of the brown cameleon, which is the cover photo of the "Animals" album), but since this is not a photo you can view on its own, it should not be counted.