♻️ I have no idea what am I doing. Might be mixing stuff
This commit is contained in:
@@ -7,14 +7,14 @@
|
||||
}
|
||||
|
||||
@section Head {
|
||||
<meta property="og:title" content="@Model.Post?.Title" />
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:title" content="@Model.Post?.Title"/>
|
||||
<meta property="og:type" content="article"/>
|
||||
@if (imageUrl != null)
|
||||
{
|
||||
<meta property="og:image" content="/api/files/@imageUrl" />
|
||||
<meta property="og:image" content="/api/files/@imageUrl"/>
|
||||
}
|
||||
<meta property="og:url" content="@Request.Scheme://@Request.Host@Request.Path" />
|
||||
<meta property="og:description" content="@Model.Post?.Description" />
|
||||
<meta property="og:url" content="@Request.Scheme://@Request.Host@Request.Path"/>
|
||||
<meta property="og:description" content="@Model.Post?.Description"/>
|
||||
}
|
||||
|
||||
<div class="container mx-auto p-4">
|
||||
@@ -23,10 +23,7 @@
|
||||
<h1 class="text-3xl font-bold mb-4">@Model.Post.Title</h1>
|
||||
<p class="text-gray-600 mb-2">
|
||||
Created at: @Model.Post.CreatedAt
|
||||
@if (Model.Post.Publisher?.Account != null)
|
||||
{
|
||||
<span>by <a href="#" class="text-blue-500">@@@Model.Post.Publisher.Name</a></span>
|
||||
}
|
||||
<span>by <a href="#" class="text-blue-500">@@@Model.Post.Publisher.Name</a></span>
|
||||
</p>
|
||||
<div class="prose lg:prose-xl mb-4">
|
||||
@Html.Raw(Markdown.ToHtml(Model.Post.Content ?? string.Empty))
|
||||
@@ -41,7 +38,8 @@
|
||||
<div class="border p-2 rounded-md">
|
||||
@if (attachment.MimeType != null && attachment.MimeType.StartsWith("image/"))
|
||||
{
|
||||
<img src="/api/files/@attachment.Id" alt="@attachment.Name" class="w-full h-auto object-cover mb-2" />
|
||||
<img src="/api/files/@attachment.Id" alt="@attachment.Name"
|
||||
class="w-full h-auto object-cover mb-2"/>
|
||||
}
|
||||
else if (attachment.MimeType != null && attachment.MimeType.StartsWith("video/"))
|
||||
{
|
||||
|
Reference in New Issue
Block a user