geminispace.info

gemini search engine
git clone https://git.clttr.info/geminispace.info.git
Log (Feed) | Files | Refs (Tags) | README | LICENSE

search.gmi (1024B)


      1 {% include 'fragments/header.gmi' %}
      2 
      3 
      4 {% if verbose %}
      5 ## Search [verbose]
      6 => /search/{{ current_page }}?{{ quoted_query }} Exit verbose mode
      7 {% else %}
      8 ## Search
      9 => /v/search/{{ current_page }}?{{ quoted_query }} Enter verbose mode
     10 {% endif %}
     11 
     12 "{{ query }}"
     13 
     14 {% for result in results %}
     15 => {{ result["url"] }} {{ result["link_text"] }}
     16 {% if result["backlink_count"] > 1 %}
     17 => /backlinks?{{ result["url"][9:] | urlencode }} {{ result["backlink_count"] }} cross-capsule backlinks
     18 {% elif result["backlink_count"] > 0 %}
     19 => /backlinks?{{ result["url"][9:] | urlencode }} {{ result["backlink_count"] }} cross-capsule backlink
     20 {% endif %}
     21 {% if verbose %}
     22 * Score      : {{ "{:.2f}".format(result["score"]) }}
     23 * Indexed at : {{ "{:%Y-%m-%d %H:%M}".format(result["indexed_at"]) }}
     24 * Charset    : {{ result["charset"] }}
     25 {% endif %}
     26 {% if result["highlights"] | length > 0 %}
     27 {{ result["highlights"] }}
     28 {% endif %}
     29 
     30 {% else %}
     31 No results!
     32 
     33 {% endfor %}
     34 {% include 'fragments/pager.gmi' %}
     35 
     36 {% include 'fragments/footer.gmi' %}