Fix a kokoism

Accidentally tried to use markdown within the landing page... I'm rather smart aren't I
This commit is contained in:
sudokoko 2024-03-28 13:54:42 -04:00
commit 939e192732
No known key found for this signature in database
GPG key ID: 248D68C664937395

View file

@ -67,9 +67,13 @@
<h3>@Model.LatestAnnouncement.Title</h3> <h3>@Model.LatestAnnouncement.Title</h3>
<div style="padding-bottom: 2em;"> <div style="padding-bottom: 2em;">
<span style="white-space: pre-line"> <span style="white-space: pre-line">
@(Model.LatestAnnouncement.Content.Length > 250 @{
? Model.LatestAnnouncement.Content[..250] + $"... [read more]({ServerConfiguration.Instance.ExternalUrl}/notifications)" string truncatedAnnouncement = Model.LatestAnnouncement.Content.Length > 250
: Model.LatestAnnouncement.Content) ? Model.LatestAnnouncement.Content[..250] +
$"... <a href='{ServerConfiguration.Instance.ExternalUrl}/notifications'>read more</a>"
: Model.LatestAnnouncement.Content;
}
@Html.Raw(truncatedAnnouncement)
</span> </span>
</div> </div>
@if (Model.LatestAnnouncement.Publisher != null) @if (Model.LatestAnnouncement.Publisher != null)