Gamma won't attempt to fetch photos when 'photos' parameter is false.
This commit is contained in:
@@ -18,7 +18,7 @@ function getAlbumUrl(albumPath, site) {
|
||||
: `${site.url}${site.parameters.photos}/${albumPath.split('/').slice(-2).join('/')}`;
|
||||
}
|
||||
|
||||
if (site.url) {
|
||||
if (site.url && site.parameters?.photos !== false) {
|
||||
return `${site.url}${albumPath}`;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user