Skip to content

Commit

Permalink
Merge pull request #473 from CuBoulder/issue/470
Browse files Browse the repository at this point in the history
Page title changes
  • Loading branch information
jcsparks authored and web-flow committed Aug 23, 2023
2 parents 221fd6a + fe4d38e commit acacc39
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

- ### 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

Sister PR: https://github.com/CuBoulder/tiamat-custom-entities/pull/73

Closes #470
---

- ### Styling for taxonomy term views
Closes #27 and #350 .
Adds the css needed for the profile installations changes for the taxonomy views.
Expand Down
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 acacc39

Please sign in to comment.