Skip to content

Commit

Permalink
Merge pull request #1437 from CuBoulder/issue/1398
Browse files Browse the repository at this point in the history
Articles by Person: On/off toggle
  • Loading branch information
jcsparks authored and web-flow committed Oct 30, 2024
2 parents 2634998 + aa9b5e6 commit 3881650
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

- ### Articles by Person: On/off toggle
Adds an on / off toggle to make the Articles by Person block on a Person page optional.

Includes:
- theme => https://github.com/CuBoulder/tiamat-theme/pull/1437
- custom_entities => https://github.com/CuBoulder/tiamat-custom-entities/pull/186

Resolves https://github.com/CuBoulder/tiamat-theme/issues/1398
---

- ### Article Grid: Replaces styled square thumbnail image with wide image
Replaces the Article Grid Block's list of Article thumbnails with the `focal_image_wide` image style, which eliminates the need for applied CSS styles on the thumbnail verion, which was not consistent across browsers.

Expand Down
2 changes: 2 additions & 0 deletions templates/content/node--ucb-person.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
</div>
{% endif %}
</div>
{% if content.field_ucb_articles_by_person[0]['#markup'] == '1' %}
<div class="ucb-articles-by-person-block">
<person-article-list base-uri="{{ baseurlJSON }}" nodeid="{{ node.id }}">
<div id="ucb-person-article-block-title" style="display:none">
Expand All @@ -104,5 +105,6 @@
</div>
</person-article-list>
</div>
{% endif %}
</div>
</article>

0 comments on commit 3881650

Please sign in to comment.