add serie attr to posts

This commit is contained in:
2023-01-21 21:43:11 +01:00
parent e0d12fd404
commit 8efc4979f4
2 changed files with 8 additions and 3 deletions

View File

@@ -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 %}
<h2>{{ page_title }}</h2>