ItemList JSON-LD on Jobs/Shifts list & landing pages
Mark up the result list as a schema.org ItemList (ordered listing URLs) so Google reads the landing/list pages as a curated collection. Emitted alongside the breadcrumb JSON-LD when there are results. Improvement 6 of the backlog (SEO). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -145,4 +145,8 @@
|
||||
@section Head {
|
||||
@{ var bcUrl = $"{ViewContext.HttpContext.Request.Scheme}://{ViewContext.HttpContext.Request.Host}"; }
|
||||
@Html.Raw("<script type=\"application/ld+json\">" + JobsMedical.Web.Services.SeoJsonLd.Breadcrumb(Model.Breadcrumbs, bcUrl) + "</script>")
|
||||
@if (Model.Results.Count > 0)
|
||||
{
|
||||
@Html.Raw("<script type=\"application/ld+json\">" + JobsMedical.Web.Services.SeoJsonLd.ItemList(Model.Results.Select(j => "/Jobs/Details/" + j.Id), bcUrl) + "</script>")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -178,4 +178,8 @@
|
||||
@section Head {
|
||||
@{ var bcUrl = $"{ViewContext.HttpContext.Request.Scheme}://{ViewContext.HttpContext.Request.Host}"; }
|
||||
@Html.Raw("<script type=\"application/ld+json\">" + JobsMedical.Web.Services.SeoJsonLd.Breadcrumb(Model.Breadcrumbs, bcUrl) + "</script>")
|
||||
@if (Model.Results.Count > 0)
|
||||
{
|
||||
@Html.Raw("<script type=\"application/ld+json\">" + JobsMedical.Web.Services.SeoJsonLd.ItemList(Model.Results.Select(s => "/Shifts/Details/" + s.Id), bcUrl) + "</script>")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user