minimal wiby/little isle-like searx theme
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.2 KiB

<!-- Draw glyphicon icon from bootstrap-theme -->
{% macro icon(action, alt) -%}
<span title="{{ alt }}"></span>
{%- endmacro %}
<!-- Draw favicon -->
{% macro draw_favicon(favicon) -%}
<img width="32" height="32" class="favicon" src="{{ url_for('static', filename='themes/sost/img/icons/' + favicon + '.png') }}" alt="{{ favicon }}" />
{%- endmacro %}
{%- macro result_link(url, title) -%}
<a href="{{ url }}">{{ title }}</a>
{%- endmacro -%}
<!-- Draw result header -->
{% macro result_header(result) -%}
<h3>{% if result.url %}{{ result_link(result.url, result.title|safe) }}{% else %}{{ result.title|safe}}{% endif %}</h3>
<p>{{ result.url }}
<span>{{ result_link("https://web.archive.org/web/" + result.url, icon('link') + 'cached') }}</span>
<span>{{ result_link("https://haku.ahmia.fi/morty/post?mortyurl=" + result.url, icon('link') + 'proxy') }}</span>
(
{%- for engine in result.engines -%}
<span> {{ engine }}</span>
{%- endfor -%}
<span> )</span>
</p>
{%- endmacro %}
<!-- Draw result sub header -->
{% macro result_sub_header(result, id) -%}
{%- if result.publishedDate %}<time class="text-muted" datetime="{{ result.pubdate }}" >{{ result.publishedDate }}</time>{% endif -%}
{%- endmacro %}