add serie attr to posts
This commit is contained in:
@@ -2,7 +2,9 @@
|
|||||||
{% extends 'partials/base.html.twig' %}
|
{% extends 'partials/base.html.twig' %}
|
||||||
|
|
||||||
{% if uri.param('tag') %}
|
{% 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 %}
|
{% else %}
|
||||||
{% set page_title = theme_config.blog.title | default('Blog') %}
|
{% set page_title = theme_config.blog.title | default('Blog') %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -20,7 +22,7 @@
|
|||||||
{% set itemsPerPage = collection.params.limit %}
|
{% set itemsPerPage = collection.params.limit %}
|
||||||
{% set pagesInCollection = (itemsInCollection / itemsPerPage)|round(0, 'ceil') %}
|
{% 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 }}
|
{{ page.content | raw }}
|
||||||
{% else %}
|
{% else %}
|
||||||
<h2>{{ page_title }}</h2>
|
<h2>{{ page_title }}</h2>
|
||||||
|
|||||||
@@ -6,7 +6,10 @@
|
|||||||
<h2>{{ page.title }}</h2>
|
<h2>{{ page.title }}</h2>
|
||||||
<div class="meta">
|
<div class="meta">
|
||||||
<p>{{ 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 %}</p>
|
<p>{{ 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 %}</p>
|
||||||
<p>Tagi: {% for tag in page.taxonomy.tag %}<a href="{{ theme_config.blog.slug }}/tag:{{tag}}">{{ tag }}</a> {% endfor %}</p>
|
<p>{{ theme_config.blog.tags_title|raw }}: {% for tag in page.taxonomy.tag %}<a href="{{ theme_config.blog.slug }}/tag:{{tag}}">{{ tag }}</a> {% endfor %}</p>
|
||||||
|
{% if page.taxonomy.series %}
|
||||||
|
<p>{{ theme_config.blog.series_title|raw }}: {% for series in page.taxonomy.series %}<a href="{{ theme_config.blog.slug }}/series:{{series}}">{{ series }}</a> {% endfor %}
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{{ page.content | raw }}
|
{{ page.content | raw }}
|
||||||
</article>
|
</article>
|
||||||
|
|||||||
Reference in New Issue
Block a user