0
0

Compare commits

...

4 Commits

Author SHA1 Message Date
Sergey Chebotar
d3518d6bb5 Icon fix 2023-06-22 16:45:33 +03:00
Sergey Chebotar
85d9a03b88 Structured data edit 2023-06-22 07:25:24 +03:00
Sergey Chebotar
2148282b07 Add schema.org Product and Offer properties 2023-06-21 09:47:47 +03:00
Sergey Chebotar
c2db294e08 Edit Open Graph meta properties 2023-06-21 09:46:33 +03:00
3 changed files with 21 additions and 10 deletions

View File

@ -3,20 +3,27 @@
<head>
<meta charset="utf-8" />
<title>My Darling Underwear - нижнее бельё ручной работы</title>
<meta name="title" content="My Darling Underwear - нижнее бельё ручной работы" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="description" content="Нижнее бельё ручной работы по вашим индивидуальным меркам.
Сошьём бельё мечты по вашим меркам за 4-7 дней. Находимся в Новороссийске. Доставляем по городу и РФ." />
<meta name="author" content="Екатерина Мануйлова" />
<meta property="og:title" content="My Darling Underwear" />
<meta property="og:title" content="My Darling Underwear - нижнее бельё ручной работы" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://mydarlingunderwear.ru/" />
<meta property="og:description" content="Нижнее бельё ручной работы по вашим индивидуальным меркам" />
<meta property="og:image" content="https://mydarlingunderwear.ru/assets/img/bg-signup.jpg" />
<title>My Darling Underwear - нижнее бельё ручной работы</title>
<meta property="og:image" content="https://mydarlingunderwear.ru/assets/img/og-image.jpg" />
<meta property="og:description" content="Нижнее бельё ручной работы по вашим индивидуальным меркам.
Сошьём бельё мечты по вашим меркам за 4-7 дней. Находимся в Новороссийске. Доставляем по городу и РФ" />
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
<link rel="shortcut icon" type="image/png" href="/favicon.png" />
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
<script src="/lib/font-awesome/js/all.js"></script>
<link href="/lib/fancyapps-ui/fancybox.css" rel="stylesheet" />
<link href="/css/styles.css" rel="stylesheet" />
<!-- Yandex.Metrika counter -->
<script type="text/javascript">
(function (m, e, t, r, i, k, a) {

View File

@ -16,7 +16,9 @@
@foreach (var product in products)
{
<div class="col mb-5">
<div class="card h-100">
<div class="card h-100" itemscope itemtype="http://schema.org/Product">
<meta itemprop="name" content="@product.Name"/>
<meta itemprop="description" content="@product.Description"/>
@{
var figure = product.Figures.First();
var filePath = $"/Content/{product.Id}/{figure.Id}.jpg";
@ -24,7 +26,7 @@
}
<a data-src="@filePath" data-fancybox="@product.Id"
data-caption="@figure.Description"><img class="card-img-top"
src="@thumbnailPath" alt="@product.Name" /></a>
src="@thumbnailPath" alt="@product.Name" itemprop="image"/></a>
@for (int i = 1; i < product.Figures.Count(); i++)
{
filePath = $"/Content/{product.Id}/{product.Figures[i].Id}.jpg";
@ -32,9 +34,11 @@
data-caption="@product.Figures[i].Description"></a>
}
<div class="card-body p-4">
<div class="text-center">
<h5 class="fw-bolder">@product.Name</h5>
@String.Format(new CultureInfo("ru-RU"), "{0:C0}", product.Price)
<div class="text-center" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
<h5 class="fw-bolder" itemprop="name">@product.Name</h5>
<span>@String.Format(new CultureInfo("ru-RU"), "{0:C0}", product.Price)</span>
<meta itemprop="price" content="@product.Price"/>
<meta itemprop="priceCurrency" content="RUB"/>
</div>
</div>
</div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 123 KiB