Add some 'About' info
parent
545e5dd11f
commit
9dc49f12bd
|
@ -12,6 +12,7 @@ pub struct SearchTemplate {
|
|||
pub search_term: String,
|
||||
pub results: Vec<SearchResult>,
|
||||
pub contact: Vec<(String, String)>,
|
||||
pub show_spiel: bool,
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
|
@ -34,6 +35,7 @@ pub async fn search_root(Extension(web_config): Extension<WebConfig>) -> impl In
|
|||
search_term: String::with_capacity(0),
|
||||
results: vec![],
|
||||
contact: web_config.web.contact.clone(),
|
||||
show_spiel: true,
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -76,5 +78,6 @@ pub async fn search_search_inner(
|
|||
search_term: params.q.clone(),
|
||||
results,
|
||||
contact: web_config.web.contact.clone(),
|
||||
show_spiel: false,
|
||||
}))
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<header>
|
||||
<form method="GET" action="search">
|
||||
<fieldset class="horizontal">
|
||||
<img src="/static/quickpeep_logo_sml.png" class="bar_logo">
|
||||
<a href="/" title="QuickPeep"><img src="/static/quickpeep_logo_sml.png" alt="QuickPeep Logo" class="bar_logo"></a>
|
||||
<input type="search" id="search" name="q" placeholder="..." value="{{ search_term }}" class="grow">
|
||||
|
||||
<input type="submit" value="Search" class="shrink">
|
||||
|
@ -23,6 +23,21 @@
|
|||
|
||||
<!-- Main -->
|
||||
<main class="search">
|
||||
{% if show_spiel %}
|
||||
<p>
|
||||
QuickPeep is a hobbyist, open-source and very immature (for now) web search engine. It's intended to help you encounter webpages that are interesting and from a real person, rather than from a 'content mill' or other source of SEO spam. In general, websites that don't respect the reader are unwelcome.
|
||||
</p>
|
||||
<p>
|
||||
QuickPeep's approach to rubbish websites is to 'just' not index them! This also helps with another goal of the project, which is to allow anyone to run an instance of QuickPeep with only modest hardware requirements (especially storage space which could easily be problematic).
|
||||
</p>
|
||||
<p>
|
||||
This is an ambitious project and it is probably not very usable right now. It may never be. With that said, I'm hoping to see how far I can take it.
|
||||
</p>
|
||||
<p>
|
||||
The source code is <a href="https://bics.ga/reivilibre/quickpeep.git">available on Gitea & Biscuits</a>.
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
<ul class="search_results">
|
||||
{%- for result in results %}
|
||||
<li>
|
||||
|
|
Loading…
Reference in New Issue