Skip to content

Commit

Permalink
Fix a kokoism
Browse files Browse the repository at this point in the history
Accidentally tried to use markdown within the landing page... I'm rather smart aren't I
  • Loading branch information
sudokoko committed Mar 28, 2024
1 parent f333101 commit 939e192
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions ProjectLighthouse.Servers.Website/Pages/LandingPage.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,13 @@
<h3>@Model.LatestAnnouncement.Title</h3>
<div style="padding-bottom: 2em;">
<span style="white-space: pre-line">
@(Model.LatestAnnouncement.Content.Length > 250
? Model.LatestAnnouncement.Content[..250] + $"... [read more]({ServerConfiguration.Instance.ExternalUrl}/notifications)"
: Model.LatestAnnouncement.Content)
@{
string truncatedAnnouncement = Model.LatestAnnouncement.Content.Length > 250
? Model.LatestAnnouncement.Content[..250] +
$"... <a href='{ServerConfiguration.Instance.ExternalUrl}/notifications'>read more</a>"
: Model.LatestAnnouncement.Content;
}
@Html.Raw(truncatedAnnouncement)
</span>
</div>
@if (Model.LatestAnnouncement.Publisher != null)
Expand Down

0 comments on commit 939e192

Please sign in to comment.