Yes, you can use the parameters Params.images
and Params.photos
. The first includes JPEGs and PNGs, while the latter only contains JPEGs, as described here.
One possible solution:
{{ if isset .Params "photos" }}📸{{ end }}
Yes, you can use the parameters Params.images
and Params.photos
. The first includes JPEGs and PNGs, while the latter only contains JPEGs, as described here.
One possible solution:
{{ if isset .Params "photos" }}📸{{ end }}