<PageTitle>@Title - pancakes</PageTitle>
<HeadContent>
    <meta name="description" content="@Description"/>
    <meta property="og:url" content="https://pancakes.gay/@UrlPath">
    <meta property="og:site_name" content="pancakes">
    <meta property="og:title" content="@Title">
    <meta property="og:description" content="@Description">
    <meta property="og:image" content="@(Assets[ImagePath ?? "icon.webp"])">
    @if (ImageAlt != null)
    {
        <meta property="og:image:alt" content="@ImageAlt">
    }
    @if (LargeImage)
    {
        <meta property="og:type" content="article">
        <meta property="twitter:card" content="summary_large_image">
    }
    else
    {
        <meta property="og:type" content="website">
    }
    <meta name="fediverse:creator" content="@@pancakes@meow.company">
</HeadContent>

@code {
    [Parameter, EditorRequired] public required string UrlPath { get; set; }
    [Parameter, EditorRequired] public required string Title { get; set; }
    [Parameter] public string? Description { get; set; }
    [Parameter] public string? ImagePath { get; set; }
    [Parameter] public string? ImageAlt { get; set; }
    [Parameter] public bool LargeImage { get; set; }
}