mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
[experimental] use replace in article url
This commit is contained in:
parent
1d7e6c1591
commit
08d77a06c2
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@
|
|||
{% macro result_header(result, favicons, image_proxify) -%}
|
||||
<article class="result {% if result['template'] %}result-{{ result.template|replace('.html', '') }}{% else %}result-default{% endif %} {% if result['category'] %}category-{{ result['category'] }}{% endif %}{% for e in result.engines %} {{ e }}{% endfor %}">
|
||||
<p class="url">
|
||||
{{ result_open_link(result.url, 'url') }}<img class="url_favicon" src="{{ image_proxify(result_favicon_url(result.parsed_url.scheme, result.parsed_url.netloc)) }}" alt="" />{{ result.pretty_url }}{{ result_close_link() }}
|
||||
{{ result_open_link(result.url, 'url') }}<img class="url_favicon" src="{{ image_proxify(result_favicon_url(result.parsed_url.scheme, result.parsed_url.netloc)) }}" alt="" />{{ result.pretty_url.replace("//", ">>>")|replace("/", " > ")|replace(">>>", "//") }}{{ result_close_link() }}
|
||||
</p>
|
||||
{%- if result.img_src %}{{ result_open_link(result.url) }}<img class="image" src="{{ image_proxify(result.img_src) }}" alt="{{ result.title|striptags }}" title="{{ result.title|striptags }}" />{{ result_close_link() }}{% endif -%}
|
||||
{%- if result.thumbnail %}{{ result_open_link(result.url) }}<img class="thumbnail" src="{{ image_proxify(result.thumbnail) }}" title="{{ result.title|striptags }}" alt="{{ result.title|striptags }}"/>{{ result_close_link() }}{% endif -%}
|
||||
|
|
Loading…
Add table
Reference in a new issue