diff --git a/templates/blog.html.twig b/templates/blog.html.twig index 0b905fb..922b134 100644 --- a/templates/blog.html.twig +++ b/templates/blog.html.twig @@ -2,7 +2,9 @@ {% extends 'partials/base.html.twig' %} {% if uri.param('tag') %} - {% set page_title = theme_config.blog.tag_title | default('Tag: ') ~ uri.param('tag') %} + {% set page_title = theme_config.blog.tag_title | default('Tag') ~ ': ' ~ uri.param('tag') %} +{% elseif uri.param('series') %} + {% set page_title = theme_config.blog.series_title | default('Seria') ~ ': ' ~ uri.param('series') %} {% else %} {% set page_title = theme_config.blog.title | default('Blog') %} {% endif %} @@ -20,7 +22,7 @@ {% set itemsPerPage = collection.params.limit %} {% set pagesInCollection = (itemsInCollection / itemsPerPage)|round(0, 'ceil') %} - {% if page_title == 'Blog' %} + {% if (page_title == theme_config.blog.title) or (page_title == 'Blog') %} {{ page.content | raw }} {% else %}

{{ page_title }}

diff --git a/templates/post.html.twig b/templates/post.html.twig index ea4a1af..345e02c 100644 --- a/templates/post.html.twig +++ b/templates/post.html.twig @@ -6,7 +6,10 @@

{{ page.title }}

{{ page.date|date("d.m.Y H:i") }}{% if config.plugins.readingtime.enabled %} | {{ page.content|readingtime }}{% endif %}{% if config.plugins.wordcount.enabled and grav.user.title == theme_config.owner_title %} | {{ getWordCount(content) }} {{ theme_config.wordcount_title }}{% endif %}

-

Tagi: {% for tag in page.taxonomy.tag %}{{ tag }} {% endfor %}

+

{{ theme_config.blog.tags_title|raw }}: {% for tag in page.taxonomy.tag %}{{ tag }} {% endfor %}

+ {% if page.taxonomy.series %} +

{{ theme_config.blog.series_title|raw }}: {% for series in page.taxonomy.series %}{{ series }} {% endfor %} + {% endif %}

{{ page.content | raw }}