diff --git a/CHANGELOG.md b/CHANGELOG.md index 9a8b03e4..9a248c45 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +- ### Places first name and last name on the same line to prevent trimming of the space between them + [bug] An issue existed where a space was trimmed between the first name and last name on person pages due to the names being separated by a newline. This update resolves the issue. Resolves CuBoulder/tiamat-theme#1304 +--- + - ### People List Page: Selecting 'Group by Job Type or Department' with Filters applied to that term, only shows allowed groupings Previously if you had a People List Page with `Group by` set to Department or Job Type, and had filter on that term, you could possibly see groupings of people for terms not selected in the filter, if the Person pages had multiple terms. diff --git a/templates/content/node--ucb-person.html.twig b/templates/content/node--ucb-person.html.twig index ec439187..6bfe81c5 100644 --- a/templates/content/node--ucb-person.html.twig +++ b/templates/content/node--ucb-person.html.twig @@ -14,11 +14,13 @@ ] %} {% set baseurlJSON = url('')|render|trim('/') %} +{% set firstName = content.field_ucb_person_first_name['#items'].0.value|trim %} +{% set lastName = content.field_ucb_person_last_name['#items'].0.value|trim %}

- {{ content.field_ucb_person_first_name }} {{ content.field_ucb_person_last_name }} + {{ firstName }} {{ lastName }}

{{ content.field_ucb_person_pronouns }} {% if content.field_ucb_person_title.0 or content.field_ucb_person_department.0 %} @@ -74,7 +76,7 @@