commit 5225d303302a2d57058c4d10e79aa0a998ee518a
parent 075832925cf8cf5743603aef3aed10ba5cce0d0f
Author: Natalie Pendragon <natpen@natpen.net>
Date: Thu, 5 Mar 2020 07:50:57 -0500
[serve] Update aesthetics
Diffstat:
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/gus/serve.py b/gus/serve.py
@@ -16,10 +16,11 @@ app = jetforce.JetforceApplication()
def _render_header():
return [
- "=> / -----------GUS------------",
- "|Gemini Universal Search |",
- "==========================",
- ""
+ "------------GUS------------",
+ "| Gemini Universal Search |",
+ "===========================",
+ "=> / Home",
+ "=> /search Search GUS"
]
@@ -32,9 +33,6 @@ def _render_footer():
def index(request):
data = _render_header()
data.extend([
- "Welcome to GUS, a Gemini search engine!",
- "",
- "=> /search Search GUS",
"=> /about About GUS",
"=> gemini://gemini.circumlunar.space Gemini Project information"
])
@@ -46,6 +44,7 @@ def index(request):
def index(request):
data = _render_header()
data.extend([
+ "",
"GUS has many features to help make a relevant",
"index. It will only index content within Geminispace,",
"and will not index links out to other protocols.",
@@ -88,7 +87,7 @@ def _render_search_suggestions(suggestions):
return data
data.append("Search suggestions:")
for suggestion in suggestions:
- data.append("=> gemini://gus.guru/search?{} GUS: {}".format(suggestion, suggestion))
+ data.append("=> /search?{} GUS: {}".format(suggestion, suggestion))
return data
@@ -104,9 +103,10 @@ def _render_results(results):
def _render_results_header(query, num_results):
return [
- "| You searched for: \"{}\"".format(query),
- "| Number of hits: {}".format(num_results),
- "==========================",
+ "",
+ "| \"{}\" - {} hits".format(query, num_results),
+ # "| {} hits".format(num_results),
+ # "===========================",
""
]
@@ -114,7 +114,7 @@ def _render_results_header(query, num_results):
def _render_results_footer(num_results):
data = [
"",
- "==========================",
+ "===========================",
]
num_pages = math.ceil(num_results / 10)
current_page = 1