Don't send referrer to visited sites (#2)

* Don't send referrer to visited sites

* Remove href from span elements, remove nofollow
This commit is contained in:
jms-c 2024-02-14 18:40:18 +00:00 committed by GitHub
parent a18afc4e84
commit 23787c1b69
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -58,8 +58,8 @@ fn render_engine_list(engines: &[engines::Engine]) -> String {
fn render_search_result(result: &engines::SearchResult) -> String {
format!(
r#"<div class="search-result">
<a class="search-result-anchor" href="{url_attr}">
<span class="search-result-url" href="{url_attr}">{url}</span>
<a class="search-result-anchor" rel="noreferrer" href="{url_attr}">
<span class="search-result-url">{url}</span>
<h3 class="search-result-title">{title}</h3>
</a>
<p class="search-result-description">{desc}</p>
@ -78,8 +78,8 @@ fn render_featured_snippet(featured_snippet: &engines::FeaturedSnippet) -> Strin
format!(
r#"<div class="featured-snippet">
<p class="search-result-description">{desc}</p>
<a class="search-result-anchor" href="{url_attr}">
<span class="search-result-url" href="{url_attr}">{url}</span>
<a class="search-result-anchor" rel="noreferrer" href="{url_attr}">
<span class="search-result-url">{url}</span>
<h3 class="search-result-title">{title}</h3>
</a>
{engines_html}