mirror of
https://github.com/aljazceru/njump.git
synced 2025-12-17 06:14:22 +01:00
Allows the source to be highlighted when coming from a highlighted
This commit is contained in:
@@ -37,7 +37,7 @@ templ highlightInnerBlock(params HighlightPageParams) {
|
||||
}
|
||||
<cite class="ml-2">
|
||||
if params.HighlightEvent.SourceURL != "" {
|
||||
<a href={ templ.SafeURL(params.HighlightEvent.SourceURL) }>{ params.HighlightEvent.SourceName }</a>
|
||||
<a href={ templ.SafeURL(params.HighlightEvent.SourceURL + "#:~:text=" + string(params.Content)) }>{ params.HighlightEvent.SourceName }</a>
|
||||
}
|
||||
if params.HighlightEvent.SourceEvent != "" {
|
||||
<a href={ templ.SafeURL("/" + params.HighlightEvent.SourceEvent) }>{ params.HighlightEvent.SourceName }</a>
|
||||
|
||||
Reference in New Issue
Block a user