{{ page.header.title }}
- {% if page.header.subtitle %} -{{ page.header.subtitle }}
- {% endif %} +{{ page.header.title }}
+ {% if page.header.subtitle %} +{{ page.header.subtitle }}
+ {% endif %}diff --git a/templates/blog.html.twig b/templates/blog.html.twig index b97fc31..e9905f1 100644 --- a/templates/blog.html.twig +++ b/templates/blog.html.twig @@ -1,61 +1,61 @@ {% extends 'partials/base.html.twig' %} - {% set collection = page.collection() %} - {% set base_url = page.url %} - {% set feed_url = base_url %} - {% if page.header.show_breadcrumbs is defined %} - {% set show_breadcrumbs = page.header.show_breadcrumbs %} - {% else %} - {% set show_breadcrumbs = true %} - {% endif %} - {% if page.header.show_pagination is defined %} - {% set show_pagination = page.header.show_pagination %} - {% else %} - {% set show_pagination = true %} - {% endif %} - -{% if uri.param('category') %} - {% set page_title = theme_config.listing_title.taxonomy.category | default('Posts in Category: ') ~ uri.param('category') %} -{% elseif uri.param('tag') %} - {% set page_title = theme_config.listing_title.taxonomy.tag | default('Posts with Tag: ') ~ uri.param('tag') %} -{% elseif uri.param('author') %} - {% set page_title = theme_config.listing_title.taxonomy.author | default('Posts from Author: ') ~ uri.param('author') %} +{% set collection = page.collection() %} +{% set base_url = page.url %} +{% set feed_url = base_url %} +{% if page.header.show_breadcrumbs is defined %} + {% set show_breadcrumbs = page.header.show_breadcrumbs %} {% else %} - {% set page_title = theme_config.listing_title.blog | default('') %} + {% set show_breadcrumbs = true %} +{% endif %} +{% if page.header.show_pagination is defined %} + {% set show_pagination = page.header.show_pagination %} +{% else %} + {% set show_pagination = true %} {% endif %} - {% if base_url == '/' %} - {% set base_url = '' %} +{% if uri.param('category') %} + {% set page_title = theme_config.listing_title.taxonomy.category | default('Posts in Category: ') ~ uri.param('category') %} +{% elseif uri.param('tag') %} + {% set page_title = theme_config.listing_title.taxonomy.tag | default('Posts with Tag: ') ~ uri.param('tag') %} +{% elseif uri.param('author') %} + {% set page_title = theme_config.listing_title.taxonomy.author | default('Posts from Author: ') ~ uri.param('author') %} +{% else %} + {% set page_title = theme_config.listing_title.blog | default('') %} +{% endif %} + +{% if base_url == '/' %} + {% set base_url = '' %} +{% endif %} + +{% if base_url == base_url_relative %} + {% set feed_url = base_url~'/'~page.slug %} +{% endif %} + +{% block menu %} + {% include 'partials/sidebar_right.html.twig' %} +{% endblock %} + +{% block content %} + {% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %} + {% include 'partials/breadcrumbs.html.twig' %} {% endif %} - {% if base_url == base_url_relative %} - {% set feed_url = base_url~'/'~page.slug %} - {% endif %} +
{{ page.header.subtitle }}
- {% endif %} +{{ page.header.subtitle }}
+ {% endif %}{{ page.content|raw }}
-{{ page.content|raw }}
+{{ page.header.subtitle }}
- {% endif %} -{{ page.header.subtitle }}
{% endif %} - - {{ page.content|raw}} +- {% if query %} - {% set count = search_results ? search_results.count : 0 %} - {% if count is same as( 1 ) %} - {{ "PLUGIN_SIMPLESEARCH.SEARCH_RESULTS_SUMMARY_SINGULAR"|t(query|e)|raw }} - {% else %} - {{ "PLUGIN_SIMPLESEARCH.SEARCH_RESULTS_SUMMARY_PLURAL"|t(query|e, count)|raw }} - {% endif %} - {% endif %} -
++ {% if query %} + {% set count = search_results ? search_results.count : 0 %} + {% if count is same as( 1 ) %} + {{ "PLUGIN_SIMPLESEARCH.SEARCH_RESULTS_SUMMARY_SINGULAR"|t(query|e)|raw }} + {% else %} + {{ "PLUGIN_SIMPLESEARCH.SEARCH_RESULTS_SUMMARY_PLURAL"|t(query|e, count)|raw }} + {% endif %} + {% endif %} +
+