mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-15 00:12:50 +08:00

* Adding social card infrastructure * Upgrades doc project to .NET 6 * Adds Playwright * Changes the console to a web project for Playwright * Adds social card template * Added blog content * Parallelized social image processing * Updating CI to use .NET 6 for docs build
35 lines
769 B
Plaintext
35 lines
769 B
Plaintext
@{
|
|
Layout = @"../../_layout.cshtml";
|
|
}
|
|
@inherits StatiqRazorPage<IDocument>
|
|
|
|
@{
|
|
var author = Model.GetString("Author");
|
|
var published = Model.GetDateTime("Published");
|
|
var category = Model.GetString("Category");
|
|
}
|
|
|
|
@section subheading{
|
|
<div class="mt-2 font-light text-xs md:text-sm">
|
|
<span>Posted </span>
|
|
@if (published != default(DateTime)) {
|
|
<span>@published.ToLongDateString() </span>
|
|
}
|
|
@if (author != null) {
|
|
<span>by @author </span>
|
|
}
|
|
@if (category != null) {
|
|
<span>
|
|
to <a class="text-blue-800 underline" href="@Context.GetLink($"blog/{NormalizedPath.OptimizeFileName(@category)}/index.html")">
|
|
@category
|
|
</a>
|
|
</span>
|
|
}
|
|
|
|
</div>
|
|
}
|
|
|
|
|
|
|
|
@RenderBody()
|