Skip to content

Commit

Permalink
Merge pull request #582 from CuBoulder/issue/567
Browse files Browse the repository at this point in the history
Issue/567
  • Loading branch information
jcsparks authored and web-flow committed Dec 11, 2023
2 parents 2b3ed5e + 28ccd83 commit 07b5bd3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 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]

- ### Issue/567
Changes to the teaser alternate so that the image divs are displayed empty if they have no image in them.
This is so that the teasers actually alternate properly for staggered text.

Closes #567

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

- ### Fixes Article Slider Bugs + Style Refinements
### Article Slider Changes

Expand Down
7 changes: 5 additions & 2 deletions templates/block/block--content-row.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,11 @@
{{ image|view }}
{% endif %}
</div>
{% else %}
<div class="col-4">
</div>
{% endif %}
<div class="{{ image ? 'col-8 ' }}row-text-container">
<div class="col-8 row-text-container">
{% if rowLink %}
<a href="{{ rowLink }} ">
<h3>{{ item.entity.field_row_layout_content_title.0.value }}</h3>
Expand All @@ -86,7 +89,7 @@
{{item.entity.field_row_layout_content_text|view}}
</div>
{% else %}
<div class="{{ image ? 'col-8 ' }}row-text-container">
<div class="col-8 row-text-container">
{% if rowLink %}
<a href="{{ rowLink }} ">
<h3>{{ item.entity.field_row_layout_content_title.0.value }}</h3>
Expand Down

0 comments on commit 07b5bd3

Please sign in to comment.