{{ page.header.title }}
+ {% if page.header.subtitle %} +{{ page.header.subtitle }}
+ {% endif %} +{{ page.header.title }}
- {% if page.header.subtitle %} -{{ page.header.subtitle }}
- {% endif %} -From 7c8526864e90cfa13a282221524fd57495b69482 Mon Sep 17 00:00:00 2001
From: "pmoreno.rodriguez"
<60596353+pmoreno-rodriguez@users.noreply.github.com>
Date: Tue, 3 Jan 2023 20:17:24 +0100
Subject: [PATCH] Revert "Harmonize and modify twigs"
This reverts commit 9dc080bed82650c2f23403651af0f1d094fa30cd.
---
templates/blog.html.twig | 78 +++++++++++++-------------
templates/default.html.twig | 51 ++++++++---------
templates/item.html.twig | 46 ++++++++-------
templates/partials/blog_item.html.twig | 1 -
4 files changed, 91 insertions(+), 85 deletions(-)
diff --git a/templates/blog.html.twig b/templates/blog.html.twig
index 12fc982..3c9743a 100644
--- a/templates/blog.html.twig
+++ b/templates/blog.html.twig
@@ -1,51 +1,49 @@
-{% extends 'partials/base.html.twig' %}
+{% embed 'partials/base.html.twig' %}
-{% set collection = page.collection() %}
-{% set base_url = page.url %}
-{% set feed_url = base_url %}
-{% if page.header.show_breadcrumbs is defined %}
+ {% set collection = page.collection() %}
+ {% set base_url = page.url %}
+ {% set feed_url = base_url %}
+ {% if page.header.show_breadcrumbs is defined %}
{% set show_breadcrumbs = page.header.show_breadcrumbs %}
-{% else %}
- {% set show_breadcrumbs = true %}
-{% endif %}
-{% if page.header.show_pagination is defined %}
- {% set show_pagination = page.header.show_pagination %}
-{% else %}
- {% set show_pagination = true %}
-{% endif %}
+ {% else %}
+ {% set show_breadcrumbs = true %}
+ {% endif %}
+ {% if page.header.show_pagination is defined %}
+ {% set show_pagination = page.header.show_pagination %}
+ {% else %}
+ {% set show_pagination = true %}
+ {% endif %}
-{% if base_url == '/' %}
+ {% if base_url == '/' %}
{% set base_url = '' %}
-{% endif %}
+ {% endif %}
-{% if base_url == base_url_relative %}
+ {% if base_url == base_url_relative %}
{% set feed_url = base_url~'/'~page.slug %}
-{% endif %}
+ {% endif %}
-{% block menu %}
+ {% block menu %}
{% include 'partials/sidebar_right.html.twig' %}
-{% endblock %}
-
-{% block content %}
- {% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %}
- {% include 'partials/breadcrumbs.html.twig' %}
- {% endif %}
-{#
- {% if show_pagination and config.plugins.pagination.enabled and collection.params.pagination %}
- {% include 'partials/pagination.html.twig' with {base_url: page.url, pagination: collection.params.pagination} %}
- {% endif %}
-#}
- {% for child in collection %}
- {% if child.header.hide is not defined or not child.header.hide %}
- {% include 'partials/blog_item.html.twig' with {'page':child, 'truncate':true} %}
+ {% endblock %}
+
+ {% block content %}
+ {% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %}
+ {% include 'partials/breadcrumbs.html.twig' %}
{% endif %}
- {% endfor %}
- {% if show_pagination and config.plugins.pagination.enabled and collection.params.pagination %}
- {% include 'partials/pagination.html.twig' with {base_url: page.url, pagination: collection.params.pagination} %}
- {% endif %}
+ {% for child in collection %}
+ {% include 'partials/blog_item.html.twig' with {'page':child, 'truncate':true} %}
+ {% endfor %}
+
+ {% if show_pagination and config.plugins.pagination.enabled and collection.params.pagination %}
+ {% include 'partials/pagination.html.twig' with {base_url: page.url, pagination: collection.params.pagination} %}
+ {% endif %}
+ {% endblock %}
+
+ {% block sidebar %}
+ {% include 'partials/sidebar_left.html.twig' %}
+ {% endblock %}
+
+{% endembed %}
+
- {{ page.header.subtitle }} {{ page.header.subtitle }}{{ page.header.title }}
+ {% if page.header.subtitle %}
+ {{ page.header.title }}
- {% if page.header.subtitle %}
-