deblan.io-murph/templates/page/category/default.html.twig

47 lines
1.3 KiB
Twig
Raw Normal View History

2021-11-23 22:48:55 +01:00
{% extends "page/titled/default.html.twig" %}
{%- block meta_title -%}
2021-11-23 22:48:55 +01:00
{{- parent()|build_string(category) -}}
{% endblock %}
{% block meta_description %}
2021-11-24 00:06:58 +01:00
{{- parent()|build_string(category) -}}
{% endblock %}
{% block page_title %}
2021-11-23 22:48:55 +01:00
{{- parent()|build_string(category) -}}
{% endblock %}
{% block page_subtitle %}
2021-11-24 00:06:58 +01:00
{% set pageSubTitle = _page.subTitle.value|build_string(category) %}
{{- parent() -}}
{% endblock %}
2021-11-24 00:06:58 +01:00
{% block body %}
{% for post in pager %}
{% if not loop.first %}
<hr class="col-12">
{% endif %}
{{ include('page/post/_post.html.twig', {post: post}) }}
{% endfor %}
{% if pager.getPaginationData.pageCount > 1 %}
<div class="col-12">
<div class="body">
<div class="pager align-right">
{% block pager %}
{{ include('module/_pager.html.twig', {
route: _node.routeName,
routeParams: {_domain: _domain},
pages: pager.paginationData.endPage,
currentPage: pager.paginationData.current
}) }}
{% endblock %}
</div>
</div>
</div>
{% endif %}
{% endblock %}