Back to Searxng

Macros

searx/templates/simple/macros.html

latest1.2 KB
Original Source

{{- result_open_link(result.url, "url_header") -}} {%- if favicon_resolver != "" %}

{%- endif -%} {%- for part in get_pretty_url(result.parsed_url) -%} {{- part -}} {%- endfor %} {{- result_close_link() -}} {%- if result.thumbnail %}{{ result_open_link(result.url, classes='thumbnail_link') }}{%- if result.length -%}{{ result.length }}{%- endif -%}{{ result_close_link() }}{% endif -%}

{%- endmacro -%}{%- macro result_sub_header(result) -%} {%- if result.publishedDate %}{{ result.publishedDate }}{% endif -%} {%- if result.length and not result.thumbnail %} {{ _('Length') }}: {{ result.length }} {% endif -%} {%- if result.views %} {{ _('Views') }}: {{ result.views }} {% endif -%} {%- if result.author %} {{ _('Author') }}: {{ result.author }} {% endif -%} {%- if result.metadata %} {{ result.metadata }} {% endif -%} {%- endmacro -%}{%- macro result_sub_footer(result) -%} {% for engine in result.engines %}{{ engine }}{% endfor %} {{ icon_small('ellipsis-vertical') + result_link(cache_url + result.url, _('cached'), "cache_link") }} {{- '' -}}

{{- '' -}} {%- endmacro -%}{%- macro result_footer(result) -%}