Search term format

This commit is contained in:
Oleg Lavrovsky 2019-09-09 17:17:31 +02:00
parent 9290a03110
commit 7383b8e556
2 changed files with 9 additions and 19 deletions

View file

@ -10,22 +10,6 @@
{% endif %}
{% endblock title %}
{% block meta_title %}
{% if search_term %}
{% trans 'Entries for' %} {{ search_type }} {{ search_term }}
{% else %}
{{ block.super }}
{% endif %}
{% endblock meta_title %}
{% block meta_description %}
{% if search_term %}
{% trans 'Entries for' %} {{ search_type }} {{ search_term }}
{% else %}
{{ block.super }}
{% endif %}
{% endblock meta_description %}
{% block social_share %}
{% image blog_page.header_image fill-800x450 as share_image %}
<meta property="og:title" content="{{ blog_page.title }}" />
@ -47,7 +31,7 @@
{# 'paginate' tag cannot render dotted variables, so we need to create a context var #}
{% paginate per_page entries %}
{% if search_term %}
<div class="searchTerm">{% trans 'Entries for' %} {{ search_type }} "{{ search_term }}"</div>
<div class="searchTerm">{{ search_term }}</div>
{% endif %}
{% for entry in entries %}
{% entry_url entry blog_page as post_url %}

View file

@ -59,14 +59,20 @@ $slider-nav: 200px;
.blog-page .sidebar .meta { display: none; }
.blog-page section { padding: 0; }
.blog-page .blog-tags ul { padding: 0; }
.blog-page ul.sidebar { min-height: 12em; }
.blog-page ul.sidebar { background: transparent; }
.blog-page .searchTerm { text-transform: uppercase; }
.blog-page .social-item {
font-size: 70%; background: #2643A9 !important;
font-size: 70%;
background: #2643A9 !important;
}
.blog-header a {
color: white !important;
text-shadow: 1px 1px 2px black;
text-decoration: none;
}
.blog-header .lead {
color: white;
font-size: 100%;
}
@import "subsites";