Skip to content

Commit 8b205d6

Browse files
committed
Fix a kokoism
Accidentally tried to use markdown within the landing page... I'm rather smart aren't I
1 parent f333101 commit 8b205d6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ProjectLighthouse.Servers.Website/Pages/LandingPage.cshtml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,9 @@
6767
<h3>@Model.LatestAnnouncement.Title</h3>
6868
<div style="padding-bottom: 2em;">
6969
<span style="white-space: pre-line">
70-
@(Model.LatestAnnouncement.Content.Length > 250
71-
? Model.LatestAnnouncement.Content[..250] + $"... [read more]({ServerConfiguration.Instance.ExternalUrl}/notifications)"
70+
@Html.Raw(Model.LatestAnnouncement.Content.Length) > 250
71+
? Model.LatestAnnouncement.Content[..250] +
72+
$"... <a href="{ServerConfiguration.Instance.ExternalUrl}/notifications">read more</a>"
7273
: Model.LatestAnnouncement.Content)
7374
</span>
7475
</div>

0 commit comments

Comments
 (0)