Files
hamkadr/src/JobsMedical.Web/Pages/Shared/_Breadcrumbs.cshtml
T
soroush.asadi 3edd21d2b6
CI/CD / CI · dotnet build (push) Successful in 2m8s
CI/CD / Deploy · hamkadr (push) Has been cancelled
Breadcrumbs: visible trail + BreadcrumbList JSON-LD
Add SeoJsonLd.Breadcrumb + Crumb record + _Breadcrumbs partial, and wire a trail
into the Jobs/Shifts list (landing) and detail pages: خانه › استخدام/شیفت › {نقش}
› {شهر|عنوان}. The role crumb links to the role landing page (more internal
links), and Google can show the breadcrumb path in results. Detail pages emit it
alongside the existing JobPosting JSON-LD.

Improvement 5 of the backlog (SEO).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-20 19:12:38 +03:30

21 lines
735 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
@model IReadOnlyList<JobsMedical.Web.Services.Crumb>
@* Visible breadcrumb trail. The last crumb is the current page (no link). Pair with the
BreadcrumbList JSON-LD (SeoJsonLd.Breadcrumb) emitted in @@section Head. *@
@if (Model is { Count: > 1 })
{
<nav class="breadcrumbs" aria-label="مسیر">
@for (var i = 0; i < Model.Count; i++)
{
if (i > 0) { <span class="bc-sep" aria-hidden="true"></span> }
@if (!string.IsNullOrEmpty(Model[i].Url) && i < Model.Count - 1)
{
<a href="@Model[i].Url">@Model[i].Name</a>
}
else
{
<span class="bc-current">@Model[i].Name</span>
}
}
</nav>
}