namespace Elternbeirat.Web.Services;
///
/// A static content page, read from a Markdown file in Content/pages/.
/// The file name (without extension) is the slug.
///
public sealed class Page
{
///
/// URL identifier of the page, taken from the file name without umlauts
/// (e.g. vorstandsteam). It appears in the route /{slug}.
///
public required string Slug { get; init; }
///
/// Display title from the YAML front matter (titel:). Falls back to
/// the slug when no title is set.
///
public required string Title { get; init; }
///
/// The page body rendered from Markdown to HTML (front matter excluded).
///
public required string ContentHtml { get; init; }
}