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 8b205d6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ProjectLighthouse.Servers.Website/Pages/LandingPage.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@
<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)"
@Html.Raw(Model.LatestAnnouncement.Content.Length) > 250
? Model.LatestAnnouncement.Content[..250] +
$"... <a href="{ServerConfiguration.Instance.ExternalUrl}/notifications">read more</a>"
: Model.LatestAnnouncement.Content)
</span>
</div>
Expand Down

0 comments on commit 8b205d6

Please sign in to comment.