refactor: remove april fool's nonsense
This commit is contained in:
parent
a1dd6ef6ff
commit
1919b1d5c8
|
@ -8,22 +8,9 @@
|
||||||
@{
|
@{
|
||||||
ViewData["Title"] = "Blog";
|
ViewData["Title"] = "Blog";
|
||||||
MastodonStatus latestStatus = MastodonService.GetLatestStatus();
|
MastodonStatus latestStatus = MastodonService.GetLatestStatus();
|
||||||
bool doAprilFools = DateOnly.FromDateTime(DateTime.UtcNow) == new DateOnly(2024, 04, 01) || Environment.GetEnvironmentVariable("DO_AF") == "1";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@if (doAprilFools)
|
<div class="card text-center mastodon-update-card">
|
||||||
{
|
|
||||||
<h1>UNDER CONSTRUCTION</h1>
|
|
||||||
<div style="text-align: center">
|
|
||||||
<img src="~/img/construction_90x85.gif">
|
|
||||||
<img src="~/img/underconstruction_323x118.gif">
|
|
||||||
<img src="~/img/construction_90x85.gif">
|
|
||||||
<p>Coming soon WATCH THIS SPACE</p>
|
|
||||||
</div>
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
<div class="card text-center mastodon-update-card">
|
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
@Html.Raw(latestStatus.Content)
|
@Html.Raw(latestStatus.Content)
|
||||||
@foreach (MediaAttachment attachment in latestStatus.MediaAttachments)
|
@foreach (MediaAttachment attachment in latestStatus.MediaAttachments)
|
||||||
|
@ -50,13 +37,13 @@ else
|
||||||
•
|
•
|
||||||
<a href="@latestStatus.OriginalUri" target="_blank">View on Mastodon</a>
|
<a href="@latestStatus.OriginalUri" target="_blank">View on Mastodon</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="all-blog-posts">
|
<div id="all-blog-posts">
|
||||||
@await Html.PartialAsync("_LoadingSpinner")
|
@await Html.PartialAsync("_LoadingSpinner")
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script id="blog-post-template" type="text/x-handlebars-template">
|
<script id="blog-post-template" type="text/x-handlebars-template">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<span class="text-muted">
|
<span class="text-muted">
|
||||||
<img class="blog-author-icon" src="{{author.avatar}}" alt="{{author.name}}">
|
<img class="blog-author-icon" src="{{author.avatar}}" alt="{{author.name}}">
|
||||||
|
@ -91,5 +78,4 @@ else
|
||||||
<a href="?tag={{urlEncode this}}" class="badge text-bg-dark">{{this}}</a>
|
<a href="?tag={{urlEncode this}}" class="badge text-bg-dark">{{this}}</a>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</div>
|
</div>
|
||||||
</script>
|
</script>
|
||||||
}
|
|
|
@ -7,7 +7,6 @@
|
||||||
@{
|
@{
|
||||||
HttpRequest request = Context.Request;
|
HttpRequest request = Context.Request;
|
||||||
var url = new Uri($"{request.Scheme}://{request.Host}{request.Path}{request.QueryString}");
|
var url = new Uri($"{request.Scheme}://{request.Host}{request.Path}{request.QueryString}");
|
||||||
bool doAprilFools = DateOnly.FromDateTime(DateTime.UtcNow) == new DateOnly(2024, 04, 01) || Environment.GetEnvironmentVariable("DO_AF") == "1";
|
|
||||||
}
|
}
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en" data-bs-theme="dark">
|
<html lang="en" data-bs-theme="dark">
|
||||||
|
@ -61,28 +60,12 @@
|
||||||
<link rel="stylesheet" href="~/css/prism.vs.min.css" asp-append-version="true">
|
<link rel="stylesheet" href="~/css/prism.vs.min.css" asp-append-version="true">
|
||||||
<link rel="stylesheet" href="~/css/app.min.css" asp-append-version="true">
|
<link rel="stylesheet" href="~/css/app.min.css" asp-append-version="true">
|
||||||
<link rel="stylesheet" href="~/css/ribbon.min.css" asp-append-version="true">
|
<link rel="stylesheet" href="~/css/ribbon.min.css" asp-append-version="true">
|
||||||
@if (doAprilFools)
|
|
||||||
{
|
|
||||||
<link rel="stylesheet" href="~/css/af-app.min.css" asp-append-version="true">
|
|
||||||
}
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<header class="container" style="margin-top: 20px;">
|
<header class="container" style="margin-top: 20px;">
|
||||||
<div id="site-title" class="text-center">
|
<div id="site-title" class="text-center">
|
||||||
<h1>
|
<h1>
|
||||||
@if (doAprilFools)
|
|
||||||
{
|
|
||||||
<marquee>
|
|
||||||
<a href="/">
|
|
||||||
<img src="~/img/ob-af-256x256.png" alt="Oliver Booth" height="128">
|
|
||||||
<img src="~/img/af-oliverbooth-1236x293.png" alt="Oliver Booth" height="128">
|
|
||||||
</a>
|
|
||||||
</marquee>
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
<a href="/"><img src="~/img/ob-256x256.png" alt="Oliver Booth" height="128"> Oliver Booth</a>
|
<a href="/"><img src="~/img/ob-256x256.png" alt="Oliver Booth" height="128"> Oliver Booth</a>
|
||||||
}
|
|
||||||
</h1>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
@ -112,13 +95,6 @@
|
||||||
<div style="margin:50px 0;"></div>
|
<div style="margin:50px 0;"></div>
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
@if (doAprilFools)
|
|
||||||
{
|
|
||||||
<h1 style="text-decoration: underline; color: #0f0 !important; margin: 20px 0;">
|
|
||||||
<img src="~/img/af-homepage_500x383.jpg" alt="WELCOME TO MY HOMEPAGE!!!!111SHIFT+1">
|
|
||||||
</h1>
|
|
||||||
}
|
|
||||||
|
|
||||||
<main role="main" class="pb-3">
|
<main role="main" class="pb-3">
|
||||||
@RenderBody()
|
@RenderBody()
|
||||||
</main>
|
</main>
|
||||||
|
@ -136,7 +112,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<ul class="footer-nav" style="margin-top: 20px;">
|
<ul class="footer-nav" style="margin-top: 20px;">
|
||||||
<li>@(doAprilFools ? "(C) 2003" : Html.Raw($"© {DateTime.UtcNow.Year}"))</li>
|
<li>© @DateTime.UtcNow.Year</li>
|
||||||
<li><a asp-page="/privacy/index">Privacy</a></li>
|
<li><a asp-page="/privacy/index">Privacy</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue