{% extends "simpleblog/base.html" %} {% load i18n static simpleblog_tags wagtailcore_tags wagtailsearchpromotions_tags %} {% block body_class %}template-searchresults{% endblock %} {% block title %}{% trans "Search Something" %}{% endblock %} {% block breadcrumb_items %} {% endblock breadcrumb_items %} {% block main_content %} {% get_search_promotions search_query as search_promotions %}

{% trans "Search for" %} {% if search_query %}{{ search_query|title }}{% else %}{% trans "Something" %}{% endif %}

{% trans "Search Article, Series, Video Tutorial or Download Stuff" %}

{% if search_promotions %}

{% trans "Recommended for You.." %}

{% for search_promotion in search_promotions %} {% include 'components/post_list_item.html' with post=search_promotion.page.specific classnames="bg-soft" %} {% endfor %}
{% endif %} {% if search_results %}
{% for result in search_results.object_list %} {% include 'components/post_list_item.html' with post=result.specific %} {% endfor %}
{% include 'components/pagination.html' with page_object=search_results %} {% elif search_query %}
{% trans "Ooops, No results found for query" %} "{{ search_query }}"
{% endif %}
{% endblock %} {% block sidebar_body %} {% popular_posts title="Popular Posts" %} {% featured_posts title="Featured Posts" %} {% endblock sidebar_body %}