mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-04 19:08:42 +00:00
Fix a kokoism
Accidentally tried to use markdown within the landing page... I'm rather smart aren't I
This commit is contained in:
parent
f3331011fb
commit
939e192732
1 changed files with 7 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue