feat: added anker tags for posts and comments
Signed-off-by: limited_dev <loginakkisativ@gmail.com>
This commit is contained in:
parent
7f5a282058
commit
304c24f755
2 changed files with 35 additions and 5 deletions
|
@ -71,9 +71,15 @@
|
|||
}
|
||||
else
|
||||
{
|
||||
<span class="threadMsg">
|
||||
@line
|
||||
</span>
|
||||
@if (line.StartsWith("https://") || line.StartsWith("http://"))
|
||||
{
|
||||
<a href="@line" target="_blank">@line</a>
|
||||
}
|
||||
else
|
||||
{
|
||||
<span class="threadMsg">@line</span>
|
||||
}
|
||||
<span > </span>
|
||||
}
|
||||
<span> </span>
|
||||
}
|
||||
|
|
|
@ -57,7 +57,19 @@
|
|||
{
|
||||
className = "greenText";
|
||||
}
|
||||
<span class='threadText @className'>@s </span>
|
||||
@foreach (string s2 in s.Split(" "))
|
||||
{
|
||||
@if (s2.StartsWith("https://") || s.StartsWith("http://"))
|
||||
{
|
||||
<a href="@s2" target="_blank">@s2</a>
|
||||
}
|
||||
else
|
||||
{
|
||||
<span class="@className">@s2</span>
|
||||
}
|
||||
<span class="@className"> </span>
|
||||
}
|
||||
<br/>
|
||||
}
|
||||
@if (post.Content.Split("\n").Length > 6)
|
||||
{
|
||||
|
@ -74,7 +86,19 @@
|
|||
{
|
||||
className = "greenText";
|
||||
}
|
||||
<span class='threadText @className'>@s </span>
|
||||
@foreach (string s2 in s.Split(" "))
|
||||
{
|
||||
@if (s2.StartsWith("https://") || s2.StartsWith("http://"))
|
||||
{
|
||||
<a href="@s2" target="_blank">@s2</a>
|
||||
}
|
||||
else
|
||||
{
|
||||
<span class="@className">@s2</span>
|
||||
}
|
||||
<span class="@className"> </span>
|
||||
}
|
||||
<br/>
|
||||
}
|
||||
}
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue