geminispace.info

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

pager.gmi (628B)


      1 {% set search_path = "/v/search" if verbose else "/search" %}
      2 Page {{current_page}} of {{num_pages}} ({{num_results}} results)
      3 {% if current_page > 2 %}
      4 => {{ search_path }}?{{ quoted_query }} First Page
      5 {% endif %}
      6 {% if current_page > 2 %}
      7 => {{ search_path }}/{{ current_page - 1 }}?{{ quoted_query }} Previous Page
      8 {% elif current_page == 2 %}
      9 => {{ search_path }}?{{ quoted_query }} Previous Page
     10 {% endif %}
     11 {% if current_page < num_pages %}
     12 => {{ search_path }}/{{ current_page + 1}}?{{ quoted_query }} Next Page
     13 {% endif %}
     14 {% if num_pages > 1 %}
     15 => {{ search_path }}/jump/{{ quoted_query }} Jump to page...
     16 {% endif %}