Security update for Core, with self-updated composer
[yaffs-website] / web / core / themes / stable / templates / layout / layout--onecol.html.twig
diff --git a/web/core/themes/stable/templates/layout/layout--onecol.html.twig b/web/core/themes/stable/templates/layout/layout--onecol.html.twig
new file mode 100644 (file)
index 0000000..3a7f993
--- /dev/null
@@ -0,0 +1,25 @@
+{#
+/**
+ * @file
+ * Default theme implementation to display a one-column layout.
+ *
+ * Available variables:
+ * - content: The content for this layout.
+ * - attributes: HTML attributes for the layout <div>.
+ *
+ * @ingroup themeable
+ */
+#}
+{%
+  set classes = [
+    'layout',
+    'layout--onecol',
+  ]
+%}
+{% if content %}
+  <div{{ attributes.addClass(classes) }}>
+    <div {{ region_attributes.content.addClass('layout__region', 'layout__region--content') }}>
+      {{ content.content }}
+    </div>
+  </div>
+{% endif %}