geminispace.info

Unnamed repository; edit this file 'description' to name the repository.
git clone git://code.clttr.info/geminispace.info.git
Log | Files | Refs | README | LICENSE

commit 3d1eb23a10487cbaf838f37c32ac9f83a6113ae2
parent b6ffd1fc684e26be9037d2959682590bb959ee20
Author: Natalie Pendragon <natpen@natpen.net>
Date:   Tue, 30 Jun 2020 08:24:56 -0400

[serve] Update header levels

Diffstat:
Mserve/templates/about.gmi | 8++++----
Mserve/templates/known_hosts.gmi | 2+-
Mserve/templates/news.gmi | 26++++++++++++++------------
Mserve/templates/search_suggestions.gmi | 2+-
Mserve/templates/statistics.gmi | 8++++----
Mserve/views.py | 3++-
6 files changed, 26 insertions(+), 23 deletions(-)

diff --git a/serve/templates/about.gmi b/serve/templates/about.gmi @@ -1,7 +1,7 @@ {% include 'fragments/header.gmi' %} -# About GUS +## About GUS GUS is a search engine for all content served over the Gemini Protocol. It can help you track down textual pages (e.g., `text/gemini`, `text/plain`, `text/markdown`) with content containing your search terms, but it can just as easily help you track down binary files (e.g., images, mp3s) which happen to be served over the Gemini protocol. GUS will only index content within Geminispace, and will not index links out to other protocols, like Http or Gopher. @@ -11,9 +11,9 @@ GUS obeys User-agent of "gus" and "*". If you have questions about or ideas for GUS, please email me at natpen@natpen.net. -# Advanced Searching +## Advanced Searching -## Filters +### Filters To improve the quality of your search results, you can apply filters to constrain your search results in various dimensions. The currently implemented filters are: * content_type @@ -43,7 +43,7 @@ For further inspiration on how to use these filters, you can visit both GUS' lis => /known-hosts GUS Known Hosts (with list of domains) => /statistics GUS statistics (with list of content_types) -## Verbose Mode +### Verbose Mode To allow greater insight into both how pages are ranking against each other, as well as when GUS crawled their content, you can enable verbose mode on any search results page. This will show the numerical score of each search result for the given query, as well as the exact time that page was crawled. diff --git a/serve/templates/known_hosts.gmi b/serve/templates/known_hosts.gmi @@ -1,7 +1,7 @@ {% include 'fragments/header.gmi' %} -# Known Gemini Hosts +## Known Gemini Hosts Below are the hosts, or servers, in Geminispace, of which GUS is aware. Note that this list is auto-generated from the index, so if your host is not showing up here, it also won't have its content represented in GUS search results! If your server is missing, try the link at the bottom of this page to request an immediate crawl of a Gemini URL, after which your server should start showing up. diff --git a/serve/templates/news.gmi b/serve/templates/news.gmi @@ -1,40 +1,42 @@ {% include 'fragments/header.gmi' %} -## 2020-06-12 +## News + +### 2020-06-12 Added size of pages to each result, so users can see how much network bandwidth would be involved in following each link. Size is also provided as a valid query search filter now. Documentation for filtering by size can be found on the advanced searching section of the about page! -## 2020-06-03 +### 2020-06-03 Added ability to search and filter by charset. Documentation for this feature can be found on the advanced searching section of the about page! -## 2020-05-21 +### 2020-05-21 Added ability to search and filter by domain. Documentation for this feature can be found on the advanced searching section of the about page! -## 2020-05-21 +### 2020-05-21 Added contextual highlights from result pages' content directly to GUS search results pages. This should give a nice preview of what to expect if you click through to the result! -## 2020-05-19 +### 2020-05-19 Added instantaneous indexing of seed requests! Submit a seed request and your site should begin showing up in closer to a few minutes than a few days, as it tended to before. -## 2020-05-16 +### 2020-05-16 Added verbose search result mode. This is meant as an aid to content creators in figuring out exactly when GUS crawled specific pages, and how those pages' content scores against other results in Geminispace. Documentation for this feature is available under the advanced searching section of the about page. -## 2020-05-14 +### 2020-05-14 Added paging functionality, which will now show up at the bottom of search result pages that have more than one page of results. -## 2020-05-12 +### 2020-05-12 Added Known Hosts and News, both of which you can find on the GUS homepage. -## 2020-05-11 +### 2020-05-11 Added Index Statistics feature, which you can find on the GUS homepage. -## 2020-05-09 +### 2020-05-09 Added ability to search and filter by content type. Documentation for this feature can be found on the about page! I'm really excited about this update, because it will allow users to do things like search for all the music in Geminispace, or search for all the downloadable epub content. Unsurprisingly, most of the current content is either `text/gemini` or `text/plain`, but there is still a smattering of other interesting content types already in existence in Geminispace. -## 2020-03-04 +### 2020-03-04 Added search suggestions. When a search returns with no results, GUS will now attempt to find some lexicographically similar search suggestions that would yield results. Hopefully this will help ameliorate both typos in queries, as well as the slight paucity of content in these early days of Gemini. -## 2020-02-21 +### 2020-02-21 Updated GUS indexing to respect robots.txt. Documentation for this feature can be found on the about page.p {% include 'fragments/footer.gmi' %} diff --git a/serve/templates/search_suggestions.gmi b/serve/templates/search_suggestions.gmi @@ -1,7 +1,7 @@ {% include 'fragments/header.gmi' %} -# Search GUS +## Search No results for "{{ query }}" diff --git a/serve/templates/statistics.gmi b/serve/templates/statistics.gmi @@ -1,9 +1,9 @@ {% include 'fragments/header.gmi' %} -# GUS Statistics +## Statistics -## Overall +### Overall These figures are representative of the aggregate size of Geminispace at the time the current index was last updated on {{ index_modification_time }}. @@ -12,7 +12,7 @@ Page Count : {{ "{:>5}".format(statistics.page_count) }} Domain Count : {{ "{:>5}".format(statistics.domain_count) }} ``` -## By Content Type +### By Content Type These figures are representative of the number of pages seen per content type at the time the current index was last updated on {{ index_modification_time }}. @@ -22,7 +22,7 @@ These figures are representative of the number of pages seen per content type at {% endfor %} ``` -## By Charset +### By Charset These figures are representative of the number of pages seen per content type at the time the current index was last updated on {{ index_modification_time }}. diff --git a/serve/views.py b/serve/views.py @@ -79,7 +79,8 @@ def index(request): return Response(Status.SUCCESS, "text/gemini", body) -@app.route("(/v)?/search(/\d+)?") +@app.route("/v/search(/\d+)?") +@app.route("/search(/\d+)?") def search(request): if request.query: verbose = compute_verbose(request.path)