forked from zaclys/searxng
[enh] add simple theme (WIP)
This commit is contained in:
parent
4f6586d808
commit
10a24bdc2c
85 changed files with 11902 additions and 6 deletions
13
searx/templates/simple/result_templates/code.html
Normal file
13
searx/templates/simple/result_templates/code.html
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{% from 'simple/macros.html' import result_header, result_sub_header, result_sub_footer, result_footer, result_footer_rtl %}
|
||||
|
||||
{{ result_header(result, favicons, image_proxify) -}}
|
||||
{{- result_sub_header(result) -}}
|
||||
{%- if result.content %}{{ result.content|safe }}{% endif %}</p>
|
||||
{%- if result.repository -%}
|
||||
<p class="content"><a href="{{ result.repository|safe }}" {% if results_on_new_tab %}target="_blank" rel="noopener noreferrer"{% else %}rel="noreferrer"{% endif %}>{{ result.repository }}</a></p>
|
||||
{%- endif -%}
|
||||
<div dir="ltr" class="codelines">
|
||||
{{- result.codelines|code_highlighter(result.code_language)|safe -}}
|
||||
</div>{{- '' -}}
|
||||
{{- result_sub_footer(result, proxify) -}}
|
||||
{{ result_footer(result) }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue