1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-19 02:40:11 +01:00

Merge pull request #1123 from return42/fix-1027

[fix] add missing result.length and result.author to the simple theme
This commit is contained in:
Paul Braeuning 2022-04-20 01:08:09 +02:00 committed by GitHub
commit 7f2185cec2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 11 additions and 7 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -260,7 +260,9 @@ article[data-vim-selected].category-social {
} }
} }
.published_date { .published_date,
.result_length,
.result_author {
font-size: 0.8em; font-size: 0.8em;
color: var(--color-result-publishdate-font); color: var(--color-result-publishdate-font);
} }

View File

@ -32,8 +32,10 @@
<!-- Draw result sub header --> <!-- Draw result sub header -->
{%- macro result_sub_header(result) -%} {%- macro result_sub_header(result) -%}
{% if result.publishedDate %}<time class="published_date" datetime="{{ result.pubdate }}" >{{ result.publishedDate }}</time>{% endif %} {%- if result.publishedDate %}<time class="published_date" datetime="{{ result.pubdate }}" >{{ result.publishedDate }}</time>{% endif -%}
{%- if result.metadata %} <div class="highlight">{{ result.metadata|safe }}</div>{% endif -%} {%- if result.length %}<div class="result_length">{{ _('Length') }}: {{ result.length }}</div>{% endif -%}
{%- if result.author %}<div class="result_author">{{ _('Author') }}: {{ result.author }}</div>{% endif -%}
{%- if result.metadata %}<div class="highlight">{{ result.metadata|safe }}</div>{% endif -%}
{%- endmacro -%} {%- endmacro -%}
<!-- Draw result sub footer --> <!-- Draw result sub footer -->