mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-05 03:18:45 +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>
|
<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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue