diff --git a/templates/blog.html.twig b/templates/blog.html.twig index 3c9743a..49eaf41 100644 --- a/templates/blog.html.twig +++ b/templates/blog.html.twig @@ -14,6 +14,16 @@ {% 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') %} +{% else %} + {% set page_title = theme_config.listing_title.blog | default('') %} +{% endif %} + {% if base_url == '/' %} {% set base_url = '' %} {% endif %} @@ -30,7 +40,11 @@ {% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %} {% include 'partials/breadcrumbs.html.twig' %} {% endif %} - + +

+ {{page_title}} +

+ {% for child in collection %} {% include 'partials/blog_item.html.twig' with {'page':child, 'truncate':true} %} {% endfor %} @@ -44,6 +58,4 @@ {% include 'partials/sidebar_left.html.twig' %} {% endblock %} -{% endembed %} - - +{% endembed %} \ No newline at end of file