From fe4d38e2610bd11ca8d48a659cab9d4632fc5c02 Mon Sep 17 00:00:00 2001 From: Joshua Nicholson <94021017+jnicholCU@users.noreply.github.com> Date: Wed, 23 Aug 2023 11:25:25 -0600 Subject: [PATCH] Page title changes Removed page title from the basic page theme Created a field file for the page title so that it has the proper tags and attributes --- templates/content/node--basic-page.html.twig | 8 +------- templates/field/field--node--title--basic-page.html.twig | 9 +++++++++ 2 files changed, 10 insertions(+), 7 deletions(-) create mode 100644 templates/field/field--node--title--basic-page.html.twig diff --git a/templates/content/node--basic-page.html.twig b/templates/content/node--basic-page.html.twig index 9d78d03a..3cfb0dfe 100644 --- a/templates/content/node--basic-page.html.twig +++ b/templates/content/node--basic-page.html.twig @@ -87,13 +87,7 @@ %} - {% if label %} -
- - {{ label }} - -
- {% endif %} + {% if content %} diff --git a/templates/field/field--node--title--basic-page.html.twig b/templates/field/field--node--title--basic-page.html.twig new file mode 100644 index 00000000..3a7049ab --- /dev/null +++ b/templates/field/field--node--title--basic-page.html.twig @@ -0,0 +1,9 @@ +
+

+ + {% for item in items %} + {{ item.content }} + {% endfor %} + +

+
\ No newline at end of file