I thought the fileExists function follows the lookup order. For example, If I don’t have a file at root/static/images/avatar.png, Hugo would find the file automatically by searching at root/themes/zzo/static/images/avatar.png but that didn’t happen.
The function also works on my end when I put the file at root static folder.
Thank you for reply