diff options
Diffstat (limited to 'Pages/Shared')
-rw-r--r-- | Pages/Shared/_Products.cshtml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Pages/Shared/_Products.cshtml b/Pages/Shared/_Products.cshtml index a82ac1c..eb38444 100644 --- a/Pages/Shared/_Products.cshtml +++ b/Pages/Shared/_Products.cshtml @@ -20,10 +20,11 @@ @{ var figure = product.Figures.First(); var filePath = $"/Content/{product.Id}/{figure.Id}.jpg"; + var thumbnailPath = $"/Content/{product.Id}/{figure.Id}_thumb.jpg"; } <a data-src="@filePath" data-fancybox="@product.Id" data-caption="@figure.Description"><img class="card-img-top" - src="@filePath" alt="@product.Name" /></a> + src="@thumbnailPath" alt="@product.Name" /></a> @for (int i = 1; i < product.Figures.Count(); i++) { filePath = $"/Content/{product.Id}/{product.Figures[i].Id}.jpg"; |