Link Atom and JSON feeds as alternates on home page
This commit is contained in:
parent
77f3972292
commit
df062fb86e
3 changed files with 33 additions and 26 deletions
|
@ -3,8 +3,10 @@
|
||||||
|
|
||||||
@if (Post != null)
|
@if (Post != null)
|
||||||
{
|
{
|
||||||
|
<HeadContent>
|
||||||
<OpenGraph UrlPath="@Post.Slug" Title="@Post.Title" Description="@Post.Description"
|
<OpenGraph UrlPath="@Post.Slug" Title="@Post.Title" Description="@Post.Description"
|
||||||
ImagePath="@($"post-assets/{Post.Slug}/{Post.HeaderFilename}")" ImageAlt="@Post.HeaderAlt" LargeImage="true"/>
|
ImagePath="@($"post-assets/{Post.Slug}/{Post.HeaderFilename}")" ImageAlt="@Post.HeaderAlt" LargeImage="true"/>
|
||||||
|
</HeadContent>
|
||||||
|
|
||||||
<SectionContent SectionName="Header">
|
<SectionContent SectionName="Header">
|
||||||
@if (Post.HeaderFilename != null)
|
@if (Post.HeaderFilename != null)
|
||||||
|
|
|
@ -4,8 +4,14 @@
|
||||||
@using PancakesWeb.Data
|
@using PancakesWeb.Data
|
||||||
@using PancakesWeb.Schema
|
@using PancakesWeb.Schema
|
||||||
|
|
||||||
|
<HeadContent>
|
||||||
|
@* Feeds *@
|
||||||
|
<link rel="alternate" type="application/atom+xml" href="/feed.atom"/>
|
||||||
|
<link rel="alternate" type="application/feed+json" href="/feed.json"/>
|
||||||
|
|
||||||
<OpenGraph UrlPath="" Title="Home"
|
<OpenGraph UrlPath="" Title="Home"
|
||||||
Description="I'm a cat enby (they/it) from Australia that likes cats, Linux, and programming"/>
|
Description="I'm a cat enby (they/it) from Australia that likes cats, Linux, and programming"/>
|
||||||
|
</HeadContent>
|
||||||
|
|
||||||
<main id="main-content" class="container">
|
<main id="main-content" class="container">
|
||||||
<h1 id="pancakes">pancakes</h1>
|
<h1 id="pancakes">pancakes</h1>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<PageTitle>@Title - pancakes</PageTitle>
|
<PageTitle>@Title - pancakes</PageTitle>
|
||||||
<HeadContent>
|
|
||||||
<meta name="description" content="@Description"/>
|
<meta name="description" content="@Description"/>
|
||||||
<meta property="og:url" content="https://pancakes.gay/@UrlPath">
|
<meta property="og:url" content="https://pancakes.gay/@UrlPath">
|
||||||
<meta property="og:site_name" content="pancakes">
|
<meta property="og:site_name" content="pancakes">
|
||||||
|
@ -20,7 +20,6 @@
|
||||||
<meta property="og:type" content="website">
|
<meta property="og:type" content="website">
|
||||||
}
|
}
|
||||||
<meta name="fediverse:creator" content="@@pancakes@meow.company">
|
<meta name="fediverse:creator" content="@@pancakes@meow.company">
|
||||||
</HeadContent>
|
|
||||||
|
|
||||||
@code {
|
@code {
|
||||||
[Parameter, EditorRequired] public required string UrlPath { get; set; }
|
[Parameter, EditorRequired] public required string UrlPath { get; set; }
|
||||||
|
|
Loading…
Add table
Reference in a new issue