diff --git a/PancakesWeb/Components/App.razor b/PancakesWeb/Components/App.razor index 42d2ccb..9815627 100644 --- a/PancakesWeb/Components/App.razor +++ b/PancakesWeb/Components/App.razor @@ -5,6 +5,7 @@ + @* Icons *@ diff --git a/PancakesWeb/Components/Pages/BlogPost.razor b/PancakesWeb/Components/Pages/BlogPost.razor index dbb9e11..7670c7e 100644 --- a/PancakesWeb/Components/Pages/BlogPost.razor +++ b/PancakesWeb/Components/Pages/BlogPost.razor @@ -3,11 +3,15 @@ @if (Post != null) { + + @if (Post.HeaderFilename != null) {
- @Post.HeaderAlt + @Post.HeaderAlt @if (Post.HeaderCaption != null) {
@Post.HeaderCaption
@@ -21,14 +25,18 @@ { var edited = Post.Edited ?? DateTime.Now; // this null check should never happen - Posted: + Posted: + • - Latest edit: + Latest edit: + } else { - Posted: + Posted: + + }
@@ -36,6 +44,8 @@ } else { + Not found +

Not found

Page not found

@@ -86,4 +96,5 @@ else Post = BlogPosts.Posts.FirstOrDefault(p => p.Slug == Slug); } + } \ No newline at end of file diff --git a/PancakesWeb/Components/Pages/Home.razor b/PancakesWeb/Components/Pages/Home.razor index a4487eb..a28181f 100644 --- a/PancakesWeb/Components/Pages/Home.razor +++ b/PancakesWeb/Components/Pages/Home.razor @@ -4,7 +4,8 @@ @using PancakesWeb.Data @using PancakesWeb.Schema -Home +

pancakes

diff --git a/PancakesWeb/Components/UI/OpenGraph.razor b/PancakesWeb/Components/UI/OpenGraph.razor new file mode 100644 index 0000000..00ce72f --- /dev/null +++ b/PancakesWeb/Components/UI/OpenGraph.razor @@ -0,0 +1,32 @@ +@Title - pancakes + + + + + + + + @if (ImageAlt != null) + { + + } + @if (LargeImage) + { + + + } + else + { + + } + + + +@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; } +} \ No newline at end of file