mirror of
https://github.com/radzenhq/radzen-blazor.git
synced 2026-07-09 02:26:08 +00:00
Enrich all 58 chart/dataviz demo pages on blazor.radzen.com for search
and AI discovery:
- JSON-LD via a new head-schemas section + SeoSchema/DemoSeo, emitted
once per page from MainLayout (CollectionPage+ItemList on /charts,
TechArticle+BreadcrumbList+FAQPage on each chart page)
- Human-readable intros, 1-3 FAQs, and related-chart links per page,
sourced once from ExampleService (rendered on-page and as FAQPage)
- Complete OG/Twitter tags; corrected gallery copy (30+ chart types /
40+ data-visualization components); dropped "native" wording
- Rename chart-spline/-histogram/-pareto to {type}-chart
Adds RadzenBlazorDemos/Services/SeoSchema.cs and Shared/DemoSeo.razor.
36 lines
1.1 KiB
C#
36 lines
1.1 KiB
C#
using System.Collections.Generic;
|
|
|
|
namespace RadzenBlazorDemos
|
|
{
|
|
public class Example
|
|
{
|
|
public bool New { get; set; }
|
|
public bool Updated { get; set; }
|
|
public bool Pro { get; set; }
|
|
public string Name { get; set; }
|
|
public string Icon { get; set; }
|
|
public string Path { get; set; }
|
|
public string Title { get; set; }
|
|
public string Description { get; set; }
|
|
public bool Expanded { get; set; }
|
|
public IEnumerable<Example> Children { get; set; }
|
|
public IEnumerable<string> Tags { get; set; }
|
|
public IEnumerable<ExampleSection> Toc { get; set; }
|
|
|
|
// SEO enrichment (rendered on-page and as JSON-LD by DemoSeo). Optional.
|
|
public IEnumerable<string> Related { get; set; }
|
|
public IEnumerable<FaqItem> Faq { get; set; }
|
|
}
|
|
|
|
public class ExampleSection
|
|
{
|
|
public string Text { get; set; }
|
|
public string Anchor { get; set; }
|
|
}
|
|
|
|
public class FaqItem
|
|
{
|
|
public string Question { get; set; }
|
|
public string Answer { get; set; }
|
|
}
|
|
} |