Skip to content

Commit

Permalink
Page title changes
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jnicholCU committed Aug 23, 2023
1 parent 8122452 commit fe4d38e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
8 changes: 1 addition & 7 deletions templates/content/node--basic-page.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,7 @@
%}

<article{{attributes.addClass(classes)}}>
{% if label %}
<div class="container">
<h1{{title_attributes}} class="{{isFrontPage}}">
{{ label }}
</h1>
</div>
{% endif %}


{% if content %}
<div{{content_attributes}}>
Expand Down
9 changes: 9 additions & 0 deletions templates/field/field--node--title--basic-page.html.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<div class="container ucb-page-title">
<h1>
<span>
{% for item in items %}
{{ item.content }}
{% endfor %}
</span>
</h1>
</div>

0 comments on commit fe4d38e

Please sign in to comment.