2573729db5
Build and Deploy to Kubernetes / build-and-deploy (push) Has been cancelled
- Added SEO configuration settings in appsettings for both development and staging environments, including site URL, name, and default description. - Registered SEO-related services in the dependency injection container, including `SeoMetadataProvider` and `SitemapGenerator`. - Updated the main program to configure SEO settings and map a new endpoint for generating the sitemap. - Enhanced the `_Host.cshtml` page to utilize SEO metadata, including title, description, and Open Graph tags, improving search engine visibility and user engagement. These changes significantly enhance the SEO capabilities of the application, ensuring better indexing and presentation in search results.
11 lines
330 B
C#
11 lines
330 B
C#
namespace FrontOffice.Main.Utilities.Seo;
|
|
|
|
public sealed class SeoPageMetadata
|
|
{
|
|
public required string Title { get; init; }
|
|
public required string Description { get; init; }
|
|
public required string CanonicalUrl { get; init; }
|
|
public string? CrawlableContent { get; init; }
|
|
public bool NoIndex { get; init; }
|
|
}
|