From bb43d3d7c5f1fdbec2c5dc1ac328830f11e492c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Sun, 18 Nov 2018 13:08:18 -0500 Subject: [PATCH] Remove unused template --- .../layout--onecol--node-tile.html.twig | 44 ------------------- 1 file changed, 44 deletions(-) delete mode 100644 agaric/templates/layout/layout--onecol--node-tile.html.twig diff --git a/agaric/templates/layout/layout--onecol--node-tile.html.twig b/agaric/templates/layout/layout--onecol--node-tile.html.twig deleted file mode 100644 index b15e944..0000000 --- a/agaric/templates/layout/layout--onecol--node-tile.html.twig +++ /dev/null @@ -1,44 +0,0 @@ -{# -/** - * @file - * Default theme implementation to display a one-column layout. - * - * Available variables: - * - content: The content for this layout. - * - attributes: HTML attributes for the layout
. - * - * @ingroup themeable - */ -#} -{% if content %} - -{% set bundle = content['#node'].bundle %} -{% set classes = [ 'is-child', 'card', 'card-project', 'hero-' ~ bundle|replace({"_": "-"}) ] %} -{# expected if statement would go here #} -{% set classes = classes|merge([ 'is-berry' ]) %} - -{% set title_paragraph_index = null %} -{% set has_title_paragraph = false %} -{% if content.field_body_paragraph %} - {% for i, paragraph in content.field_body_paragraph if i|first != '#' %} - {% if content.field_body_paragraph['#items'][i].entity.type.0.entity.id == 'title' %} - {% set has_title_paragraph = true %} - {% set title_paragraph_index = i %} - {{ paragraph }} - {% endif %} - {% endfor %} -{% endif %} - -{% if not has_title_paragraph %} - - {# Header hero region #} -
-
- {{ content.title }} - buuuut you do have a title paragraph -
-
- -{% endif %} - -{% endif %}{# content #}