Gamma won't attempt to fetch photos when 'photos' parameter is false.

This commit is contained in:
2020-03-06 23:50:52 +01:00
parent 9d9c741ce9
commit 6820608a09
2 changed files with 2 additions and 1 deletions

View File

@@ -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}`;
}